<?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: How to notify SQL_ERROR to Windows Event log. in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462456#M11535</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Tajima-san,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142280"&gt;@iti-attunity-sup&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you so much for your quick update. No worries and take your time, we are here always for help.&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 06:46:10 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2024-06-14T06:46:10Z</dc:date>
    <item>
      <title>How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462398#M11525</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I have some questions regarding&amp;nbsp;notifications for task event.&lt;/P&gt;
&lt;P&gt;The customer creates some notifications for task event when errors or warnings occur.&lt;/P&gt;
&lt;P&gt;They encountered the SQL_ERROR below the other day, but no notification messages were recorded in the Windows Event log.&lt;/P&gt;
&lt;PRE&gt;00015984: 2024-06-12T11:06:01 [TARGET_APPLY ]I: Error in bulk, bulk state: bulk confirmed record id - '1', bulk last record id - '1060705', confirmed record id - '1060585', sorter confirmed record id - '1060585' (bulk_apply.c:2476)&lt;BR /&gt;00015984: 2024-06-12T11:06:01 [TARGET_APPLY ]I: Failed (retcode -1) to execute statement: INSERT INTO ...&lt;BR /&gt;00015984: 2024-06-12T11:06:01 [TARGET_APPLY ]I: RetCode: SQL_ERROR SqlState: XX000 NativeError: 30 Message: [Amazon][Amazon Redshift] (30) Error occurred while trying to execute a query: [SQLState XX000] ERROR: Cannot insert a NULL value into ...&lt;BR /&gt;DETAIL: &lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;error: Cannot insert a NULL value into column xxx&lt;BR /&gt;code: 8007&lt;BR /&gt;context: query execution&lt;BR /&gt;query: 701014253&lt;BR /&gt;location: column:40&lt;BR /&gt;process: query0_230_701014253 [pid=22460]&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;[1022502] (ar_odbc_stmt.c:5046)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Though the above SQL Errors were occurring repeatedly at that time, the customer could not notice it immediately, then latency increased, eventually reaching 7200 seconds.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Questions:&lt;/P&gt;
&lt;P&gt;1. My understanding is that the above message was marked as Info(I:) in the task log, so it was not notified as an error or a warning. Is it correct?&lt;/P&gt;
&lt;P&gt;2. How can we get a notification when such SQL_ERROR occurs? (How should I create a notification?)&lt;/P&gt;
&lt;P&gt;If this kind of issue should be asked as a support case, could you let me know?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Kyoko Tajima&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 02:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462398#M11525</guid>
      <dc:creator>iti-attunity-sup</dc:creator>
      <dc:date>2024-06-14T02:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462403#M11526</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142280"&gt;@iti-attunity-sup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please make sure "&lt;SPAN&gt;Windows Event Log" option is selected while configuring the Notification settings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sureshkumar_0-1718333115520.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167939i0B0469E66F1CCDC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sureshkumar_0-1718333115520.png" alt="sureshkumar_0-1718333115520.png" /&gt;&lt;/span&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>Fri, 14 Jun 2024 02:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462403#M11526</guid>
      <dc:creator>sureshkumar</dc:creator>
      <dc:date>2024-06-14T02:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462405#M11527</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Suresh&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;Thank you for your update.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;According to the diagnostics package (task_export.json),&lt;/DIV&gt;
&lt;DIV&gt;"delivery_methods" is "EVENT_VIEWER", so I think it's OK.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;"name": "AnyError",&lt;BR /&gt;"trigger_type": "GENERAL_ERROR",&lt;BR /&gt;"on_condition": "1",&lt;BR /&gt;"audit_on_message": "[{{SERVER_NAME}}\\{{NOTIFICATION_NAME}}] {{TASK_NAME}} replication task encountered the following error:\n{{ERROR_TEXT}}",&lt;BR /&gt;"trigger_timeout": 0,&lt;BR /&gt;"delivery_methods": [{&lt;BR /&gt;&lt;SPAN&gt; "type": "EVENT_VIEWER",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "on_message": "[{{SERVER_NAME}}\\{{NOTIFICATION_NAME}}] {{TASK_NAME}}:replication task encountered the following error:\n{{ERROR_TEXT}}.",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "on_subject": ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }],&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kyoko Tajima&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 03:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462405#M11527</guid>
      <dc:creator>iti-attunity-sup</dc:creator>
      <dc:date>2024-06-14T03:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462408#M11529</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142280"&gt;@iti-attunity-sup&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If the task gets into error/warning the notifications will be trigged based on the settings you've configured not during INFO mode.&lt;/P&gt;
&lt;P&gt;Hope it helps.&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>Fri, 14 Jun 2024 03:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462408#M11529</guid>
      <dc:creator>sureshkumar</dc:creator>
      <dc:date>2024-06-14T03:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462412#M11530</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142280"&gt;@iti-attunity-sup&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes, you were right. I believe since it was an INFO message, it would have failed to trigger a notification.&lt;/P&gt;
