<?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: Talend job does not commit snowflake data! in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363019#M127032</link>
    <description>&lt;P&gt;Here's the reason and solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to import the id as a primary key with Talend to Snowflake. Snowflake does not allow you to utilize and id column insert, since those are generated automatically as we define it while creating the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;CREATE TABLE IF NOT EXISTS public.events (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;id bigint NOT NULL autoincrement start 1 increment 1 PRIMARY KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;odb_created_at timestamp without time zone NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;event_time timestamp without time zone NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;device_type integer NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;event_type integer NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ticket_type integer NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;card_nr character varying(100),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count integer DEFAULT 1 NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;manufacturer character varying(200),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;carpark_id bigint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to remove my ID inserts generated by Talend and let Snowflake do the work.&lt;/P&gt;&lt;P&gt;The reason the NOT NULL error code occurred was due to the fact id in SQL was set to NOT NULL(of course because it is an ID). DO NOT USE IDS WITH SNOWFLAKE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution: Use autoincrement in Snowflake directly or use sequences with no autoincrement.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 08:54:19 GMT</pubDate>
    <dc:creator>amba1</dc:creator>
    <dc:date>2021-08-27T08:54:19Z</dc:date>
    <item>
      <title>Talend job does not commit snowflake data!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363015#M127028</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an Issue with Talend trying to commit to a snowflake database. &lt;/P&gt;&lt;P&gt;Here's my job:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HugLLAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149615i146D25E5B2EDA513/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HugLLAAZ.png" alt="0695b00000HugLLAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HugLVAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152284i885149B7836B8BC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HugLVAAZ.png" alt="0695b00000HugLVAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the job works fine and does not throw any error. It should be writing 9.6k rows to the snowflake table named EVENTS. But that does not happen, heres what I see on my snowflake server, read from bottom to top:&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HugN3AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149607iAA739899614D6C00/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HugN3AAJ.png" alt="0695b00000HugN3AAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a description step by step of what happens in Snowflake when I run my Talend job if you can't read from the screenshot.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;SHOW GRANTS TO USER identifier('"AMBA"'); -- my user&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SELECT * FROM EVENTS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SELECT CURRENT_DATABASE(), CURRENT_SCHEMA()&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;alter session /* JDBC:SnowflakeConnectionV1.setAutoCommit*/ set autocommit=false&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;show /* JDBC:DatabaseMetaData.getPrimaryKeys() */ primary keys in table "ANALYTICS"."PUBLIC"."EVENTS"&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;show /* JDBC:DatabaseMetaData.getColumns() */ columns in table "ANALYTICS"."PUBLIC"."EVENTS"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;PUT 'file://C:\\Users\\amba\\AppData\\Local\\Temp\\snowflake\\stage\\EVENTS\\INSERT\\20210826_185008_230_NLF1NE_1\\stream_20210826_185008_2300.gz' '@~/EVENTS/INSERT/20210826_185008_230_NLF1NE_1' parallel=10 overwrite=true auto_compress=false SOURCE_COMPRESSION=gzip&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;show columns in "EVENTS"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;CREATE TEMPORARY TABLE "EVENTS_20210826_185008_230_1" LIKE "EVENTS"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;COPY INTO "EVENTS_20210826_185008_230_1" FROM '@~/EVENTS/INSERT/20210826_185008_230_NLF1NE_1' on_error='CONTINUE' file_format=( field_optionally_enclosed_by='"' empty_field_as_null=true)  &lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;COPY INTO "EVENTS_20210826_185008_230_1" FROM '@~/EVENTS/INSERT/20210826_185008_230_NLF1NE_1' validation_mode='return_all_errors' file_format=(field_optionally_enclosed_by='"'empty_field_as_null=true) -- HERE I CAN SEE MY 9.6K ROWS&lt;/U&gt;&lt;OL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HugPhAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130776i3390502A342C96F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HugPhAAJ.png" alt="0695b00000HugPhAAJ.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;INSERT INTO "EVENTS"("ID","ODB_CREATED_AT","EVENT_TIME","DEVICE_TYPE","EVENT_TYPE","TICKET_TYPE","CARD_NR","COUNT","MANUFACTURER","CARPARK_ID") SELECT * FROM "EVENTS_20210826_185008_230_1"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;RM '@~/EVENTS/INSERT/20210826_185008_230_NLF1NE_1'&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;commit&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;commit&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understanding the steps here, the data should be copied from the temp table to the event table, but that just does not happen. My Talend job seems to be fine, the data arrives to snowflake, but is never copied from that temp table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amba&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363015#M127028</guid>
      <dc:creator>amba1</dc:creator>
      <dc:date>2024-11-15T23:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Talend job does not commit snowflake data!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363016#M127029</link>
      <description>&lt;P&gt;Can you add a tLogRow to the "reject" row coming out of the tDBOutput_1 component and run it? I suspect that you will see errors there.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 23:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363016#M127029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-26T23:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Talend job does not commit snowflake data!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363017#M127030</link>
      <description>&lt;P&gt;Thanks for your answer, here's the output of the reject:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000HuhcmAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155239iE5A10AD9C912A17A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000HuhcmAAB.png" alt="0695b00000HuhcmAAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's the normal output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Huhd1AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144737iF010E2377EF3EF55/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Huhd1AAB.png" alt="0695b00000Huhd1AAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table Schema in Talend are the same as in Snowflake. On the first screenshot, I see that all of my rows are rejected, but when I connect a tlogrow to my tmap, it does work wihtout crashing for inserting nulls in a non-nullable column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The error would mean that one of the column in snowflake is not nullable but I try to insert null values in it. That cannot be since they have the same schema as in talend?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 26 Aug 2021 23:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363017#M127030</guid>
      <dc:creator>amba1</dc:creator>
      <dc:date>2021-08-26T23:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Talend job does not commit snowflake data!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363018#M127031</link>
      <description>&lt;P&gt;What you are seeing is an error from Snowflake and not from Talend. So something is wrong with the insert statement being used. I notice that your id is always 0. Are you supplying that? Is the ID configured as auto-increment? If so, have you tried removing it from the schema of the tDBOutput_1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice the Snowflake error 100072. This does seem to point to an auto-increment primary key if you check the Snowflake documentation/comments. &lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 00:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363018#M127031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-27T00:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Talend job does not commit snowflake data!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363019#M127032</link>
      <description>&lt;P&gt;Here's the reason and solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to import the id as a primary key with Talend to Snowflake. Snowflake does not allow you to utilize and id column insert, since those are generated automatically as we define it while creating the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;CREATE TABLE IF NOT EXISTS public.events (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;id bigint NOT NULL autoincrement start 1 increment 1 PRIMARY KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;odb_created_at timestamp without time zone NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;event_time timestamp without time zone NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;device_type integer NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;event_type integer NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ticket_type integer NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;card_nr character varying(100),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count integer DEFAULT 1 NOT NULL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;manufacturer character varying(200),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;carpark_id bigint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to remove my ID inserts generated by Talend and let Snowflake do the work.&lt;/P&gt;&lt;P&gt;The reason the NOT NULL error code occurred was due to the fact id in SQL was set to NOT NULL(of course because it is an ID). DO NOT USE IDS WITH SNOWFLAKE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution: Use autoincrement in Snowflake directly or use sequences with no autoincrement.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 08:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363019#M127032</guid>
      <dc:creator>amba1</dc:creator>
      <dc:date>2021-08-27T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Talend job does not commit snowflake data!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363020#M127033</link>
      <description>&lt;P&gt;This aligns with what I had read about that error with Snowflake. Thanks @Not defined Not defined​&amp;nbsp;for coming back and writing up the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363020#M127033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-27T09:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Talend job does not commit snowflake data!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363021#M127034</link>
      <description>&lt;P&gt;You're welcome. Your hint made me realize!&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 09:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-job-does-not-commit-snowflake-data/m-p/2363021#M127034</guid>
      <dc:creator>amba1</dc:creator>
      <dc:date>2021-08-28T09:34:32Z</dc:date>
    </item>
  </channel>
</rss>

