<?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: tFileOutputDelimited converts null values to empty strings. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2319531#M89766</link>
    <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This fix won't work always. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name" : "john",&lt;/P&gt;&lt;P&gt;"age":22,&lt;/P&gt;&lt;P&gt;"city":"London",&lt;/P&gt;&lt;P&gt;"country": "UK"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name" : "leon",&lt;/P&gt;&lt;P&gt;"age": null ,&lt;/P&gt;&lt;P&gt;"city":"Brighton",&lt;/P&gt;&lt;P&gt;&lt;B&gt;"country":""&lt;/B&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data from upstream is sending the empty string for some of the string columns . This fix will convert the empty string to null. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talend should include a option in the tFileOutput delimiter on treating the null values. "Don't enclose null values within field enclosures". &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 09:24:04 GMT</pubDate>
    <dc:creator>ashif2</dc:creator>
    <dc:date>2022-08-30T09:24:04Z</dc:date>
    <item>
      <title>tFileOutputDelimited converts null values to empty strings.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2319529#M89764</link>
      <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;Talend converts null values into empty strings when we configure the tFileOutputDelimited to write the data with  text enclosures . Say , if integer column is having null values, when I write this integer column into csv file using tFileOutputDelimited with csv options enabled.&lt;/P&gt;&lt;P&gt;null value in the integer turns into "". empty string.. &lt;/P&gt;&lt;P&gt;tFileOutputDelimited compontent is enclosing the numeric columns  within double quotes. which is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example below is source data, when we transform the json data into csv with text enclosures (age is integer column)&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name" : "john",&lt;/P&gt;&lt;P&gt;"age":22,&lt;/P&gt;&lt;P&gt;"city":"London"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name" : "leon", &lt;/P&gt;&lt;P&gt;"age": null ,&lt;/P&gt;&lt;P&gt;"city":"Brighton"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;Expected output in csv :&lt;/P&gt;&lt;P&gt;name,age,city&lt;/P&gt;&lt;P&gt;"John",22,"Lonon"&lt;/P&gt;&lt;P&gt;"leon",,"Brighton&lt;/P&gt;&lt;P&gt;Actual Output in talend is:&lt;/P&gt;&lt;P&gt;name,age,city&lt;/P&gt;&lt;P&gt;"John","22","Lonon"&lt;/P&gt;&lt;P&gt;"leon","","Brighton -------------&amp;gt; here null value in the force is converted to empty string. &lt;/P&gt;&lt;P&gt;How to resolve this use ?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2319529#M89764</guid>
      <dc:creator>ashif2</dc:creator>
      <dc:date>2024-11-15T22:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputDelimited converts null values to empty strings.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2319530#M89765</link>
      <description>&lt;P&gt;hello &lt;/P&gt;&lt;P&gt;There is no an option on tFileOutputDelimted to fix this issue directly, a workaround is:&lt;/P&gt;&lt;P&gt;create a temporary file, then read this temporary as a string using tFileInputRaw and replace the double quotes with empty value on a tJavaRow, and output the string a CSV file using tFIleOutputRaw.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Uy1bDAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145459i439A35F5283F258F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Uy1bDAAR.png" alt="0695b00000Uy1bDAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 00:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2319530#M89765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-30T00:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputDelimited converts null values to empty strings.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2319531#M89766</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This fix won't work always. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name" : "john",&lt;/P&gt;&lt;P&gt;"age":22,&lt;/P&gt;&lt;P&gt;"city":"London",&lt;/P&gt;&lt;P&gt;"country": "UK"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name" : "leon",&lt;/P&gt;&lt;P&gt;"age": null ,&lt;/P&gt;&lt;P&gt;"city":"Brighton",&lt;/P&gt;&lt;P&gt;&lt;B&gt;"country":""&lt;/B&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data from upstream is sending the empty string for some of the string columns . This fix will convert the empty string to null. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talend should include a option in the tFileOutput delimiter on treating the null values. "Don't enclose null values within field enclosures". &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 09:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2319531#M89766</guid>
      <dc:creator>ashif2</dc:creator>
      <dc:date>2022-08-30T09:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputDelimited converts null values to empty strings.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2527091#M147873</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;output_row.content = input_row.content.toString().replaceAll("\"\"","null");&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 21:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputDelimited-converts-null-values-to-empty-strings/m-p/2527091#M147873</guid>
      <dc:creator>howieS1</dc:creator>
      <dc:date>2025-08-12T21:47:25Z</dc:date>
    </item>
  </channel>
</rss>

