<?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: How to write a zero length string (empty string) instead of null with tPostgresqlOutputBulk in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-a-zero-length-string-empty-string-instead-of-null/m-p/2271468#M49056</link>
    <description>&lt;P&gt;Thank you for your very complete response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be nice if there was an option in the OutputBulk component to do this.&amp;nbsp; Maybe in a future release of the component?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2020 14:29:12 GMT</pubDate>
    <dc:creator>billimmer</dc:creator>
    <dc:date>2020-03-30T14:29:12Z</dc:date>
    <item>
      <title>How to write a zero length string (empty string) instead of null with tPostgresqlOutputBulk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-a-zero-length-string-empty-string-instead-of-null/m-p/2271466#M49054</link>
      <description>&lt;P&gt;I can't get this to work.&amp;nbsp; Even if I tmap the field to "", it still is written as null in postgresql.&amp;nbsp; The bulk file is created with nothing between the delimiters.&amp;nbsp; If I manually edit the bulk file to "" instead of blank, then I get a null string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I can think to do is to map a single space (" "), and then after writing the bulk file, using treplace to convert all " " to "".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything better?&amp;nbsp; (Note the bulk file is created as csv)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 17:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-a-zero-length-string-empty-string-instead-of-null/m-p/2271466#M49054</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-03-27T17:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a zero length string (empty string) instead of null with tPostgresqlOutputBulk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-a-zero-length-string-empty-string-instead-of-null/m-p/2271467#M49055</link>
      <description>Hi
&lt;BR /&gt;I have made a testing and I got the same issue, what we can do is to replace " " with "" after the bulk file is created, use tReplace as you did or use tFileInputRaw to read the whole file content as a string, replace all " " with "" and then create a new bulk file. 
&lt;BR /&gt;tFileInputRaw--main--tJavaRow--tFileOutputRaw.
&lt;BR /&gt;
&lt;BR /&gt;on tJavaRow:
&lt;BR /&gt;//Code generated according to input schema and output schema
&lt;BR /&gt;output_row.content = (input_row.content).toString().replaceAll(" ","");
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 30 Mar 2020 11:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-a-zero-length-string-empty-string-instead-of-null/m-p/2271467#M49055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-30T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a zero length string (empty string) instead of null with tPostgresqlOutputBulk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-a-zero-length-string-empty-string-instead-of-null/m-p/2271468#M49056</link>
      <description>&lt;P&gt;Thank you for your very complete response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be nice if there was an option in the OutputBulk component to do this.&amp;nbsp; Maybe in a future release of the component?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 14:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-a-zero-length-string-empty-string-instead-of-null/m-p/2271468#M49056</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-03-30T14:29:12Z</dc:date>
    </item>
  </channel>
</rss>

