<?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>article Qlik Replicate task data synchronization failed from SQLMI to AS400: SqlState: 42000 NativeError: Attributes not valid in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-task-data-synchronization-failed-from-SQLMI-to/ta-p/2554821</link>
    <description>&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Replicate&lt;/STRONG&gt;&lt;/FONT&gt; task data synchronization failed to replicate data from &lt;FONT color="#339966"&gt;&lt;STRONG&gt;SQLMI&lt;/STRONG&gt;&lt;/FONT&gt; to an &lt;FONT color="#339966"&gt;&lt;STRONG&gt;AS400&lt;/STRONG&gt; &lt;/FONT&gt;(&lt;FONT color="#339966"&gt;&lt;STRONG&gt;iSeries/DB2&lt;/STRONG&gt;&lt;/FONT&gt;) target via an ODBC endpoint, with new tasks failing during initialization when generating and executing &lt;FONT face="courier new,courier"&gt;CREATE TABLE&lt;/FONT&gt; statements for internal control tables&amp;nbsp;(such as &lt;FONT face="courier new,courier"&gt;attrep_apply_exceptions&lt;/FONT&gt;) on the target.&lt;/P&gt;
&lt;P&gt;Example error:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Attributes not valid&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Detailed log:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Stream component 'st_0_AS400 - PSFWEB - MC - Target' terminated&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Stream component failed at subtask 0, component st_0_AS400 - PSFWEB - MC - Target&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Error executing command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cannot create Exception table&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cannot create Special table&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;execute create table statement failed, statement CREATE TABLE "attrep_apply_exceptions" ( "TASK_NAME" VARCHAR(128) NOT NULL, "TABLE_OWNER" VARCHAR(128) NOT NULL, "TABLE_NAME" VARCHAR(128) NOT NULL, "ERROR_TIME" TIMESTAMP NOT NULL, "STATEMENT" CLOB(0) NOT NULL, "ERROR" CLOB(0) NOT NULL )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RetCode: SQL_ERROR SqlState: 42000 NativeError: -604 Message: [IBM][System i Access ODBC Driver][DB2 for i5/OS]SQL0604 - Attributes not valid.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Failed (retcode -1) to execute statement: CREATE TABLE "attrep_apply_exceptions" ( "TASK_NAME" VARCHAR(128) NOT NULL, "TABLE_OWNER" VARCHAR(128) NOT NULL, "TABLE_NAME" VARCHAR(128) NOT NULL, "ERROR_TIME" TIMESTAMP NOT NULL, "STATEMENT" CLOB(0) NOT NULL, "ERROR" CLOB(0) NOT NULL )&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Set &lt;STRONG&gt;Provider Syntax&lt;/STRONG&gt; to &lt;STRONG&gt;DB2&lt;/STRONG&gt; in the target endpoint.&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;Go to your&amp;nbsp;&lt;STRONG&gt;Target Endpoint&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Switch to the &lt;STRONG&gt;Advanced&amp;nbsp;&lt;/STRONG&gt;tab&lt;/LI&gt;
&lt;LI&gt;Set the correct&amp;nbsp;&lt;STRONG&gt;Provider Syntax&amp;nbsp;&lt;/STRONG&gt;
&lt;BLOCKQUOTE class="quote"&gt;Engage Qlik's Professional Services for more direct assistance for custom ODBC endpoint setups due to provider-specific SQL syntax rules.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;SQL0604 / NativeError -604 means Db2 for IBM i rejected an invalid data-type attribute, typically a column or expression with an unsupported length, precision, scale, timestamp precision, or ALLOCATE value. This is normally an SQL-definition problem, not a network or ODBC connection problem. (on QR V2023.5.0.322)&lt;/P&gt;
&lt;P&gt;The task fails because Qlik Replicate generates this invalid Db2 for i definition:&lt;/P&gt;
&lt;PRE&gt;"STATEMENT" CLOB(0) NOT NULL,&lt;BR /&gt;"ERROR" &amp;nbsp; &amp;nbsp; CLOB(0) NOT NULL&lt;/PRE&gt;
&lt;P&gt;On Db2 for IBM i, a CLOB length must be between 1 byte and 2 GB. Therefore, CLOB(0) produces SQL0604 / -604 – Attributes not valid. &amp;nbsp;Other column definitions are valid.&lt;/P&gt;
&lt;P&gt;That indicates the target endpoint is missing or uses the wrong configuration for the &lt;STRONG&gt;Endpoint&lt;/STRONG&gt; --&amp;gt; &lt;STRONG&gt;Advanced&lt;/STRONG&gt; tab --&amp;gt; &lt;STRONG&gt;Provider syntax setting&lt;/STRONG&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 17 Aug 2026 05:32:37 GMT</pubDate>
    <dc:creator>wei_guo</dc:creator>
    <dc:date>2026-08-17T05:32:37Z</dc:date>
    <item>
      <title>Qlik Replicate task data synchronization failed from SQLMI to AS400: SqlState: 42000 NativeError: Attributes not valid</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-task-data-synchronization-failed-from-SQLMI-to/ta-p/2554821</link>
      <description>&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Replicate&lt;/STRONG&gt;&lt;/FONT&gt; task data synchronization failed to replicate data from &lt;FONT color="#339966"&gt;&lt;STRONG&gt;SQLMI&lt;/STRONG&gt;&lt;/FONT&gt; to an &lt;FONT color="#339966"&gt;&lt;STRONG&gt;AS400&lt;/STRONG&gt; &lt;/FONT&gt;(&lt;FONT color="#339966"&gt;&lt;STRONG&gt;iSeries/DB2&lt;/STRONG&gt;&lt;/FONT&gt;) target via an ODBC endpoint, with new tasks failing during initialization when generating and executing &lt;FONT face="courier new,courier"&gt;CREATE TABLE&lt;/FONT&gt; statements for internal control tables&amp;nbsp;(such as &lt;FONT face="courier new,courier"&gt;attrep_apply_exceptions&lt;/FONT&gt;) on the target.&lt;/P&gt;
