<?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 Data is populated with Whitespace through Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211281#M9371</link>
    <description>&lt;P&gt;&amp;nbsp;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are seeing issue in table value which are populated from DB2 (source)&amp;nbsp; to Postgres (Target).&lt;/P&gt; 
&lt;P&gt;I have including here all the job details for each component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Job Sesign" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8kT.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136897i85A42AB8A441EB07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8kT.jpg" alt="0683p000009M8kT.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Job Sesign&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Source DB2 Schema" style="width: 594px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8kY.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151535i2254442796900A7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8kY.jpg" alt="0683p000009M8kY.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Source DB2 Schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Target Postgres schema" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8kd.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151859iD6400482E1C7FBDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8kd.jpg" alt="0683p000009M8kd.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Target Postgres schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ki.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137294i9549F803F98F3DD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ki.jpg" alt="0683p000009M8ki.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tmap&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Based on the above approach and once the data has been populated, when we run the below query in the Postgres DB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where cust_gssn_cd='XY03666699' ;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where cust_cntry_cd='847' ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There will be no records were returned however, when we run the same query with Trim as below it works.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where trim(cust_gssn_cd)='XY03666699' ;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where trim(cust_cntry_cd)='847' ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below are the ways we have tried to overcome this but no luck.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Used tmap between source and target component.&lt;/P&gt; 
&lt;P&gt;2. Used trim in source component under Advanced setting.&lt;/P&gt; 
&lt;P&gt;3. Change the datatype in Postgres DB of&amp;nbsp;cust_cntry_cd from char(5) to Character varying, this will allow value without any length restriction.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest what is missing as we have this issue in almost all the table where we have character/varchar columns.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are using TOS.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Rohit.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:51:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T03:51:28Z</dc:date>
    <item>
      <title>Data is populated with Whitespace through Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211281#M9371</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are seeing issue in table value which are populated from DB2 (source)&amp;nbsp; to Postgres (Target).&lt;/P&gt; 
&lt;P&gt;I have including here all the job details for each component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Job Sesign" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8kT.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136897i85A42AB8A441EB07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8kT.jpg" alt="0683p000009M8kT.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Job Sesign&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Source DB2 Schema" style="width: 594px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8kY.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151535i2254442796900A7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8kY.jpg" alt="0683p000009M8kY.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Source DB2 Schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Target Postgres schema" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8kd.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151859iD6400482E1C7FBDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8kd.jpg" alt="0683p000009M8kd.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Target Postgres schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ki.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137294i9549F803F98F3DD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ki.jpg" alt="0683p000009M8ki.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tmap&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Based on the above approach and once the data has been populated, when we run the below query in the Postgres DB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where cust_gssn_cd='XY03666699' ;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where cust_cntry_cd='847' ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There will be no records were returned however, when we run the same query with Trim as below it works.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where trim(cust_gssn_cd)='XY03666699' ;&lt;/P&gt; 
&lt;P&gt;SELECT * FROM VMRCTTA1.VMRRCUST_SUMM where trim(cust_cntry_cd)='847' ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below are the ways we have tried to overcome this but no luck.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Used tmap between source and target component.&lt;/P&gt; 
&lt;P&gt;2. Used trim in source component under Advanced setting.&lt;/P&gt; 
&lt;P&gt;3. Change the datatype in Postgres DB of&amp;nbsp;cust_cntry_cd from char(5) to Character varying, this will allow value without any length restriction.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest what is missing as we have this issue in almost all the table where we have character/varchar columns.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We are using TOS.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Rohit.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211281#M9371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data is populated with Whitespace through Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211282#M9372</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQJNAA4"&gt;@rohitatcs&lt;/A&gt;&amp;nbsp;, As per my understanding you need to change the data type in psotgrssql side. check the below link to do that .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/13160388/my-postgresql-auto-inserts-many-space-characters-after-the-value-of-a-field" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/13160388/my-postgresql-auto-inserts-many-space-characters-after-the-value-of-a-field&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.postgresqltutorial.com/postgresql-char-varchar-text/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.postgresqltutorial.com/postgresql-char-varchar-text/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 05:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211282#M9372</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-12-12T05:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data is populated with Whitespace through Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211283#M9373</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;Thanks for your response.&lt;/P&gt; 
&lt;P&gt;I have found that I can able to resolve my issue for column where source have Char(5) and target I setup Text with trim selected in Source side but I see still we have issue with Varchar(30) column in source where we have tried both with setting target column as Varchar(30) or Text but no luck.&lt;/P&gt; 
&lt;P&gt;Please suggest. I am attaching here my schema configuration in Talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Highlighted column one have text another with varchar(30) , both have whitespace issue" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8KV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145755iC451B5B7FFC0A5D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8KV.jpg" alt="0683p000009M8KV.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Highlighted column one have text another with varchar(30) , both have whitespace issue&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Job-Design" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M881.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150863i04B15745103DA8F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M881.jpg" alt="0683p000009M881.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Job-Design&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 03:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211283#M9373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-13T03:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data is populated with Whitespace through Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211284#M9374</link>
      <description>&lt;P&gt;Can someone please update on this or it's bug on TOS.&lt;/P&gt; 
&lt;P&gt;Please community member help us to resolve this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 05:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-is-populated-with-Whitespace-through-Talend/m-p/2211284#M9374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-16T05:39:02Z</dc:date>
    </item>
  </channel>
</rss>

