<?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: error when passing a large table from SAS Fusion to Snowflake using bulkload in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945593#M370447</link>
    <description>&lt;P&gt;Instead of using PROC APPEND, upload the CLAIMS dataset to a temporary table in the database, and run the INSERT in explicit pass-through.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Sep 2024 11:16:59 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-09-29T11:16:59Z</dc:date>
    <item>
      <title>error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945536#M370436</link>
      <description>&lt;P&gt;We have a huge table need to be copied from SAS Server to Snowflake. If we use insert into SN.TEST table, it takes almost 3 hours to pass 80M rows with 31 columns.&lt;/P&gt;&lt;P&gt;I also try to use PUT command in EXECUTE () BY SN; it also give another type of error and will cause disconnection.&lt;/P&gt;&lt;P&gt;Then I try to add bulkload option into the libname statement, however, it still now works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;427 libname SN sasiosnf SERVER="XXXXXXXXXXX"&lt;BR /&gt;428 conopts="uid=XXXXXXXXXXX;authenticator=snowflake_jwt;&lt;BR /&gt;429 priv_key_file=XXXXXXXXXXXrsa_key.p8;&lt;BR /&gt;430 priv_key_file_pwd=XXXXXXXXXXX;"&lt;BR /&gt;431 Role="XXXXXXXXXXX"&lt;BR /&gt;432 warehouse="XXXXXXXXXXX"&lt;BR /&gt;433 database="XXXXXXXXXXX"&lt;BR /&gt;434 schema="XXXXXXXXXXX"&lt;BR /&gt;435 READBUFF=32000&lt;BR /&gt;436 INSERTBUFF=32000&lt;BR /&gt;437 DBCOMMIT=32000&lt;BR /&gt;438 CONNECTION=GLOBAL BULKLOAD=YES bl_internal_stage="table/TEST";&lt;BR /&gt;NOTE: Libref SN was successfully assigned as follows:&lt;BR /&gt;Engine: SASIOSNF&lt;BR /&gt;Physical Name: XXXXXXXXXXX&lt;BR /&gt;&amp;#12;12 The SAS System 16:27 Friday, September 27, 2024&lt;/P&gt;&lt;P&gt;439&lt;BR /&gt;440&lt;BR /&gt;441 PROC SQL;&lt;BR /&gt;442 CONNECT USING SN;&lt;BR /&gt;443 Execute (REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/59464"&gt;@test&lt;/a&gt;) by SN;&lt;BR /&gt;444 DELETE FROM SN.TEST;&lt;BR /&gt;NOTE: No data found/modified.&lt;BR /&gt;445 QUIT;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.76 seconds&lt;BR /&gt;user cpu time 0.01 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 5457.46k&lt;BR /&gt;OS Memory 19880.00k&lt;BR /&gt;Timestamp 09/27/2024 04:27:27 PM&lt;BR /&gt;Step Count 92 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 676&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 21&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;/P&gt;&lt;P&gt;446&lt;BR /&gt;447 PROC APPEND BASE = SN.TEST DATA = INPUT.CLAIMS;&lt;BR /&gt;448 RUN;&lt;/P&gt;&lt;P&gt;NOTE: Appending INPUT.CLAIMS to SN.TEST.&lt;BR /&gt;...&lt;BR /&gt;NOTE: FORCE is specified, so dropping/truncating will occur.&lt;BR /&gt;NOTE: There were 83056675 observations read from the data set INPUT.CLAIMS.&lt;BR /&gt;NOTE: 83056675 observations added.&lt;BR /&gt;NOTE: The data set SN.TEST has . observations and 31 variables.&lt;BR /&gt;ERROR: Error executing COPY command: Failed to decrypt. Check file key and master key.&lt;BR /&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;&amp;#12;13 The SAS System 16:27 Friday, September 27, 2024&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;real time 16:43.26&lt;BR /&gt;user cpu time 13:40.28&lt;BR /&gt;system cpu time 20.37 seconds&lt;BR /&gt;memory 6913.90k&lt;BR /&gt;OS Memory 20888.00k&lt;BR /&gt;Timestamp 09/27/2024 04:44:11 PM&lt;BR /&gt;Step Count 93 Switch Count 0&lt;BR /&gt;Page Faults 2&lt;BR /&gt;Page Reclaims 79594&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 6327&lt;BR /&gt;Involuntary Context Switches 6031&lt;BR /&gt;Block Input Operations 1049600&lt;BR /&gt;Block Output Operations 27968608&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode.&lt;BR /&gt;This prevents execution of subsequent data modification statements.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 21:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945536#M370436</guid>
      <dc:creator>mmawwamm</dc:creator>
      <dc:date>2024-09-28T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945583#M370443</link>
      <description>&lt;P&gt;What happens if you subset your source table to a 1000 rows and load these? Does this work?&lt;/P&gt;