&lt;P&gt;Example error:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Attributes not valid&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Detailed log:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Stream component 'st_0_AS400 - PSFWEB - MC - Target' terminated&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Stream component failed at subtask 0, component st_0_AS400 - PSFWEB - MC - Target&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Error executing command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cannot create Exception table&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cannot create Special table&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;execute create table statement failed, statement CREATE TABLE "attrep_apply_exceptions" ( "TASK_NAME" VARCHAR(128) NOT NULL, "TABLE_OWNER" VARCHAR(128) NOT NULL, "TABLE_NAME" VARCHAR(128) NOT NULL, "ERROR_TIME" TIMESTAMP NOT NULL, "STATEMENT" CLOB(0) NOT NULL, "ERROR" CLOB(0) NOT NULL )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RetCode: SQL_ERROR SqlState: 42000 NativeError: -604 Message: [IBM][System i Access ODBC Driver][DB2 for i5/OS]SQL0604 - Attributes not valid.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Failed (retcode -1) to execute statement: CREATE TABLE "attrep_apply_exceptions" ( "TASK_NAME" VARCHAR(128) NOT NULL, "TABLE_OWNER" VARCHAR(128) NOT NULL, "TABLE_NAME" VARCHAR(128) NOT NULL, "ERROR_TIME" TIMESTAMP NOT NULL, "STATEMENT" CLOB(0) NOT NULL, "ERROR" CLOB(0) NOT NULL )&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Set &lt;STRONG&gt;Provider Syntax&lt;/STRONG&gt; to &lt;STRONG&gt;DB2&lt;/STRONG&gt; in the target endpoint.&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;Go to your&amp;nbsp;&lt;STRONG&gt;Target Endpoint&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Switch to the &lt;STRONG&gt;Advanced&amp;nbsp;&lt;/STRONG&gt;tab&lt;/LI&gt;
&lt;LI&gt;Set the correct&amp;nbsp;&lt;STRONG&gt;Provider Syntax&amp;nbsp;&lt;/STRONG&gt;
&lt;BLOCKQUOTE class="quote"&gt;Engage Qlik's Professional Services for more direct assistance for custom ODBC endpoint setups due to provider-specific SQL syntax rules.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;SQL0604 / NativeError -604 means Db2 for IBM i rejected an invalid data-type attribute, typically a column or expression with an unsupported length, precision, scale, timestamp precision, or ALLOCATE value. This is normally an SQL-definition problem, not a network or ODBC connection problem. (on QR V2023.5.0.322)&lt;/P&gt;
&lt;P&gt;The task fails because Qlik Replicate generates this invalid Db2 for i definition:&lt;/P&gt;
&lt;PRE&gt;"STATEMENT" CLOB(0) NOT NULL,&lt;BR /&gt;"ERROR" &amp;nbsp; &amp;nbsp; CLOB(0) NOT NULL&lt;/PRE&gt;
&lt;P&gt;On Db2 for IBM i, a CLOB length must be between 1 byte and 2 GB. Therefore, CLOB(0) produces SQL0604 / -604 – Attributes not valid. &amp;nbsp;Other column definitions are valid.&lt;/P&gt;
&lt;P&gt;That indicates the target endpoint is missing or uses the wrong configuration for the &lt;STRONG&gt;Endpoint&lt;/STRONG&gt; --&amp;gt; &lt;STRONG&gt;Advanced&lt;/STRONG&gt; tab --&amp;gt; &lt;STRONG&gt;Provider syntax setting&lt;/STRONG&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 17 Aug 2026 05:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-task-data-synchronization-failed-from-SQLMI-to/ta-p/2554821</guid>
      <dc:creator>wei_guo</dc:creator>
      <dc:date>2026-08-17T05:32:37Z</dc:date>
    </item>
  </channel>
</rss>

