<?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: Qlik Replicate Postgres White Space in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Postgres-White-Space/m-p/1813212#M928</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/122763"&gt;@zwatkinscovermymeds&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for you opening the article. I noticed you opened a duplicate FR article in April:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Suggest-an-Idea/Qlik-Replicate-Postgres-White-Space/idi-p/1803181" target="_blank"&gt;https://community.qlik.com/t5/Suggest-an-Idea/Qlik-Replicate-Postgres-White-Space/idi-p/1803181&lt;/A&gt;&lt;/P&gt;&lt;P&gt;however it's hard to understand a 200 length column can store 500 characters. At least in PostgreSQL DB itself, the extra chars are truncated by the DB and it stores exact 200 chars only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if we try to store additional 220 white spaces suffix 'xxx' in the VARCHAR(200) column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;create table kit (id integer, name varchar(20), address varchar(200), primary key(id));
insert into kit values (2,'abc','abc');
insert into kit values (4,'abc   ','xxx                                                                                                                                                                                                                         ');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Then the query result show the extra white spaces are truncated&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select id,name||'#',length(name),length(address) from kit;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1622971669795.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56385i0411802886F44669/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1622971669795.png" alt="john_wang_0-1622971669795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a start I'd like to suggest you open a support ticket with below information:&lt;/P&gt;&lt;P&gt;1. The source DB creation SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; We need to check if any special settings in the DB include the encoding and collation settings etc&lt;/P&gt;&lt;P&gt;2. The source table creation SQL, and the sample SQL how to generate such a row (&lt;SPAN&gt;that include white space and have 500 characters in total)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Let us know the problem occurs in Full Load stage, or CDC stage, or both&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. The Diagnostics Package with proper logging level&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If the problem occurs in Full Load then enable SOURCE_UNLOAD/TARGET_LOAD&amp;nbsp; &amp;nbsp; to Verbose&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If the problem occurs in CDC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then enable SOURCE_CAPTURE/TARGET_APPLY to Verbose&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; or both of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. The target SQL Server DB collation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If the target table is created manually, then please attach the creation SQL too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jun 2021 09:40:42 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2021-06-06T09:40:42Z</dc:date>
    <item>
      <title>Qlik Replicate Postgres White Space</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Postgres-White-Space/m-p/1813023#M927</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have noticed in Postgres there will be a column that is varchar with a character limit and Replicate will replicate that data to my sql server environment with the same character limit, but then I will get an error saying that the data has been truncated.&amp;nbsp; After doing some investigating in Postgres I was able to find that the data was able to exceed the character limit. As an example the character limit on the Postgres source is 200, but I have found columns (that include white space) that have 500 characters. Is there a work around for this so that the column on the target is able to expand dynamically or is this something that can be addressed in feature request? Has anyone else run into this issue?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Postgres-White-Space/m-p/1813023#M927</guid>
      <dc:creator>zwatkinscovermymeds</dc:creator>
      <dc:date>2024-11-15T22:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Postgres White Space</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Postgres-White-Space/m-p/1813212#M928</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/122763"&gt;@zwatkinscovermymeds&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for you opening the article. I noticed you opened a duplicate FR article in April:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Suggest-an-Idea/Qlik-Replicate-Postgres-White-Space/idi-p/1803181" target="_blank"&gt;https://community.qlik.com/t5/Suggest-an-Idea/Qlik-Replicate-Postgres-White-Space/idi-p/1803181&lt;/A&gt;&lt;/P&gt;&lt;P&gt;however it's hard to understand a 200 length column can store 500 characters. At least in PostgreSQL DB itself, the extra chars are truncated by the DB and it stores exact 200 chars only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if we try to store additional 220 white spaces suffix 'xxx' in the VARCHAR(200) column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;create table kit (id integer, name varchar(20), address varchar(200), primary key(id));
insert into kit values (2,'abc','abc');
insert into kit values (4,'abc   ','xxx                                                                                                                                                                                                                         ');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Then the query result show the extra white spaces are truncated&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select id,name||'#',length(name),length(address) from kit;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1622971669795.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56385i0411802886F44669/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_0-1622971669795.png" alt="john_wang_0-1622971669795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a start I'd like to suggest you open a support ticket with below information:&lt;/P&gt;&lt;P&gt;1. The source DB creation SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; We need to check if any special settings in the DB include the encoding and collation settings etc&lt;/P&gt;&lt;P&gt;2. The source table creation SQL, and the sample SQL how to generate such a row (&lt;SPAN&gt;that include white space and have 500 characters in total)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Let us know the problem occurs in Full Load stage, or CDC stage, or both&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. The Diagnostics Package with proper logging level&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If the problem occurs in Full Load then enable SOURCE_UNLOAD/TARGET_LOAD&amp;nbsp; &amp;nbsp; to Verbose&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If the problem occurs in CDC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then enable SOURCE_CAPTURE/TARGET_APPLY to Verbose&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; or both of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. The target SQL Server DB collation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If the target table is created manually, then please attach the creation SQL too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 09:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Postgres-White-Space/m-p/1813212#M928</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2021-06-06T09:40:42Z</dc:date>
    </item>
  </channel>
</rss>