&lt;P&gt;For the Proc Append:&lt;/P&gt;
&lt;P&gt;I can’t see the Force option specified but it’s mentioned in the Log. Is this really the log from the Proc Append statement you shared?&lt;/P&gt;
&lt;P&gt;Did you try bulk load? Do you really want to commit after every 32K rows? Or could you eventually use dbcommit=0?&lt;/P&gt;
&lt;P&gt;Is the target table empty? Are there a lot of indexes and constraints on the table (eventually disable them prior to the load and then re-enable them once loaded)?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 08:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945583#M370443</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-09-29T08:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945593#M370447</link>
      <description>&lt;P&gt;Instead of using PROC APPEND, upload the CLAIMS dataset to a temporary table in the database, and run the INSERT in explicit pass-through.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 11:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945593#M370447</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-09-29T11:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945636#M370457</link>
      <description>&lt;P&gt;If you execute using debug, you &amp;lt;might&amp;gt; get some more information out:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sastrace=',,,d' sastraceloc=saslog nostsuffix msglevel=i;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What cloud does Snowflake reside on?&lt;/P&gt;
&lt;P&gt;And out of curiosity, what i SAS Fusion?&lt;/P&gt;
&lt;P&gt;I stumbled upon this , not sure if it's applicable:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/snowflakedb/snowflake-connector-nodejs/issues/374" target="_blank"&gt;Multi Row Insert fails with "Failed to decrypt. Check file key and master key." · Issue #374 · snowflakedb/snowflake-connector-nodejs · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;A track to SAS tech support could be a good idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 08:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945636#M370457</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-09-30T08:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945717#M370474</link>
      <description>&lt;P&gt;It does work for one table. I have 3 claim tables, with the same structure. When I use the same code upload the other two tables, I got copy error again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;428 libname SNOW sasiosnf SERVER="XXXX"&lt;BR /&gt;429 conopts="uid=&amp;amp;SNOWACNT.;authenticator=snowflake_jwt;&lt;BR /&gt;430 priv_key_file=XXXX/rsa_key.p8;&lt;BR /&gt;431 priv_key_file_pwd=&amp;amp;KeyPW.;"&lt;BR /&gt;432 Role="XXXX_ROLE"&lt;BR /&gt;433 warehouse="XXXX_WH"&lt;BR /&gt;434 database="XXXX_DB"&lt;BR /&gt;&amp;#12;12 The SAS System 13:38 Monday, September 30, 2024&lt;/P&gt;&lt;P&gt;435 schema="XXXX"&lt;BR /&gt;436 READBUFF=32000&lt;BR /&gt;437 INSERTBUFF=32000&lt;BR /&gt;438 DBCOMMIT=32000&lt;BR /&gt;439 CONNECTION=GLOBAL BULKLOAD = YES BL_INTERNAL_STAGE = "SAS_LOAD";&lt;BR /&gt;NOTE: Libref SNOW was successfully assigned as follows:&lt;BR /&gt;Engine: SASIOSNF&lt;BR /&gt;Physical Name: XXXX&lt;BR /&gt;440&lt;BR /&gt;441 PROC SQL;&lt;BR /&gt;442 CONNECT USING SNOW;&lt;BR /&gt;443 Execute (REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD) by SNOW;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_1: Executed: on connection 5&lt;BR /&gt;REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: 0 row(s) affected by INSERT/UPDATE/DELETE or other statement.&lt;BR /&gt;444 DELETE FROM SNOW.TEST;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_2: Prepared: on connection 5&lt;BR /&gt;SELECT * FROM "XXXX"."TEST"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_3: Executed: on connection 5&lt;BR /&gt;delete from "XXXX"."TEST"&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: 0 row(s) affected by INSERT/UPDATE/DELETE or other statement.&lt;BR /&gt;SNOWFLAKE: COMMIT performed on connection 5.&lt;BR /&gt;NOTE: No data found/modified.&lt;BR /&gt;445 EXECUTE (CREATE OR REPLACE TEMPORARY TABLE CLAIM (&lt;BR /&gt;446 COL1 VARCHAR(1000),&lt;BR /&gt;...&lt;BR /&gt;477 )&lt;BR /&gt;478 on commit preserve rows) by SNOW;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_4: Executed: on connection 5&lt;BR /&gt;CREATE OR REPLACE TEMPORARY TABLE CLAIM ( ...) on commit preserve rows&lt;BR /&gt;&lt;BR /&gt;479 INSERT INTO SNOW.CLAIM&lt;BR /&gt;480 (&lt;BR /&gt;481 COL1,&lt;BR /&gt;482 ...&lt;BR /&gt;512 )&lt;BR /&gt;513 SELECT&lt;BR /&gt;514 COL1,&lt;BR /&gt;515 ...&lt;/P&gt;&lt;P&gt;545 FROM DATA.claim1;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_5: Prepared: on connection 5&lt;BR /&gt;SELECT * FROM "XXXX"."CLAIM"&lt;BR /&gt;&lt;BR /&gt;NOTE: The SQL statement cannot be executed directly against the database because it involves heterogeneous data sources.&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_6: Prepared: on connection 5&lt;BR /&gt;SELECT * FROM "XXXX"."CLAIM"&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: snudesc, failed to match primary key column(s)&lt;BR /&gt;NOTE: 25686270 rows were inserted into SNOW.CLAIM.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SNOWFLAKE_7: Executed: on connection 5&lt;BR /&gt;PUT 'file:///data1/saswork/SAS_util0001001A3C0C_apslp200158.XXX.com/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-00.dat'&lt;BR /&gt;'@SAS_LOAD/' AUTO_COMPRESS = FALSE PARALLEL=4 OVERWRITE = TRUE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_8: Executed: on connection 5&lt;BR /&gt;PUT 'file:///data1/saswork/SAS_util0001001A3C0C_apslp200158.XXX.com/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-01.dat'&lt;BR /&gt;'@SAS_LOAD/' AUTO_COMPRESS = FALSE PARALLEL=4 OVERWRITE = TRUE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_9: Executed: on connection 5&lt;BR /&gt;COPY INTO "XXXX"."CLAIM"&lt;BR /&gt;("COL1",...) FROM '@SAS_LOAD/' FILE_FORMAT=(&lt;BR /&gt;TYPE=CSV FIELD_DELIMITER='\007' COMPRESSION=NONE ) FORCE=TRUE FILES = (&lt;BR /&gt;'SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-00.dat','SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-01.dat' )&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: COMMIT performed on connection 5.&lt;BR /&gt;&lt;BR /&gt;&amp;#12;15 The SAS System 13:38 Monday, September 30, 2024&lt;/P&gt;&lt;P&gt;SNOWFLAKE_10: Executed: on connection 5&lt;BR /&gt;REMOVE '@SAS_LOAD/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-00.dat'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_11: Executed: on connection 5&lt;BR /&gt;REMOVE '@SAS_LOAD/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-01.dat'&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: COMMIT performed on connection 5.&lt;BR /&gt;546 EXECUTE(INSERT INTO TEST&lt;BR /&gt;547 (COL1,&lt;BR /&gt;...)&lt;BR /&gt;578 SELECT COL1,...&lt;/P&gt;&lt;P&gt;609 FROM CLAIM) by SNOW;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_12: Executed: on connection 5&lt;BR /&gt;INSERT INTO TEST (COL1, ...)&lt;BR /&gt;SELECT COL1, ...&amp;nbsp;FROM CLAIM&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: 25686270 row(s) affected by INSERT/UPDATE/DELETE or other statement.&lt;BR /&gt;610 DISCONNECT FROM SNOW;&lt;BR /&gt;611 QUIT;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 8:22.21&lt;BR /&gt;user cpu time 4:47.14&lt;BR /&gt;system cpu time 14.26 seconds&lt;BR /&gt;memory 7542.53k&lt;BR /&gt;OS Memory 21400.00k&lt;BR /&gt;Timestamp 09/30/2024 01:46:54 PM&lt;BR /&gt;Step Count 92 Switch Count 0&lt;BR /&gt;Page Faults 5&lt;BR /&gt;Page Reclaims 389612&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 35392&lt;BR /&gt;Involuntary Context Switches 10794&lt;BR /&gt;Block Input Operations 7158128&lt;BR /&gt;Block Output Operations 12381184&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945717#M370474</guid>
      <dc:creator>mmawwamm</dc:creator>
      <dc:date>2024-09-30T19:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945718#M370475</link>
      <description>&lt;P&gt;I try to use it load the other table and got error.&lt;/P&gt;&lt;P&gt;428 libname SNOW sasiosnf SERVER="XXXX"&lt;BR /&gt;429 conopts="uid=&amp;amp;SNOWACNT.;authenticator=snowflake_jwt;&lt;BR /&gt;430 priv_key_file=XXXX/rsa_key.p8;&lt;BR /&gt;431 priv_key_file_pwd=&amp;amp;KeyPW.;"&lt;BR /&gt;432 Role="XXXX_ROLE"&lt;BR /&gt;433 warehouse="XXXX_WH"&lt;BR /&gt;434 database="XXXX_DB"&lt;BR /&gt;&amp;#12;12 The SAS System 11:31 Monday, September 30, 2024&lt;/P&gt;&lt;P&gt;435 schema="XXXX"&lt;BR /&gt;436 READBUFF=32000&lt;BR /&gt;437 INSERTBUFF=32000&lt;BR /&gt;438 DBCOMMIT=32000&lt;BR /&gt;439 CONNECTION=GLOBAL BULKLOAD = YES BL_INTERNAL_STAGE = "SAS_LOAD";&lt;BR /&gt;NOTE: Libref SNOW was successfully assigned as follows:&lt;BR /&gt;Engine: SASIOSNF&lt;BR /&gt;Physical Name: XXXX&lt;/P&gt;&lt;P&gt;440&lt;BR /&gt;441 PROC SQL;&lt;BR /&gt;442 CONNECT USING SNOW;&lt;BR /&gt;443 Execute (REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD) by SNOW;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_1: Executed: on connection 5&lt;BR /&gt;REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: 0 row(s) affected by INSERT/UPDATE/DELETE or other statement.&lt;BR /&gt;444 DELETE FROM SNOW.TEST;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_2: Prepared: on connection 5&lt;BR /&gt;SELECT * FROM "XXXX"."TEST"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_3: Executed: on connection 5&lt;BR /&gt;delete from "XXXX"."TEST"&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: 25686270 row(s) affected by INSERT/UPDATE/DELETE or other statement.&lt;BR /&gt;SNOWFLAKE: COMMIT performed on connection 5.&lt;BR /&gt;445 EXECUTE (CREATE OR REPLACE TEMPORARY TABLE CLAIM (&lt;BR /&gt;446 COL1 VARCHAR(1000),&lt;BR /&gt;447 ...&lt;/P&gt;&lt;P&gt;477 )&lt;BR /&gt;478 on commit preserve rows) by SNOW;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_4: Executed: on connection 5&lt;BR /&gt;CREATE OR REPLACE TEMPORARY TABLE CLAIM ( COL1 VARCHAR(1000), ...&amp;nbsp;) on commit preserve rows&lt;BR /&gt;&lt;BR /&gt;479 INSERT INTO SNOW.CLAIM&lt;BR /&gt;480 (&lt;BR /&gt;481 COL1,&lt;BR /&gt;482 ...&lt;BR /&gt;512 )&lt;BR /&gt;513 SELECT&lt;BR /&gt;514 COL1,&lt;BR /&gt;515 ...&lt;/P&gt;&lt;P&gt;545 FROM DATA.claim2;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_5: Prepared: on connection 5&lt;BR /&gt;SELECT * FROM "XXXX"."CLAIM"&lt;BR /&gt;&lt;BR /&gt;NOTE: The SQL statement cannot be executed directly against the database because it involves heterogeneous data sources.&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_6: Prepared: on connection 5&lt;BR /&gt;SELECT * FROM "XXXX"."CLAIM"&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE: snudesc, failed to match primary key column(s)&lt;BR /&gt;NOTE: 83056675 rows were inserted into SNOW.CLAIM.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SNOWFLAKE_7: Executed: on connection 5&lt;BR /&gt;PUT 'file:///data1/saswork/SAS_util0001000DA128_apslp200161.XXX.com/SASSNBL_42FF7AE0-3064-1A4E-93FF-4448A194848E-00.dat'&lt;BR /&gt;'@SAS_LOAD/' AUTO_COMPRESS = FALSE PARALLEL=4 OVERWRITE = TRUE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_8: Executed: on connection 5&lt;BR /&gt;PUT 'file:///data1/saswork/SAS_util0001000DA128_apslp200161.XXX.com/SASSNBL_42FF7AE0-3064-1A4E-93FF-4448A194848E-01.dat'&lt;BR /&gt;'@SAS_LOAD/' AUTO_COMPRESS = FALSE PARALLEL=4 OVERWRITE = TRUE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_9: Executed: on connection 5&lt;BR /&gt;COPY INTO "XXXX"."CLAIM"&lt;BR /&gt;("COL1",...) FROM '@SAS_LOAD/' FILE_FORMAT=(&lt;BR /&gt;TYPE=CSV FIELD_DELIMITER='\007' COMPRESSION=NONE ) FORCE=TRUE FILES = (&lt;BR /&gt;'SASSNBL_42FF7AE0-3064-1A4E-93FF-4448A194848E-00.dat','SASSNBL_42FF7AE0-3064-1A4E-93FF-4448A194848E-01.dat' )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_10: Executed: on connection 5&lt;BR /&gt;REMOVE '@SAS_LOAD/SASSNBL_42FF7AE0-3064-1A4E-93FF-4448A194848E-00.dat'&lt;BR /&gt;&amp;#12;15 The SAS System 11:31 Monday, September 30, 2024&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_11: Executed: on connection 5&lt;BR /&gt;REMOVE '@SAS_LOAD/SASSNBL_42FF7AE0-3064-1A4E-93FF-4448A194848E-01.dat'&lt;BR /&gt;&lt;BR /&gt;ERROR: Error executing COPY command: Failed to decrypt. Check file key and master key.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;546 EXECUTE(INSERT INTO TEST&lt;BR /&gt;547 (COL1,&lt;BR /&gt;...)&lt;BR /&gt;578 SELECT COL1,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;609 FROM CLAIM) by SNOW;&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;610 DISCONNECT FROM SNOW;&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;611 QUIT;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode.&lt;BR /&gt;This prevents execution of subsequent data modification statements.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 18:55.14&lt;BR /&gt;user cpu time 16:14.11&lt;BR /&gt;system cpu time 44.04 seconds&lt;BR /&gt;memory 7464.15k&lt;BR /&gt;OS Memory 21400.00k&lt;BR /&gt;Timestamp 09/30/2024 11:51:14 AM&lt;BR /&gt;Step Count 92 Switch Count 0&lt;BR /&gt;Page Faults 2&lt;BR /&gt;Page Reclaims 325557&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 59760&lt;BR /&gt;Involuntary Context Switches 83206&lt;BR /&gt;Block Input Operations 10482640&lt;BR /&gt;Block Output Operations 39972888&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945718#M370475</guid>
      <dc:creator>mmawwamm</dc:creator>
      <dc:date>2024-09-30T19:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945720#M370477</link>
      <description>&lt;P&gt;You do not upload the dataset to its own temporary database table, you try to use it directly in the INSERT. As you already noticed, this does not work.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945720#M370477</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-09-30T19:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945721#M370478</link>
      <description>&lt;P&gt;Would you please show me some sample code so that I could understand better?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945721#M370478</guid>
      <dc:creator>mmawwamm</dc:creator>
      <dc:date>2024-09-30T19:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945725#M370480</link>
      <description>&lt;P&gt;If I interpret your previous post correctly, you upload one dataset (which works), and then try to insert a second and third dataset. Use PROC APPEND or a DATA step first on the SAS side (with no use of the database), and then upload the single resulting dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945725#M370480</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-09-30T19:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945728#M370481</link>
      <description>&lt;P&gt;I did not use proc append this time. I create SNOWFLAKE TEMP Table, insert rows to temp table, and then insert rows to target table from the temp table.&lt;/P&gt;&lt;P&gt;It works for one claim table, but failed for the other two.&lt;/P&gt;&lt;P&gt;Here is my code, if I change the &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;claim1&lt;/FONT&gt;&lt;/STRONG&gt; in red into claim2 or claim3. Then I get error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;libname SNOW sasiosnf SERVER="XXXX"&lt;/DIV&gt;&lt;DIV&gt;conopts="uid=&amp;amp;SNOWACNT.;authenticator=snowflake_jwt;&lt;/DIV&gt;&lt;DIV&gt;priv_key_file=/hpsasfin/users/&amp;amp;SYSUSERID./keys/rsa_key.p8;&lt;/DIV&gt;&lt;DIV&gt;priv_key_file_pwd=&amp;amp;KeyPW.;"&lt;/DIV&gt;&lt;DIV&gt;Role="XXXX_ROLE"&lt;/DIV&gt;&lt;DIV&gt;warehouse="XXXX_WH"&lt;/DIV&gt;&lt;DIV&gt;database="XXXX_DB"&lt;/DIV&gt;&lt;DIV&gt;schema="XXXX"&lt;/DIV&gt;&lt;DIV&gt;READBUFF=32000&lt;/DIV&gt;&lt;DIV&gt;INSERTBUFF=32000&lt;/DIV&gt;&lt;DIV&gt;DBCOMMIT=32000&lt;/DIV&gt;&lt;DIV&gt;CONNECTION=GLOBAL BULKLOAD = YES BL_INTERNAL_STAGE = "SAS_LOAD";&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PROC SQL;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONNECT USING SNOW;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Execute (REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD) by SNOW;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DELETE FROM SNOW.TEST;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EXECUTE (CREATE OR REPLACE TEMPORARY TABLE CLAIM (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COL1 VARCHAR(1000),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;on commit preserve rows) by SNOW;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;INSERT INTO SNOW.CLAIM&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COL1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;...&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COL1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FROM DATA.&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;claim1&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EXECUTE(INSERT INTO TEST&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(COL1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;...)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT COL1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FROM CLAIM) by SNOW;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DISCONNECT FROM SNOW;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;QUIT;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945728#M370481</guid>
      <dc:creator>mmawwamm</dc:creator>
      <dc:date>2024-09-30T19:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945747#M370484</link>
      <description>&lt;P&gt;I do think it might be the issue. Because I also try the following. I could see the .csv file had been loaded to Snowflake internal stage. However, when I try COPY INTO, I get "100109 (XX000): Failed to decrypt. Check file key and master key." in Snowflake WebUI. Or "ERROR: Error executing COPY command: Failed to decrypt. Check file key and master key." in SAS EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CONNECT USING SNOW;&lt;BR /&gt;Execute (REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD) by SNOW;&lt;BR /&gt;DELETE FROM SNOW.TEST;&lt;BR /&gt;Execute (PUT file:///XXXX/data/claim1.csv &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD&lt;BR /&gt;AUTO_COMPRESS = FALSE PARALLEL=4 OVERWRITE = TRUE) by SNOW;&lt;BR /&gt;Execute (COPY INTO TEST from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD FORCE = TRUE) by SNOW;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 02:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/945747#M370484</guid>
      <dc:creator>mmawwamm</dc:creator>
      <dc:date>2024-10-01T02:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: error when passing a large table from SAS Fusion to Snowflake using bulkload</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/946434#M370636</link>
      <description>&lt;P&gt;Finally I found this solution:&lt;/P&gt;&lt;P&gt;(resolved auto_compress not working, and potential invalid UTF8 detected in string error)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Run following in Snowflake first (one-time creation):&lt;/U&gt;&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE FILE FORMAT LOAD_FORMAT&lt;/P&gt;&lt;P&gt;&amp;nbsp; TYPE = 'CSV'&lt;/P&gt;&lt;P&gt;&amp;nbsp; FIELD_DELIMITER = ','&lt;/P&gt;&lt;P&gt;&amp;nbsp; SKIP_HEADER = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; FIELD_OPTIONALLY_ENCLOSED_BY = '"'&lt;/P&gt;&lt;P&gt;&amp;nbsp; REPLACE_INVALID_CHARACTERS = TRUE;&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE STAGE SAS_LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; FILE_FORMAT = LOAD_FORMAT;&lt;/P&gt;&lt;P&gt;&lt;U&gt;The use following SAS code to upload:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;x gzip -cf /myfolder/myfile.csv &amp;gt; /myfolder/myfile.csv.gz;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;SQL&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CONNECT USING SNOW;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Execute (REMOVE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD) by SNOW;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DELETE FROM SNOW.MYTABLE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Execute (PUT file:///myfolder/myfile.csv.gz &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD&lt;/P&gt;&lt;P&gt;AUTO_COMPRESS = FALSE PARALLEL=&lt;STRONG&gt;4&lt;/STRONG&gt; OVERWRITE = TRUE) by SNOW;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Execute (COPY INTO MYTABLE from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;_LOAD/myfile.csv.gz FORCE = TRUE ON_ERROR = CONTINUE) by SNOW;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;x rm /myfolder/myfile.csv.gz;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 21:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-when-passing-a-large-table-from-SAS-Fusion-to-Snowflake/m-p/946434#M370636</guid>
      <dc:creator>mmawwamm</dc:creator>
      <dc:date>2024-10-05T21:49:50Z</dc:date>
    </item>
  </channel>
</rss>

