<?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 How can I insert a blank instead of a null into a database field? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-insert-a-blank-instead-of-a-null-into-a-database-field/m-p/2251930#M35727</link>
    <description>&lt;P&gt;I am reading data from a MS SQLServer table using tDBInput, routing it through a tMap component, writing certain parts of it to a DB2 for i table using tDBOutput, and finally outputting it to an Excel Spreadsheet using a tFileOutputExcel component. The flow is linear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works great except the output to DB2. All the records I expect are in the Excel spreadsheet, but none are in the DB2 table. The problem seems to be that it is trying to write a null into a field that is not null capable. I am trying to write a blank into that field because I have nothing to map, but it is not working. TOS is insisting on putting a null in there.&amp;nbsp;This is one of 4 similar flows, and all work but this one. The only difference is the blank value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how do I write a constant blank into a DB field that is not null capable?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 22:42:28 GMT</pubDate>
    <dc:creator>MarkM1</dc:creator>
    <dc:date>2019-11-12T22:42:28Z</dc:date>
    <item>
      <title>How can I insert a blank instead of a null into a database field?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-insert-a-blank-instead-of-a-null-into-a-database-field/m-p/2251930#M35727</link>
      <description>&lt;P&gt;I am reading data from a MS SQLServer table using tDBInput, routing it through a tMap component, writing certain parts of it to a DB2 for i table using tDBOutput, and finally outputting it to an Excel Spreadsheet using a tFileOutputExcel component. The flow is linear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works great except the output to DB2. All the records I expect are in the Excel spreadsheet, but none are in the DB2 table. The problem seems to be that it is trying to write a null into a field that is not null capable. I am trying to write a blank into that field because I have nothing to map, but it is not working. TOS is insisting on putting a null in there.&amp;nbsp;This is one of 4 similar flows, and all work but this one. The only difference is the blank value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how do I write a constant blank into a DB field that is not null capable?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 22:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-insert-a-blank-instead-of-a-null-into-a-database-field/m-p/2251930#M35727</guid>
      <dc:creator>MarkM1</dc:creator>
      <dc:date>2019-11-12T22:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert a blank instead of a null into a database field?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-insert-a-blank-instead-of-a-null-into-a-database-field/m-p/2251931#M35728</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQXgAAO"&gt;@mmurphy&lt;/A&gt;&amp;nbsp;, You can try the below way in tmap or tjavarow with below condition for sting filed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;row1.col1==null?"":row1.col1&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 06:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-insert-a-blank-instead-of-a-null-into-a-database-field/m-p/2251931#M35728</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-11-13T06:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I insert a blank instead of a null into a database field?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-insert-a-blank-instead-of-a-null-into-a-database-field/m-p/2251932#M35729</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;If entire column needs to be blank, then in your tMap output section, in the expression builder of that column mapping, insert double quotes(" ") instead of leaving it blank.&lt;/P&gt; 
&lt;P&gt;If an input column has to be mapped, try handling null for that mapping using conditional statement.&lt;/P&gt; 
&lt;P&gt;**input_row.col_name==null ? " " :&amp;nbsp;input_row.col_name**&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 08:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-insert-a-blank-instead-of-a-null-into-a-database-field/m-p/2251932#M35729</guid>
      <dc:creator>Raghuram_Puram</dc:creator>
      <dc:date>2019-11-13T08:08:10Z</dc:date>
    </item>
  </channel>
</rss>

