<?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: Replace new line character in dynamic schema in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342486#M110349</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please enable CSV options in the FileOutputDelimited component?&lt;/P&gt;&lt;P&gt;That would automatically add the quotes etc so the line break wouldn't cause the file to be unreadable.&lt;/P&gt;&lt;P&gt;I.e.:&lt;/P&gt;&lt;P&gt;You have now:&lt;/P&gt;&lt;P&gt;1,Hello&lt;/P&gt;&lt;P&gt;World,2&lt;/P&gt;&lt;P&gt;You want to have:&lt;/P&gt;&lt;P&gt;1,"Hello&lt;/P&gt;&lt;P&gt;World",2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 08:15:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-02T08:15:01Z</dc:date>
    <item>
      <title>Replace new line character in dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342483#M110346</link>
      <description>&lt;P&gt;I am loading data from PostgreSQL database to CSV file using dynamic schema.&lt;/P&gt;&lt;P&gt;As i am querying all tables in the database using loop, schema is not same for all tables.&lt;/P&gt;&lt;P&gt;When i load the data, in few tables there are columns which have value in more than two line with one line space in between due to which it is treating it as new line and bringing the data to next row.&lt;/P&gt;&lt;P&gt;i want to load that data in the way it is in the datbase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Note]: I am using dynamic schema so the column name is not known&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;Data in PostgreSQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fLLiLAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141273iD7E2DA37D87C5E73/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fLLiLAAW.png" alt="0695b00000fLLiLAAW.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data coming in CSV&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fLLnyAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127813iF0D8F4EF059F5610/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fLLnyAAG.png" alt="0695b00000fLLnyAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me solve this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342483#M110346</guid>
      <dc:creator>SumitYadav</dc:creator>
      <dc:date>2024-11-15T21:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replace new line character in dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342484#M110347</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please refer to this KB &lt;A href="https://community.talend.com/s/article/Updating-column-properties-when-using-Dynamic-schema" alt="https://community.talend.com/s/article/Updating-column-properties-when-using-Dynamic-schema" target="_blank"&gt;article &lt;/A&gt;that shows how to access the column properties when using dynamic schema, get the  column value at runtime and replace the new line character. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 03:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342484#M110347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-28T03:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replace new line character in dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342485#M110348</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below code but got an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dynamic columns = row3.dynamic_column;&lt;/P&gt;&lt;P&gt;String columnName="";&lt;/P&gt;&lt;P&gt;DynamicMetadata column;&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++) {&amp;nbsp;&lt;/P&gt;&lt;P&gt;column=row3.dynamic_column.getColumnMetadata(i);&lt;/P&gt;&lt;P&gt;columnName=column.getName();&lt;/P&gt;&lt;P&gt;String columnValue=(String)row3.dynamic_column.getColumnValue(columnName);&lt;/P&gt;&lt;P&gt;if (columnValue != null){&lt;/P&gt;&lt;P&gt;row3.dynamic_column.setColumnValue(i, columnValue.replace("\\n"," "));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;row4.dynamic_column = row3.dynamic_column;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Error: &lt;/B&gt;java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 08:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342485#M110348</guid>
      <dc:creator>SumitYadav</dc:creator>
      <dc:date>2023-04-28T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replace new line character in dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342486#M110349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please enable CSV options in the FileOutputDelimited component?&lt;/P&gt;&lt;P&gt;That would automatically add the quotes etc so the line break wouldn't cause the file to be unreadable.&lt;/P&gt;&lt;P&gt;I.e.:&lt;/P&gt;&lt;P&gt;You have now:&lt;/P&gt;&lt;P&gt;1,Hello&lt;/P&gt;&lt;P&gt;World,2&lt;/P&gt;&lt;P&gt;You want to have:&lt;/P&gt;&lt;P&gt;1,"Hello&lt;/P&gt;&lt;P&gt;World",2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 08:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342486#M110349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-02T08:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace new line character in dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342487#M110350</link>
      <description>&lt;P&gt;Hello @Balazs Gunics​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried that solution but since i have to load the data in Athena, new line character is causing the data to flow in next row, so need to remove it before uploading to Athena&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342487#M110350</guid>
      <dc:creator>SumitYadav</dc:creator>
      <dc:date>2023-05-03T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace new line character in dynamic schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342488#M110351</link>
      <description>&lt;P&gt;In that case feel free to take a look around here we've shared a few snippets you might find useful: https://jira.talendforge.org/browse/TDI-48091 &lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-new-line-character-in-dynamic-schema/m-p/2342488#M110351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T14:01:42Z</dc:date>
    </item>
  </channel>
</rss>

