<?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: Auth Error Snowflake in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908053#M358402</link>
    <description>&lt;P&gt;Is your program assigning the Snowflake LIBNAME early in the code, then doing a lot of other stuff that doesn't use Snowflake data?&amp;nbsp;According to &lt;A href="https://community.snowflake.com/s/article/Authentication-token-has-expired-The-user-must-authenticate-again" target="_self"&gt;this Snowflake forum&lt;/A&gt; article,&amp;nbsp;your error message indicates that your Snowflake session has gone more than 4 hours without activity. They Do mention that you could use the&amp;nbsp;&lt;A href="https://docs.snowflake.com/en/sql-reference/parameters#client-session-keep-alive" target="_self"&gt;CLIENT_SESSION_KEEP_ALIVE&lt;/A&gt; option to extend the session timeout.&amp;nbsp;The &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_043/acreldb/p1se2m9js4ptfpn1252otv84u9ma.htm#p0qprij798r3isn1i8jrdvloaztx" target="_self"&gt;LIBNAME Statement for Snowflake documentation&lt;/A&gt; provides a CONOPTS statement option that can be used to&amp;nbsp;specify additional Snowflake connection options like this one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 18:53:43 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2023-12-14T18:53:43Z</dc:date>
    <item>
      <title>Auth Error Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908041#M358397</link>
      <description>&lt;P&gt;HI Every one,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of my sas code is connecting to snowflake and keep executing&amp;nbsp; for long time after 4 hrs the session is getting disconnected and sas job is getting failed with error&lt;/P&gt;
&lt;P&gt;"ERROR:CLI PREPARE ERROR AUTH TOKEN EXPIRED, uSER MUST AUTH AGAIN"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help me how to keep session active.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 17:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908041#M358397</guid>
      <dc:creator>samanvi</dc:creator>
      <dc:date>2023-12-14T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Error Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908053#M358402</link>
      <description>&lt;P&gt;Is your program assigning the Snowflake LIBNAME early in the code, then doing a lot of other stuff that doesn't use Snowflake data?&amp;nbsp;According to &lt;A href="https://community.snowflake.com/s/article/Authentication-token-has-expired-The-user-must-authenticate-again" target="_self"&gt;this Snowflake forum&lt;/A&gt; article,&amp;nbsp;your error message indicates that your Snowflake session has gone more than 4 hours without activity. They Do mention that you could use the&amp;nbsp;&lt;A href="https://docs.snowflake.com/en/sql-reference/parameters#client-session-keep-alive" target="_self"&gt;CLIENT_SESSION_KEEP_ALIVE&lt;/A&gt; option to extend the session timeout.&amp;nbsp;The &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_043/acreldb/p1se2m9js4ptfpn1252otv84u9ma.htm#p0qprij798r3isn1i8jrdvloaztx" target="_self"&gt;LIBNAME Statement for Snowflake documentation&lt;/A&gt; provides a CONOPTS statement option that can be used to&amp;nbsp;specify additional Snowflake connection options like this one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 18:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908053#M358402</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-14T18:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Error Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908055#M358403</link>
      <description>&lt;P&gt;I suggest you discuss your issue with your Snowflake DBA to see if there are any timeout settings for database connections. If there is a hard setting in Snowflake then that's the only place it can be changed.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 19:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908055#M358403</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-12-14T19:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Error Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908594#M358541</link>
      <description>&lt;P&gt;This helps.&lt;/P&gt;
&lt;P&gt;Added the statement -&amp;gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;CONOPTS&amp;nbsp;='client_session_keep_alive=True' in the&amp;nbsp; libname snowflake connection and issue is resolved.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 12:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Auth-Error-Snowflake/m-p/908594#M358541</guid>
      <dc:creator>samanvi</dc:creator>
      <dc:date>2023-12-18T12:48:14Z</dc:date>
    </item>
  </channel>
</rss>

