<?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: DB2 - How to use transform expression with special character in column name in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895518#M1885</link>
    <description>&lt;P&gt;Good question. I suspect this is a restriction, or possibly a bug, in the Qlik Replicate transformation expressions.&lt;/P&gt;
&lt;P&gt;Replicate uses SQLite to perform the expression. SQLite can handle funky identifier names double-quotes, and optional square bracket [] or even back-ticks&amp;nbsp; (&amp;nbsp;&lt;A href="https://www.sqlite.org/lang_keywords.html" target="_blank"&gt;https://www.sqlite.org/lang_keywords.html&lt;/A&gt;&amp;nbsp;) but none of those are accepted in the Replicate expression builder all leading to&amp;nbsp;&lt;FONT color="#FF00FF"&gt;&lt;SPAN&gt;Message &amp;lt;unrecognized token: "$"&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I also tried round brackets () and curly brackets (braces) {}. No joy. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I recommend a support ticket for fix or enhancement.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Now these funky characters, and even just spaces, always create trouble all the time and are really best avoided.&amp;nbsp; Often the source database tables are cast (sic) in concrete and cannot be changed without breaking the main (source) application.&amp;nbsp; Maybe you can fix this on the target though replacing # by '_NR' or similar.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Can you use a VIEW, with better names, instead of the base table?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Can you use a synonym or alias on the source somehow (I don't know DB2).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;hth,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Hein&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 14:11:10 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2022-02-21T14:11:10Z</dc:date>
    <item>
      <title>DB2 - How to use transform expression with special character in column name</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895495#M1884</link>
      <description>&lt;P&gt;I'm attempting to move data from a DB2 table on an IBM i to MSSQL through a log stream.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MSSQL side requires a derived column combining two columns.&amp;nbsp; The problem is the expression builder won't allow me to use the name of the columns coming from the log stream due to a special character in the name.&lt;/P&gt;
&lt;P&gt;I have columns: meemem# and meedep#.&amp;nbsp; I need combine these 2 columns into a single column with the expression -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(($meemem# * 100) + $meedep#).&amp;nbsp; The expression builder balks at this with the error, 'SQLite general error.&amp;nbsp; Code &amp;lt;1&amp;gt;, Message &amp;lt;unrecognized token: "#"&amp;gt;.'&lt;/P&gt;
&lt;P&gt;I'm able to change the column names in the output, so I would have to believe there's a way of making this work.&amp;nbsp; Any suggestions?&lt;/P&gt;
&lt;P&gt;I've already tried:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;(([$meemem#] * 100) + [$meedep#]) - SQLite error - No such column: $meemem#&lt;/LI&gt;
&lt;LI&gt;(("$meemem# "* 100) + "$meedep#") - returns 0 for all and doesn't show in parse expression&lt;/LI&gt;
&lt;LI&gt;(('"$meemem#" * 100) + '"$meedep#"') - returns 0 for all and doesn't show in parse expression&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;(($meememNum * 100) + $meedepNum) - renamed column in transform.&amp;nbsp; Expression builder works, but fails when the task is run.&amp;nbsp; -&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Failed to init column calculation expression '(($MEMEMNUM * 100) + $MEDEPNUM)' (replicationtask.c:3063)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 21 Feb 2022 14:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895495#M1884</guid>
      <dc:creator>amontalbano</dc:creator>
      <dc:date>2022-02-21T14:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 - How to use transform expression with special character in column name</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895518#M1885</link>
      <description>&lt;P&gt;Good question. I suspect this is a restriction, or possibly a bug, in the Qlik Replicate transformation expressions.&lt;/P&gt;
&lt;P&gt;Replicate uses SQLite to perform the expression. SQLite can handle funky identifier names double-quotes, and optional square bracket [] or even back-ticks&amp;nbsp; (&amp;nbsp;&lt;A href="https://www.sqlite.org/lang_keywords.html" target="_blank"&gt;https://www.sqlite.org/lang_keywords.html&lt;/A&gt;&amp;nbsp;) but none of those are accepted in the Replicate expression builder all leading to&amp;nbsp;&lt;FONT color="#FF00FF"&gt;&lt;SPAN&gt;Message &amp;lt;unrecognized token: "$"&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I also tried round brackets () and curly brackets (braces) {}. No joy. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I recommend a support ticket for fix or enhancement.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Now these funky characters, and even just spaces, always create trouble all the time and are really best avoided.&amp;nbsp; Often the source database tables are cast (sic) in concrete and cannot be changed without breaking the main (source) application.&amp;nbsp; Maybe you can fix this on the target though replacing # by '_NR' or similar.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Can you use a VIEW, with better names, instead of the base table?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Can you use a synonym or alias on the source somehow (I don't know DB2).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;hth,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Hein&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 14:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895518#M1885</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-02-21T14:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 - How to use transform expression with special character in column name</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895524#M1887</link>
      <description>&lt;P&gt;Thank you for the insight.&amp;nbsp; I do not have the ability to change the source naming.&amp;nbsp; &amp;nbsp;Because I'm asked to use Log Streams, I'm not able to change the column name in the process of receiving the DB2 data.&amp;nbsp; So it leaves me kind of stuck.&amp;nbsp; I could probably do something to run over the MSSQL and populate the column after the data is replicated.&lt;/P&gt;
&lt;P&gt;I'll look into whether or not I can get the DB2 side to create a view or alias.&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 14:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895524#M1887</guid>
      <dc:creator>amontalbano</dc:creator>
      <dc:date>2022-02-21T14:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 - How to use transform expression with special character in column name</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895677#M1890</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152989"&gt;@amontalbano&lt;/a&gt;&amp;nbsp;, copy&amp;nbsp;&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;This is an known limitation&amp;nbsp;&lt;A title="Transformations cannot be performed on columns that contain special characters" href="https://help.qlik.com/en-US/replicate/November2021/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_transformations.htm" target="_blank" rel="noopener"&gt;Transformations cannot be performed on columns that contain special characters&lt;/A&gt;&amp;nbsp; and there is&amp;nbsp;&lt;A title="Feature Request in an Idea" href="https://community.qlik.com/t5/Suggest-an-Idea/Column-Special-Character-Support-in-Transformation-Expression/idc-p/1770256#M4631" target="_blank" rel="noopener"&gt;Feature Request in an Idea&lt;/A&gt;&amp;nbsp;however looks to me it's not in the roadmap yet.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Transformations cannot be performed on columns that contain special characters (e.g. #, \, /, -) in their name.&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 01:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/DB2-How-to-use-transform-expression-with-special-character-in/m-p/1895677#M1890</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-02-22T01:12:52Z</dc:date>
    </item>
  </channel>
</rss>

