<?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 Unable to translate data type from Oracle SQL views and unable to create SnowFlake table (Length or precision specification 0 is invalid) in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Unable-to-translate-data-type-from-Oracle-SQL-views-and-unable/ta-p/1948090</link>
    <description>&lt;P&gt;Replicating data from Oracle SQL views (with few fields defaulted to NULL explicitly) into snowflake fails to create table in Snowflake.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The work around below converts all the string (0) to string (10 or the number you specified). It is important to specify the scope under advanced options to convert only string (0) to string (10).&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;From Global Rules window, click on “New Rule” and select Transformation.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_0-1656100465926.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82637i794D6194764956B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_0-1656100465926.png" alt="Dineshan_0-1656100465926.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_1-1656100466029.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82638i76DE7E369F31B21C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_1-1656100466029.png" alt="Dineshan_1-1656100466029.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Select “Convert data type” and click Next&lt;/LI&gt;
&lt;LI&gt;Select “STRING” in the data type dropdown. Under advanced options, enter expression “$AR_M_SOURCE_DATATYPE_LENGTH==0” without quotes and click next:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_2-1656100466064.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82639iA6ED2A57AB5FA9A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_2-1656100466064.png" alt="Dineshan_2-1656100466064.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Change the length to 10 or desired number and click Finish.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_3-1656100466125.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82640iFAC823E18EBD3724/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_3-1656100466125.png" alt="Dineshan_3-1656100466125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;NULL columns are not supported and Oracle SQL views with fields defaulted to NULL explicitly, creates fields with data type string (0).&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 20:09:44 GMT</pubDate>
    <dc:creator>Dineshan</dc:creator>
    <dc:date>2022-06-24T20:09:44Z</dc:date>
    <item>
      <title>Unable to translate data type from Oracle SQL views and unable to create SnowFlake table (Length or precision specification 0 is invalid)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Unable-to-translate-data-type-from-Oracle-SQL-views-and-unable/ta-p/1948090</link>
      <description>&lt;P&gt;Replicating data from Oracle SQL views (with few fields defaulted to NULL explicitly) into snowflake fails to create table in Snowflake.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Replicate&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The work around below converts all the string (0) to string (10 or the number you specified). It is important to specify the scope under advanced options to convert only string (0) to string (10).&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;From Global Rules window, click on “New Rule” and select Transformation.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_0-1656100465926.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82637i794D6194764956B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_0-1656100465926.png" alt="Dineshan_0-1656100465926.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_1-1656100466029.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82638i76DE7E369F31B21C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_1-1656100466029.png" alt="Dineshan_1-1656100466029.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Select “Convert data type” and click Next&lt;/LI&gt;
&lt;LI&gt;Select “STRING” in the data type dropdown. Under advanced options, enter expression “$AR_M_SOURCE_DATATYPE_LENGTH==0” without quotes and click next:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_2-1656100466064.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82639iA6ED2A57AB5FA9A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_2-1656100466064.png" alt="Dineshan_2-1656100466064.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Change the length to 10 or desired number and click Finish.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dineshan_3-1656100466125.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82640iFAC823E18EBD3724/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dineshan_3-1656100466125.png" alt="Dineshan_3-1656100466125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;NULL columns are not supported and Oracle SQL views with fields defaulted to NULL explicitly, creates fields with data type string (0).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 20:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Unable-to-translate-data-type-from-Oracle-SQL-views-and-unable/ta-p/1948090</guid>
      <dc:creator>Dineshan</dc:creator>
      <dc:date>2022-06-24T20:09:44Z</dc:date>
    </item>
  </channel>
</rss>