&lt;P&gt;I recommend opening a support ticket so our internal team can validate the log and understand why the error message was written as an INFO message.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Arun&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 03:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462412#M11530</guid>
      <dc:creator>aarun_arasu</dc:creator>
      <dc:date>2024-06-14T03:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462416#M11531</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142280"&gt;@iti-attunity-sup&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Not sure what's the Replicate version you are running now, however you may try below option:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Redshift target endpoint&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to the&amp;nbsp;&lt;STRONG&gt;Advanced&lt;/STRONG&gt;&amp;nbsp;tab&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Open&amp;nbsp;&lt;STRONG&gt;Internal Parameters&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add a&lt;EM class="Highlight"&gt;&amp;nbsp;new&amp;nbsp;&lt;/EM&gt;parameter named&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$info.query_syntax.error_code_data_failure&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Press&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;Enter&amp;gt;&lt;/STRONG&gt;&amp;nbsp;and set the parameter's value to:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;8007&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;where &lt;FONT face="courier new,courier"&gt;8007&amp;nbsp;&lt;/FONT&gt;is the error code in the error message. You may add more error codes there like "8007, 8008" etc.&lt;BR /&gt;&lt;BR /&gt;Please take note I did not try it in my labs and in general it works for other specific endpoints. Hope it works for you, any feedback is welcome.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 03:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462416#M11531</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-06-14T03:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462431#M11532</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello John&lt;/P&gt;
&lt;P&gt;Thank you for your reply and suggesting a workaround.&lt;/P&gt;
&lt;P&gt;The customer is using v2023.05 and internal parameter $info.query_syntax.error_code_data_failure is available.&lt;/P&gt;
&lt;P&gt;May I confirm your suggested workaround?&lt;/P&gt;
&lt;P&gt;1. From the description of your update, when we use this parameter, does it mean that we need to set the error code that appears in the following message individually?&lt;/P&gt;
&lt;P&gt;In the customer's case, 8007&lt;/P&gt;
&lt;PRE&gt;-----------------------------------------------&lt;BR /&gt;error: Cannot insert a NULL value into column xxx&lt;BR /&gt;code: 8007 &amp;lt;-----&lt;BR /&gt;context: query execution&lt;BR /&gt;query: 701014253&lt;BR /&gt;location: column:40&lt;BR /&gt;process: query0_230_701014253 [pid=22460]&lt;BR /&gt;-----------------------------------------------&lt;/PRE&gt;
&lt;P&gt;I wonder the customer cannot be sure in advance what other error code may occur besides this error. &lt;BR /&gt;Are there any settings that would be enabled for all error codes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If the error code specified in $info.query_syntax.error_code_data_failure occurs, &lt;BR /&gt;my understanding that some warning or error occurs and then notify it to the event log.&lt;BR /&gt;In this case, the table causes warnings or errors will be suspended. Is my understanding correct?&lt;/P&gt;
&lt;P&gt;We are trying to reproduce this error in house but have not been able to do for now, so I would like to confirm it.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Kyoko Tajima&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 05:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462431#M11532</guid>
      <dc:creator>iti-attunity-sup</dc:creator>
      <dc:date>2024-06-14T05:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462432#M11533</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Tajima-san,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you so much for the information.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No need to care about all other error message codes, I'm just trying to find a quick workaround for this issue. I'm not sure if this internal parameter work or not as it's introduced for other endpoints, I do not see it in the default Redshift syntax. If it works then we may work with R&amp;amp;D to get an official solution, the test result would speed up the progress. If it does not work then the test result helps us to set the case proper priority.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 05:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462432#M11533</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-06-14T05:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462454#M11534</link>
      <description>&lt;P&gt;Hello John&lt;/P&gt;
&lt;P&gt;Thank you for your update.&lt;/P&gt;
&lt;P&gt;I understood.&lt;/P&gt;
&lt;P&gt;Currently I can not reproduce the same error with my simple testcase as I mentioned in my previous update.&lt;BR /&gt;My testcase causes 'A NOT NULL constraint violation' instead of 'code 8007'...&lt;BR /&gt;So I could not confirm the effectiveness of the parameter for now.&lt;/P&gt;
&lt;P&gt;I've asked the customer to provide their table/index/constraint definition and sample data.&lt;BR /&gt;I will update if I can confirm it.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Kyoko Tajima&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 06:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462454#M11534</guid>
      <dc:creator>iti-attunity-sup</dc:creator>
      <dc:date>2024-06-14T06:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to notify SQL_ERROR to Windows Event log.</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462456#M11535</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Tajima-san,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142280"&gt;@iti-attunity-sup&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you so much for your quick update. No worries and take your time, we are here always for help.&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 06:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-notify-SQL-ERROR-to-Windows-Event-log/m-p/2462456#M11535</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-06-14T06:46:10Z</dc:date>
    </item>
  </channel>
</rss>

