<?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 Adding multiple new columns with SQLite transformation fails in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427427#M10010</link>
    <description>&lt;P&gt;I am trying to add two new string columns (Column A and Column B) to a table using the Transform tab.&amp;nbsp; Both column transformations use SQLite function to parse the data.&amp;nbsp; The task fails with a generic SQLite error:&amp;nbsp; "SQLite general error. Code &amp;lt;25&amp;gt;, Message &amp;lt;column index out of range&amp;gt;."&lt;/P&gt;
&lt;P&gt;However, if I only add one new column the task runs correctly.&amp;nbsp; It is only when I try to add more than one new column, and both are using SQLite functions, that I get this error message.&amp;nbsp; I don't believe it is a data issue because I individually tested adding only Column A successfully and then only Column B successfully. I also tried adding Column A with the SQLite transform and Column B as just a literal string value (no SQLite) and this worked. I even tried using different SQLite functions for each column and it still fails when adding both. Always the same general error.&lt;/P&gt;
&lt;P&gt;Is there any insight to what might be happening here?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;SQL Server source. Snowflake target.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 23:20:05 GMT</pubDate>
    <dc:creator>JGRFCU</dc:creator>
    <dc:date>2024-03-05T23:20:05Z</dc:date>
    <item>
      <title>Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427427#M10010</link>
      <description>&lt;P&gt;I am trying to add two new string columns (Column A and Column B) to a table using the Transform tab.&amp;nbsp; Both column transformations use SQLite function to parse the data.&amp;nbsp; The task fails with a generic SQLite error:&amp;nbsp; "SQLite general error. Code &amp;lt;25&amp;gt;, Message &amp;lt;column index out of range&amp;gt;."&lt;/P&gt;
&lt;P&gt;However, if I only add one new column the task runs correctly.&amp;nbsp; It is only when I try to add more than one new column, and both are using SQLite functions, that I get this error message.&amp;nbsp; I don't believe it is a data issue because I individually tested adding only Column A successfully and then only Column B successfully. I also tried adding Column A with the SQLite transform and Column B as just a literal string value (no SQLite) and this worked. I even tried using different SQLite functions for each column and it still fails when adding both. Always the same general error.&lt;/P&gt;
&lt;P&gt;Is there any insight to what might be happening here?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;SQL Server source. Snowflake target.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427427#M10010</guid>
      <dc:creator>JGRFCU</dc:creator>
      <dc:date>2024-03-05T23:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427430#M10011</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237903"&gt;@JGRFCU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the SQLite functions you used. I would like to try and reproduce this.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427430#M10011</guid>
      <dc:creator>Michael_Litz</dc:creator>
      <dc:date>2024-03-05T23:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427434#M10012</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;
&lt;P&gt;The original functions are this:&amp;nbsp;&amp;nbsp;strftime('%Y-%m', $ColumnA); and&amp;nbsp;strftime('%Y-%m', $ColumnB);&lt;/P&gt;
&lt;P&gt;I am parsing the year and month (YYYY-mm) from two date columns into new string columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427434#M10012</guid>
      <dc:creator>JGRFCU</dc:creator>
      <dc:date>2024-03-05T23:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427437#M10013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237903"&gt;@JGRFCU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tested in my task and this worked.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michael_Litz_0-1709683871896.png" style="width: 715px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/161374iF917C50E777AD68A/image-dimensions/715x108?v=v2" width="715" height="108" role="button" title="Michael_Litz_0-1709683871896.png" alt="Michael_Litz_0-1709683871896.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there anything else that may be different?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 00:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427437#M10013</guid>
      <dc:creator>Michael_Litz</dc:creator>
      <dc:date>2024-03-06T00:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427456#M10014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237903"&gt;@JGRFCU&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I've tested on SQL server also, and it works successfully for both Full Load and CDC.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DesmondWOO_2-1709690265225.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/161378i8079903544B0CBC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DesmondWOO_2-1709690265225.png" alt="DesmondWOO_2-1709690265225.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DesmondWOO_1-1709690203051.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/161377iF21F664227CB7487/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DesmondWOO_1-1709690203051.png" alt="DesmondWOO_1-1709690203051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you give us following information?&lt;BR /&gt;1. Source database and Target database&lt;BR /&gt;2. DDL of the source table (please rename table and column names if data security is a concern)&lt;BR /&gt;3. Sample data&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 02:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427456#M10014</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-03-06T02:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427475#M10018</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121284"&gt;@Michael_Litz&lt;/a&gt;&amp;nbsp; You guys cannot read!&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;The original functions are this:&amp;nbsp;&amp;nbsp;strftime('%Y-%m', $ColumnA)&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;;&lt;/FONT&gt;&lt;/STRONG&gt; and&amp;nbsp;strftime('%Y-%m', $ColumnB)&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;See that semicolon? I bet you didn't test with that, did you now?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237903"&gt;@JGRFCU&lt;/a&gt;&amp;nbsp; This is surely a very silly - slap against the forehead - error. What made you decide to put that semicolon on the end? It is not supposed to be there and unfortunately is not flagged during test or with a single transformation, but with two it blows up.&lt;/P&gt;
&lt;P&gt;Actually in my test (oracle source) the task crashed and did NOT report the error indicated but nevertheless I'm very sure that the semicolons at the end of the transformations cause the issue.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 04:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427475#M10018</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-03-06T04:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427835#M10040</link>
      <description>&lt;P&gt;Wow thank you, very much a facepalm moment lol. It certainly was the semicolons that were the issue.&amp;nbsp; When I was looking up SQLite syntax, as I am very much a novice, all the examples ended with a semicolon and I didn't see anything in the Replicate documentation about not using them.&amp;nbsp; Didn't think they would be problematic, obviously I was wrong.&amp;nbsp; I've removed them and everything is running smoothly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121284"&gt;@Michael_Litz&lt;/a&gt;&amp;nbsp;for your time and effort.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 14:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2427835#M10040</guid>
      <dc:creator>JGRFCU</dc:creator>
      <dc:date>2024-03-06T14:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2429094#M10088</link>
      <description>&lt;P&gt;Fwiw, I do think this is worth a support ticket, internally or by a customer. It is both a runtime bug and design time weakness. It was readily spotted this time but could be more tricky under other circumstances such as in my test case silently crashing the task process&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2024 18:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2429094#M10088</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-03-10T18:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple new columns with SQLite transformation fails</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2429124#M10092</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237903"&gt;@JGRFCU&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I can reproduce the same problem on the SQL server that you mentioned in the case. As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;mentioned before, please create a support ticket. We will follow up with the R&amp;amp;D team.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 03:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Adding-multiple-new-columns-with-SQLite-transformation-fails/m-p/2429124#M10092</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-03-11T03:29:04Z</dc:date>
    </item>
  </channel>
</rss>

