<?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: Failed (retcode -1) to execute statement 'use database&amp;quot;xxx&amp;quot;' in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473748#M12222</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/304476"&gt;@nithin_seeni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additional information on what John was added.&lt;/P&gt;
&lt;H2 id="anchor-2" tabindex="-1" data-mc-conditions="QDI_Replicate.NotInHDD"&gt;Required permissions&lt;/H2&gt;
&lt;P data-mc-conditions="QDI_Replicate.NotInHDD"&gt;The required permissions differ according to whether or not the schema and/or the target tables already existed before the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Replicate.Productshort variable"&gt;Replicate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task started.&lt;/P&gt;
&lt;P data-mc-conditions="QDI_Replicate.NotInHDD"&gt;Please check permissions as mentioned in the user guide&lt;/P&gt;
&lt;H3 data-mc-conditions="QDI_Replicate.NotInHDD"&gt;Tables created by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Replicate.Productshort variable"&gt;Replicate&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P class="section-label"&gt;&lt;SPAN class="ui_item"&gt;Permissions required if you want schemas that do not exist to be created automatically&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;USAGE ON DATABASE&lt;/LI&gt;
&lt;LI&gt;CREATE SCHEMA ON DATABASE&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="section-label"&gt;&lt;SPAN class="ui_item"&gt;Permissions required if the schema already exists&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;USAGE ON DATABASE&lt;/LI&gt;
&lt;LI&gt;USAGE ON SCHEMA&lt;/LI&gt;
&lt;LI&gt;CREATE FILE FORMAT ON SCHEMA&lt;/LI&gt;
&lt;LI&gt;CREATE STAGE ON SCHEMA&lt;/LI&gt;
&lt;LI&gt;CREATE TABLE ON SCHEMA&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/May2024/Content/Replicate/Main/Snowflake%20Target/snowflake_permissions.htm" target="_blank"&gt;Required permissions #Required permissions | Qlik Replicate Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Suresh&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 11:12:19 GMT</pubDate>
    <dc:creator>sureshkumar</dc:creator>
    <dc:date>2024-07-30T11:12:19Z</dc:date>
    <item>
      <title>Failed (retcode -1) to execute statement 'use database"xxx"'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473676#M12212</link>
      <description>&lt;P&gt;While creating a target endpoint for Snowflake and connecting to the database in Snowflake facing the error "Failed (retcode -1) to execute statement 'use database"xxx"' "&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473676#M12212</guid>
      <dc:creator>nithin_seeni</dc:creator>
      <dc:date>2024-07-30T06:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement 'use database"xxx"'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473678#M12213</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/304476"&gt;@nithin_seeni&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Welcome to Qlik Community forum and thanks for reaching out here!&lt;/P&gt;
&lt;P&gt;Looks to me this is a permission issue, or if the database/schema is accessible. Would you please connect to Snowflake by the same account&amp;nbsp; and execute below SQL:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;use database "XXX";&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To see if you get the same error.&lt;/P&gt;
&lt;P&gt;BTW, there is another discussion:&amp;nbsp;&lt;SPAN&gt;&lt;A title="Snowflake End point error in QLIK replicate" href="https://community.qlik.com/t5/Qlik-Replicate/Snowflake-End-point-error-in-QLIK-replicate/m-p/2126167#M7581" target="_blank" rel="noopener"&gt;Snowflake End point error in QLIK replicate&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473678#M12213</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-07-30T06:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement 'use database"xxx"'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473748#M12222</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/304476"&gt;@nithin_seeni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additional information on what John was added.&lt;/P&gt;
&lt;H2 id="anchor-2" tabindex="-1" data-mc-conditions="QDI_Replicate.NotInHDD"&gt;Required permissions&lt;/H2&gt;
&lt;P data-mc-conditions="QDI_Replicate.NotInHDD"&gt;The required permissions differ according to whether or not the schema and/or the target tables already existed before the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Replicate.Productshort variable"&gt;Replicate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task started.&lt;/P&gt;
&lt;P data-mc-conditions="QDI_Replicate.NotInHDD"&gt;Please check permissions as mentioned in the user guide&lt;/P&gt;
&lt;H3 data-mc-conditions="QDI_Replicate.NotInHDD"&gt;Tables created by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Replicate.Productshort variable"&gt;Replicate&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P class="section-label"&gt;&lt;SPAN class="ui_item"&gt;Permissions required if you want schemas that do not exist to be created automatically&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;USAGE ON DATABASE&lt;/LI&gt;
&lt;LI&gt;CREATE SCHEMA ON DATABASE&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="section-label"&gt;&lt;SPAN class="ui_item"&gt;Permissions required if the schema already exists&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;USAGE ON DATABASE&lt;/LI&gt;
&lt;LI&gt;USAGE ON SCHEMA&lt;/LI&gt;
&lt;LI&gt;CREATE FILE FORMAT ON SCHEMA&lt;/LI&gt;
&lt;LI&gt;CREATE STAGE ON SCHEMA&lt;/LI&gt;
&lt;LI&gt;CREATE TABLE ON SCHEMA&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/May2024/Content/Replicate/Main/Snowflake%20Target/snowflake_permissions.htm" target="_blank"&gt;Required permissions #Required permissions | Qlik Replicate Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Suresh&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 11:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473748#M12222</guid>
      <dc:creator>sureshkumar</dc:creator>
      <dc:date>2024-07-30T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement 'use database"xxx"'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473750#M12224</link>
      <description>&lt;P&gt;After adding the default role at the snowflake end to the account issue is fixed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 11:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473750#M12224</guid>
      <dc:creator>nithin_seeni</dc:creator>
      <dc:date>2024-07-30T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Failed (retcode -1) to execute statement 'use database"xxx"'</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473755#M12226</link>
      <description>&lt;P&gt;Thank you so much for the update&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/304476"&gt;@nithin_seeni&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 11:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Failed-retcode-1-to-execute-statement-use-database-quot-xxx-quot/m-p/2473755#M12226</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-07-30T11:26:20Z</dc:date>
    </item>
  </channel>
</rss>

