<?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: CDC failed with inserting into a non-nullable column. Need help to identify the non-nullable column. in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2473331#M12186</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2924"&gt;@desmondchew&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks your task is failing while updating table "&lt;SPAN&gt;'EX25", Could you please check do you have null values or empty string values present in the source where data type is defined as "NOT NULL" constraints&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Else try with below option to send some value in identified column&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CASE WHEN $Column_Name=='' THEN 'null'&lt;BR /&gt;ELSE $Column_Name&lt;BR /&gt;END&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, I would request you to create support case, So that we can work together to resolve the issue.&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;Sachin B&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jul 2024 05:04:42 GMT</pubDate>
    <dc:creator>SachinB</dc:creator>
    <dc:date>2024-07-27T05:04:42Z</dc:date>
    <item>
      <title>CDC failed with inserting into a non-nullable column. Need help to identify the non-nullable column.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2470828#M11990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an existing task that replicate from source MySQL 8 into Snowflake target endpoint. It failed during CDC and the error message below. I have masked some details related to our environment like schema name and columns.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help to identify which are the columns are hitting the error "CDC failed with inserting into a non nullable column"? Which is the non-nullable column? I have already made changes to the target table on column 9th and 10th to allow NULL however it still fails. Could you please help?&lt;/P&gt;
&lt;P&gt;00016040: 2024-07-15T05:24:38:167903 [TARGET_APPLY ]E: Failed (retcode -1) to execute statement: INSERT INTO "LZ_MERIDIAN"."EX25" (col1, col2, col3, ........... ) SELECT CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col1", null ) as VARCHAR(131072)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col2", null ) as VARCHAR(131072)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col3", null ) as VARCHAR(131072)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col4", null ) as VARCHAR(200)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col5", null ) as VARCHAR(100)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col6", null ) as VARCHAR(100)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col7", null ) as VARCHAR(100)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col8", null ) as VARCHAR(100)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1D0C8E44"."col9", null ) as VARCHAR(100)), CAST ( IFF( "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;gt;= 62 and "SCHEMA"."attrep_changesACC417CB1D0C8E44"."seq" &amp;lt;= 104, "SCHEMA"."attrep_changesACC417CB1... [1022502] (ar_odbc_stmt.c:5038) 00016040: 2024-07-15T05:24:38:167903 [TARGET_APPLY ]E: RetCode: SQL_ERROR SqlState: 22000 NativeError: 100072 Message: NULL result in a non-nullable column [1022502] (ar_odbc_stmt.c:5046) 00016040: 2024-07-15T05:24:38:167903 [TARGET_APPLY ]E: Failed to execute bulk insert statement. 'INSERT INTO "SCHEMA"."EX25"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;BR /&gt;Desmond&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 01:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2470828#M11990</guid>
      <dc:creator>desmondchew</dc:creator>
      <dc:date>2024-07-16T01:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: CDC failed with inserting into a non-nullable column. Need help to identify the non-nullable column.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2470836#M11994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2924"&gt;@desmondchew&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Qlik Community.&lt;BR /&gt;&lt;BR /&gt;The error message is returned by the Snowflake. If you have&lt;SPAN&gt;&amp;nbsp;already made changes to the target table on column 9th and 10th to allow NULL, the error may be caused by other columns.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Under Error Handling, please configure the task to stop when it encounters a data error. Your net change table&amp;nbsp;"SCHEMA"."attrep_changesACC417CB1D0C8E44"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;may still exist. You can then query the table to identify the specific rows causing the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Desmond Woo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 03:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2470836#M11994</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-07-16T03:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: CDC failed with inserting into a non-nullable column. Need help to identify the non-nullable column.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2471300#M12032</link>
      <description>&lt;P&gt;Perhaps use the advanced - target endpoint setting - internal parameters - "keepCSVFiles".&lt;/P&gt;
&lt;P&gt;Next after a failure, using the timestamps, find the right CSV files and use some scripting/editing tool to find a null?&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 20:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2471300#M12032</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-07-17T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: CDC failed with inserting into a non-nullable column. Need help to identify the non-nullable column.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2473147#M12168</link>
      <description>&lt;P&gt;I have enabled "emptyasNull" in target Snowflake endpoint. I have checked on&amp;nbsp;&lt;SPAN&gt;"SCHEMA"."attrep_changesACC417CB1D0C8E44", there are a lot of records. How can I identify which row is null or having issues?&lt;BR /&gt;&lt;BR /&gt;I am not turning on "keepCSVFiles" as previously we enabled and it cause a production outage due to disk full over the weekend.&lt;BR /&gt;&lt;BR /&gt;Desmond&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 07:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2473147#M12168</guid>
      <dc:creator>desmondchew</dc:creator>
      <dc:date>2024-07-26T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: CDC failed with inserting into a non-nullable column. Need help to identify the non-nullable column.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2473160#M12169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2924"&gt;@desmondchew&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I think you may check the NULL data with the following query:&lt;BR /&gt;&lt;BR /&gt;select * from "DB"."PUBLIC"."attrep_changes499FC6950983F828" where "col1" is null or "col2" is null or ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you have a CSV file, you can use Excel or findstr command to search&amp;nbsp;&lt;STRONG&gt;attrep_null&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 08:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2473160#M12169</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-07-26T08:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: CDC failed with inserting into a non-nullable column. Need help to identify the non-nullable column.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2473331#M12186</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2924"&gt;@desmondchew&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks your task is failing while updating table "&lt;SPAN&gt;'EX25", Could you please check do you have null values or empty string values present in the source where data type is defined as "NOT NULL" constraints&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Else try with below option to send some value in identified column&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CASE WHEN $Column_Name=='' THEN 'null'&lt;BR /&gt;ELSE $Column_Name&lt;BR /&gt;END&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, I would request you to create support case, So that we can work together to resolve the issue.&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;Sachin B&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 05:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/CDC-failed-with-inserting-into-a-non-nullable-column-Need-help/m-p/2473331#M12186</guid>
      <dc:creator>SachinB</dc:creator>
      <dc:date>2024-07-27T05:04:42Z</dc:date>
    </item>
  </channel>
</rss>

