<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Authentication token has expired.  The user must authenticate again. in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/1863567#M1310</link>
    <description>&lt;P&gt;Shouldn't Replicate do this setting at each session level through the ODBC driver?&lt;/P&gt;
&lt;P&gt;Recently I have noticed the same issue in Qlik Compose too.&lt;/P&gt;
&lt;P&gt;Previously we were told to set:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CLIENT_SESSION_KEEP_ALIVE=false;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 12:01:06 GMT</pubDate>
    <dc:creator>Hrishikesh</dc:creator>
    <dc:date>2021-11-25T12:01:06Z</dc:date>
    <item>
      <title>Authentication token has expired.  The user must authenticate again.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/1841541#M1143</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Replication task is throwing below message but the task is not errored out.If any one have idea please let me know&amp;nbsp; how to correct this?&lt;/P&gt;&lt;P&gt;Error Code: 1022502&lt;BR /&gt;Error details: Failed to start bulk apply transaction Failed to execute bulk update statement.&lt;BR /&gt;RetCode: SQL_ERROR SqlState: 25000 NativeError: 11120 Message: [Snowflake][ODBC] (11120) Outstanding transactions during disconnect.&lt;BR /&gt;RetCode: SQL_ERROR SqlState: 08001 NativeError: 390114 Message: Authentication token has expired. The user must authenticate again.&lt;/P&gt;&lt;P&gt;Sashidhar&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 14:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/1841541#M1143</guid>
      <dc:creator>Sashidhar</dc:creator>
      <dc:date>2021-10-04T14:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication token has expired.  The user must authenticate again.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/1844461#M1161</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/151030"&gt;@Sashidhar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In general this message means the snowflake connection expired due to inactivity. By default, the connection lasts 4 hours. From other support ticket I'd like to suggest:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1- Add&amp;nbsp;the below value to the ODBC connection string for the snowflake target endpoint&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CLIENT_SESSION_KEEP_ALIVE=true;ABORT_DETACHED_QUERY=true;CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY=900;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2-&amp;nbsp;&lt;SPAN&gt;Add following registry keys on the Replication Server&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HKEY_LOCAL_MACHINE/SOFTWARE/Snowflake/Driver/CLIENT_SESSION_KEEP_ALIVE
HKEY_LOCAL_MACHINE/SOFTWARE/Snowflake/Driver/CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY
HKEY_LOCAL_MACHINE/SOFTWARE/Snowflake/Driver/ABORT_DETACHED_QUERY&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Values are true, 900 and true respectively&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3-&amp;nbsp;And did the following to the user&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;alter user user_name set CLIENT_SESSION_KEEP_ALIVE = TRUE;
alter user user_name set ABORT_DETACHED_QUERY = TRUE;
alter user user_name set CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY = 900;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Some links for your reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.snowflake.net/manuals/sql-reference/parameters.html#client-session-keep-alive" target="_blank" rel="noopener"&gt;https://docs.snowflake.net/manuals/sql-reference/parameters.html#client-session-keep-alive&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.snowflake.net/manuals/user-guide/odbc-parameters.html#connection-parameters" target="_blank" rel="noopener"&gt;https://docs.snowflake.net/manuals/user-guide/odbc-parameters.html#connection-parameters&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 09:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/1844461#M1161</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2021-10-09T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication token has expired.  The user must authenticate again.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/1863567#M1310</link>
      <description>&lt;P&gt;Shouldn't Replicate do this setting at each session level through the ODBC driver?&lt;/P&gt;
&lt;P&gt;Recently I have noticed the same issue in Qlik Compose too.&lt;/P&gt;
&lt;P&gt;Previously we were told to set:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CLIENT_SESSION_KEEP_ALIVE=false;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 12:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/1863567#M1310</guid>
      <dc:creator>Hrishikesh</dc:creator>
      <dc:date>2021-11-25T12:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication token has expired.  The user must authenticate again.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/2107590#M7085</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We had this error while the task full load was going on. And the table is in error state. It was a single table task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;03190811: 2023-08-18T06:39:56 [TARGET_LOAD ]E: RetCode: SQL_SUCCESS SqlState: 08S01 NativeError: 104 Message: [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Error code 0x68 [1022502] (sqlserver_endpoint_imp.c:5528)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03190811: 2023-08-18T06:39:57 [TARGET_LOAD ]E: Begin bulk failed (sqlserver_endpoint_imp.c:4268)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please check and advise is it due to the keepalive mentioned above. Our target endpoint is&amp;nbsp;Microsoft Azure SQL Database and source is Oracle.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We can see on target end-point advanced settings there is an option called "Additional ODBC connection properties:" currently no values used here. Our replicate version is&amp;nbsp;2022.11.0.765.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Adersh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 07:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/2107590#M7085</guid>
      <dc:creator>adershb</dc:creator>
      <dc:date>2023-08-21T07:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication token has expired.  The user must authenticate again.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/2108750#M7094</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/143229"&gt;@adershb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We noticed you opened a dedicated article&amp;nbsp;&lt;A title="TCP Provider: Error code 0x68" href="https://community.qlik.com/t5/Qlik-Replicate/Task-Full-load-failed-with-error-Microsoft-ODBC-Driver-18-for/m-p/2107617#M7086:~:text=03190811%3A%202023%2D08,sqlserver_endpoint_imp.c%3A4268)" target="_blank" rel="noopener"&gt;TCP Provider: Error code 0x68&lt;/A&gt;, let's trace the issue in the new article.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 04:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Authentication-token-has-expired-The-user-must-authenticate/m-p/2108750#M7094</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-08-23T04:05:30Z</dc:date>
    </item>
  </channel>
</rss>

