<?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 Passing 'NULL' value into Not Nullable colum in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294462#M67331</link>
    <description>Hi Guys,
&lt;BR /&gt;So here is the situation. I have column Firs_name ( not Null), last_name(not Null), but some of the data into the column has value is 'NULL' char. when I'm loading data from flat file its not allowing to load into the target table and giving me error saying column can not be null. So I'm assuming that when I'm loading data into target table, talend is reading 'NULL' value as 'NULL' record.
&lt;BR /&gt;Here is the example ..
&lt;BR /&gt;First_Name Last_Name
&lt;BR /&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ
&lt;BR /&gt;EFG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HIJ
&lt;BR /&gt;HIK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&amp;nbsp;&amp;nbsp;&amp;nbsp; -----&amp;gt; this the exactly writing in source column, as rule if some one do not want to use their last name then, agent need to put NULL as last name.
&lt;BR /&gt;Is there any way that I can pass this same exact data into target table.
&lt;BR /&gt;Thanks</description>
    <pubDate>Sat, 16 Nov 2024 10:26:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:26:13Z</dc:date>
    <item>
      <title>Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294462#M67331</link>
      <description>Hi Guys,
&lt;BR /&gt;So here is the situation. I have column Firs_name ( not Null), last_name(not Null), but some of the data into the column has value is 'NULL' char. when I'm loading data from flat file its not allowing to load into the target table and giving me error saying column can not be null. So I'm assuming that when I'm loading data into target table, talend is reading 'NULL' value as 'NULL' record.
&lt;BR /&gt;Here is the example ..
&lt;BR /&gt;First_Name Last_Name
&lt;BR /&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ
&lt;BR /&gt;EFG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HIJ
&lt;BR /&gt;HIK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&amp;nbsp;&amp;nbsp;&amp;nbsp; -----&amp;gt; this the exactly writing in source column, as rule if some one do not want to use their last name then, agent need to put NULL as last name.
&lt;BR /&gt;Is there any way that I can pass this same exact data into target table.
&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 10:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294462#M67331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294463#M67332</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;You are not allowed to insert a Null value into a Not nullable column. As a workaround, convert Null to empty value or set its a default value. For example:
&lt;BR /&gt;tFileInputDelimited--main-t-tMap--main--tMysqlOutput
&lt;BR /&gt;on tMap, you can transfer the Null value to empty value or set it to a default value.
&lt;BR /&gt;row1.Last_Name==null?"":row1.Last_name
&lt;BR /&gt;or&amp;nbsp;
&lt;BR /&gt;row1.Last_Name==null?"default value":row1.Last_name
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 23 Aug 2016 03:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294463#M67332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-23T03:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294464#M67333</link>
      <description>thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I will try and will let you know</description>
      <pubDate>Thu, 25 Aug 2016 19:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294464#M67333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-25T19:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294465#M67334</link>
      <description>I tried this verius way but still not working&lt;BR /&gt;1. row3.last_name==null?"NULL":row1.last_name&amp;nbsp;&amp;nbsp; ----&amp;gt; still getting null value error&lt;BR /&gt;2. row3.LST_NM.equals("NULL")?"":row3.LST_NM -----&amp;gt; this will replace "NULL" character in column with Blank value in target&lt;BR /&gt;3. row3.Last_name==?"":row3,last_name&amp;nbsp;&amp;nbsp; ---&amp;gt; Still getting error&lt;BR /&gt;4. relational.isnull(row3.last_name)?"":row1.last_name ---&amp;gt; still getting error&lt;BR /&gt;this is the error&lt;BR /&gt;ERROR:&amp;nbsp; Column 4 : Field cannot contain null values&lt;BR /&gt;any other solution&lt;BR /&gt;Try to run attached test file. First_name and Last_name both column is Not Nullable. I'm looking same value each column as in my target table. including "NULL" written in the target column where it says "NULL" in file.&lt;BR /&gt;Please let me know&lt;BR /&gt;Testfill_NULL.txt.txt</description>
      <pubDate>Fri, 26 Aug 2016 22:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294465#M67334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-26T22:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294466#M67335</link>
      <description>Which type of database? Mysql?&lt;BR /&gt;As I said in previous post, you are not allowed to insert a NUll value into a not nullable column, however, you can put an empty value or a default value, have you tried this?&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;row3.last_name==null?"":row1.last_name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 27 Aug 2016 12:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294466#M67335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-27T12:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294467#M67336</link>
      <description>we are using flat file as input and Netezza for target.&lt;BR /&gt;Yes I tried Default value as "NULL" but it still give me error.&lt;BR /&gt;The default value will help if there is Empty("") record then it will add 'NULL' as default. but if column has 'NULL' as last name then it will still gives error</description>
      <pubDate>Sat, 27 Aug 2016 20:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294467#M67336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-27T20:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294468#M67337</link>
      <description>I use &lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;row3.last_name==null?"":row1.last_name&amp;nbsp; and made that column default value 'NULL'&amp;nbsp; and last_name column is not nullable. We are using Netezza database.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;ERROR: &lt;/FONT&gt;&lt;/FONT&gt;Field cannot contain null values</description>
      <pubDate>Sat, 27 Aug 2016 20:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294468#M67337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-27T20:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Passing 'NULL' value into Not Nullable colum</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294469#M67338</link>
      <description>Hi &amp;nbsp; 
&lt;BR /&gt;I think Netezza still consider empty "" value as null, you can either change the default value to another one such as "no data" or modify the column property to nullable in database.&amp;nbsp; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 28 Aug 2016 03:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-NULL-value-into-Not-Nullable-colum/m-p/2294469#M67338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-28T03:47:04Z</dc:date>
    </item>
  </channel>
</rss>

