<?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: Support JSONB datatype for PostgreSQL ODBC data source in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Support-JSONB-datatype-for-PostgreSQL-ODBC-data/ta-p/2019521</link>
    <description>&lt;P&gt;While working with PostgreSQL ODBC DSN as source endpoint, The ODBC Driver is interpreting JSONB datatype as VARCHAR(255) by default, it leads the JSONB column values truncated no matter how the LOB size or data type length in target table were defined.&lt;BR /&gt;In general the task report warning as:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2022-12-22T21:28:49:491989 [SOURCE_UNLOAD ]W: Truncation of a column occurred while fetching a value from array (for more details please use verbose logs)&lt;/FONT&gt;&lt;/P&gt;
&lt;H3 id="toc-hId--525314414"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;There are several options to solve the problem (&lt;EM&gt;any single one is good enough&lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I)&lt;/STRONG&gt; Change PostgreSQL ODBC source endpoint connection string&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open &lt;STRONG&gt;PostgreSQL ODBC source endpoint&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to the &lt;STRONG&gt;Advanced&lt;/STRONG&gt; tab&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Open &lt;STRONG&gt;Internal Parameters&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; Add a new parameter named &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;additionalConnectionProperties&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Press &lt;STRONG&gt;&amp;lt;Enter&amp;gt;&lt;/STRONG&gt;&amp;nbsp;and set the parameter's value to:&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;MaxVarCharSize=0&lt;/FONT&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1671766541290.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96808iF2A7F6005DB39F7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1671766541290.png" alt="john_wang_0-1671766541290.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;II)&lt;/STRONG&gt; Or on Windows/Linux Replicate Server, add one line to "&lt;STRONG&gt;odbc.ini&lt;/STRONG&gt;" in the DSN definition:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; MaxVarCharSize=0&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;III)&lt;/STRONG&gt; Or on Windows, set "&lt;STRONG&gt;Max Varchar&lt;/STRONG&gt;" &lt;STRONG&gt;to 0&lt;/STRONG&gt; from default value 255 in ODBC Manager GUI (64-bit):&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="john_wang_1-1671766616443.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96809i1516DAE68B4C98AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_1-1671766616443.png" alt="john_wang_1-1671766616443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-1962198419"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp; all versions&lt;BR /&gt;PostgreSQL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;all versions&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Internal Investigation ID(s):&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Support cases, #&lt;SPAN&gt;00062911&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Ideation article,&amp;nbsp;&lt;A title="Support JSONB" href="https://community.qlik.com/t5/Suggest-an-Idea/Support-jsonb-datatype-for-postgres-ODBC-data-source/idi-p/2019115" target="_blank" rel="noopener"&gt;Support JSONB&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A id="hoverCardLink" class="lia-link-navigation lia-product-hover-card-link lia-product-mention lia-tooltip-trigger" href="https://community.qlik.com/t5/c-cyjdu72974/Qlik+Replicate/pd-p/qlikReplicate" target="_blank" rel="noopener"&gt;Qlik Replicate&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 03:42:15 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2022-12-23T03:42:15Z</dc:date>
    <item>
      <title>Qlik Replicate: Support JSONB datatype for PostgreSQL ODBC data source</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Support-JSONB-datatype-for-PostgreSQL-ODBC-data/ta-p/2019521</link>
      <description>&lt;P&gt;While working with PostgreSQL ODBC DSN as source endpoint, The ODBC Driver is interpreting JSONB datatype as VARCHAR(255) by default, it leads the JSONB column values truncated no matter how the LOB size or data type length in target table were defined.&lt;BR /&gt;In general the task report warning as:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2022-12-22T21:28:49:491989 [SOURCE_UNLOAD ]W: Truncation of a column occurred while fetching a value from array (for more details please use verbose logs)&lt;/FONT&gt;&lt;/P&gt;
&lt;H3 id="toc-hId--525314414"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;There are several options to solve the problem (&lt;EM&gt;any single one is good enough&lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I)&lt;/STRONG&gt; Change PostgreSQL ODBC source endpoint connection string&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open &lt;STRONG&gt;PostgreSQL ODBC source endpoint&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Go to the &lt;STRONG&gt;Advanced&lt;/STRONG&gt; tab&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Open &lt;STRONG&gt;Internal Parameters&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; Add a new parameter named &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;additionalConnectionProperties&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Press &lt;STRONG&gt;&amp;lt;Enter&amp;gt;&lt;/STRONG&gt;&amp;nbsp;and set the parameter's value to:&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;MaxVarCharSize=0&lt;/FONT&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1671766541290.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96808iF2A7F6005DB39F7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1671766541290.png" alt="john_wang_0-1671766541290.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;II)&lt;/STRONG&gt; Or on Windows/Linux Replicate Server, add one line to "&lt;STRONG&gt;odbc.ini&lt;/STRONG&gt;" in the DSN definition:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; MaxVarCharSize=0&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;III)&lt;/STRONG&gt; Or on Windows, set "&lt;STRONG&gt;Max Varchar&lt;/STRONG&gt;" &lt;STRONG&gt;to 0&lt;/STRONG&gt; from default value 255 in ODBC Manager GUI (64-bit):&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="john_wang_1-1671766616443.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96809i1516DAE68B4C98AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_1-1671766616443.png" alt="john_wang_1-1671766616443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-1962198419"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp; all versions&lt;BR /&gt;PostgreSQL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;all versions&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Internal Investigation ID(s):&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Support cases, #&lt;SPAN&gt;00062911&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Ideation article,&amp;nbsp;&lt;A title="Support JSONB" href="https://community.qlik.com/t5/Suggest-an-Idea/Support-jsonb-datatype-for-postgres-ODBC-data-source/idi-p/2019115" target="_blank" rel="noopener"&gt;Support JSONB&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A id="hoverCardLink" class="lia-link-navigation lia-product-hover-card-link lia-product-mention lia-tooltip-trigger" href="https://community.qlik.com/t5/c-cyjdu72974/Qlik+Replicate/pd-p/qlikReplicate" target="_blank" rel="noopener"&gt;Qlik Replicate&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 03:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Support-JSONB-datatype-for-PostgreSQL-ODBC-data/ta-p/2019521</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2022-12-23T03:42:15Z</dc:date>
    </item>
  </channel>
</rss>

