<?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: Query execution failed in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133561#M7912</link>
    <description>&lt;P&gt;ell, that column 'defval' is not pesent in the insert statement and therefor it will be treated as NULL, which is apparently not allowed.&lt;/P&gt;
&lt;P&gt;Why is it not there? Your description suggests it exists on source and target (with non-null attribute). It would seem there is a table edit which drops that column. How else?&lt;/P&gt;
&lt;P&gt;Repeat with&amp;nbsp; just that table and just a few row, and Logging verbose for source_reader and target_apply and afterwards search the log for any and all mention of 'defval'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;btw... that date&amp;nbsp;&lt;SPAN&gt;,'0001-01-01', looks odd also. It may be a silly test value or is might be wrong.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2023 03:16:57 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2023-11-01T03:16:57Z</dc:date>
    <item>
      <title>Query execution failed</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133533#M7911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Noticed a warning in the logs , Insert is getting failed . and all columns are not there in the insert statement . The task is running fine. Since its a warning.&amp;nbsp; But logged many data error in the exeception table&lt;/P&gt;
&lt;P&gt;Statement: INSERT INTO [rawload].[salesadd] ( [client_id],[add_num],[number1],[DATe1],[NUMBER2],[SrcSys],[date2],[time],[Operation_Indicator] )&amp;nbsp; VALUES ('100','1100010925','2200681871','0001-01-01','001','salesadd sys','2023-04-20','11:12:42','D')&lt;/P&gt;
&lt;P&gt;Error: RetCode: SQL_ERROR&amp;nbsp; SqlState: 23000 NativeError: 515 Message: [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'defval', table 'abc.[rawload].[salesadd]'; column does not allow nulls. INSERT fails. Line: 1 Column: -1&lt;/P&gt;
&lt;P&gt;Source is SAP Application and&lt;/P&gt;
&lt;P&gt;Target is Azure SQL Database&lt;/P&gt;
&lt;P&gt;There are no filters in the task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checked the DDL for source and target, for "defval" column , it's&amp;nbsp; "not null" .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tested running same insert statement into target , got the same error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below is the&amp;nbsp; settings.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="suvbin_0-1698803836088.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119160i57345F657FECE942/image-size/medium?v=v2&amp;amp;px=400" role="button" title="suvbin_0-1698803836088.png" alt="suvbin_0-1698803836088.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 03:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133533#M7911</guid>
      <dc:creator>suvbin</dc:creator>
      <dc:date>2023-11-01T03:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query execution failed</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133561#M7912</link>
      <description>&lt;P&gt;ell, that column 'defval' is not pesent in the insert statement and therefor it will be treated as NULL, which is apparently not allowed.&lt;/P&gt;
&lt;P&gt;Why is it not there? Your description suggests it exists on source and target (with non-null attribute). It would seem there is a table edit which drops that column. How else?&lt;/P&gt;
&lt;P&gt;Repeat with&amp;nbsp; just that table and just a few row, and Logging verbose for source_reader and target_apply and afterwards search the log for any and all mention of 'defval'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;btw... that date&amp;nbsp;&lt;SPAN&gt;,'0001-01-01', looks odd also. It may be a silly test value or is might be wrong.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 03:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133561#M7912</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-11-01T03:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query execution failed</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133927#M7923</link>
      <description>&lt;P&gt;Issue resolved by giving some default value to the column in the transform section .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 03:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133927#M7923</guid>
      <dc:creator>suvbin</dc:creator>
      <dc:date>2023-11-02T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query execution failed</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133970#M7924</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/90520"&gt;@suvbin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If our response has been helpful, kindly consider clicking "Accept as Solution" button for the corresponding post. This will help other users identify the answer.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 06:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Query-execution-failed/m-p/2133970#M7924</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2023-11-02T06:45:57Z</dc:date>
    </item>
  </channel>
</rss>

