<?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: [resolved] Null column in Databse in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362113#M126308</link>
    <description>Hi,
&lt;BR /&gt;You can use the expression in tMap to rule out the null data(
&lt;B&gt;row.Column==null?0:row.Column&lt;/B&gt; )
&lt;BR /&gt;This can also be done in the Advanced settings in tFilterRow component.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
    <pubDate>Fri, 17 Oct 2014 08:52:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-17T08:52:51Z</dc:date>
    <item>
      <title>[resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362112#M126307</link>
      <description>Hi ,&lt;BR /&gt;&amp;nbsp; I have nullable columns in database(Integer/Date). When I pass null from file (csv file), its throwing error like ,, is not a type of integer like that.&lt;BR /&gt;Input FIle:&lt;BR /&gt;A,B,,D.&lt;BR /&gt;kindly let me know how to handle this.</description>
      <pubDate>Sat, 16 Nov 2024 11:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362112#M126307</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2024-11-16T11:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362113#M126308</link>
      <description>Hi,
&lt;BR /&gt;You can use the expression in tMap to rule out the null data(
&lt;B&gt;row.Column==null?0:row.Column&lt;/B&gt; )
&lt;BR /&gt;This can also be done in the Advanced settings in tFilterRow component.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 17 Oct 2014 08:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362113#M126308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-17T08:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362114#M126309</link>
      <description>hi Sabrina,
&lt;BR /&gt;&amp;nbsp; Thank you for the reply, but I want to store the null value as it is. (not as '0'). Moreover am using dynamic schema for loading table from file. Kindly let me know how to achieve this.
&lt;BR /&gt;Regards,
&lt;BR /&gt;AbiJeev</description>
      <pubDate>Thu, 23 Oct 2014 08:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362114#M126309</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-10-23T08:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362115#M126310</link>
      <description>Hi, 
&lt;BR /&gt;p 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Moreover am using dynamic schema for loading table from file. Kindly let me know how to achieve this.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;In your job requirment, you need add more transformation logic in dynamic schema? 
&lt;BR /&gt;If so, please have a look at a related forum 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCo8LCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Generic-Talend-Job/td-p/92354&lt;/A&gt; to see if it is satisfying your needs. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 24 Oct 2014 08:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362115#M126310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-24T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362116#M126311</link>
      <description>Hi Sabrina,
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Dynamic schema is not a problem for me, from File to tMysqlOutput (using dynamic schema), so that i will directly load values from to Mysql for multiple tables. But I am facing problem only during null values, I have defined a column in table as Nullable, but in file it is coming with (A,B
&lt;FONT color="#ff3333"&gt;,,&lt;/FONT&gt;D) like ",,". And while loading that empty string it is not considering as Null. Its throwing error like 
&lt;B&gt;&lt;U&gt;cannot load Table,&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/U&gt;&lt;/B&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;B&gt;&lt;U&gt;&lt;FONT color="#cc3333"&gt;&lt;I&gt;,, &lt;/I&gt;&lt;/FONT&gt;is not a type of integer like that.&lt;/U&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362116#M126311</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-10-24T08:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362117#M126312</link>
      <description>Hi 
&lt;BR /&gt;In order to use dynamic schema, the first line of the file must be header. As topic: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCo8LCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Generic-Talend-Job/td-p/92354&lt;/A&gt;showed, try to access the column value, print the value to see what it is if needed, and then convert the value to null or other value if it is ,, or special characters. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 24 Oct 2014 08:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362117#M126312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-24T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362118#M126313</link>
      <description>Hi,
&lt;BR /&gt;As of now there is no way to handle null values for file in Talend.
&lt;BR /&gt;For e.g. If a File has a null value for a field, Talend can read only as a blank string. Same is the case when talend tries to insert null value in a file. It automatically converts null into an empty string.
&lt;BR /&gt;This is in contrast to other ETL tools like SAP BODS and Datastage where specific option of null handling with files are provided.
&lt;BR /&gt;As temporary measure, you may keep the integer column as varchar for file.</description>
      <pubDate>Fri, 24 Oct 2014 11:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362118#M126313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-24T11:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362119#M126314</link>
      <description>Hi Shong,
&lt;BR /&gt;&amp;nbsp; The problem here, I don't know which column will come as null (,,) in file. Now in File am getting 0000 instead of null(,,). Is there any way to convert 0000 to null &amp;nbsp;for Dynamic schema, am not sure how to do this in tJavaFlex.</description>
      <pubDate>Fri, 24 Oct 2014 15:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362119#M126314</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-10-24T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362120#M126315</link>
      <description>You have to hard code to convert 0000 to null if the component read empty string as "0000", for example: 
&lt;BR /&gt;... 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;ncount=row7.c.getColumnCount();&lt;BR /&gt;column=row7.c.getColumnMetadata(ncount-1);&lt;BR /&gt;String columnName=column.getName();&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;String columnValue=(String)row7.c.getColumnValue(columnName);&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;if(columnValue.contains("0000")){ 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;row7.c.setColumnValue(ncount-1, null);&lt;BR /&gt;row9.c=row7.c;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;Shong&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 27 Oct 2014 01:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362120#M126315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-27T01:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362121#M126316</link>
      <description>hi Shong, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Thanks for your reply, but column name is not 0000 only the column value is 0000 and also I don't know the exact column with value 0000, it may be in column 1 or column 2 or etc. (Processing many files with this dynamic schema). SO is there any way to replace that 0000 with null in dynamic Metadata. 
&lt;BR /&gt;Or is there any way to convert dynamic to String , then use replace All function and convert String to Dynamic? &amp;nbsp;I have changed Dynamic to String, but not sure how to convert String to Dynamic again.</description>
      <pubDate>Mon, 27 Oct 2014 06:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362121#M126316</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-10-27T06:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362122#M126317</link>
      <description>Hi
&lt;BR /&gt;I have written a wrong Java code in my previous post, it is column value that should be checked and convert to null if it is '0000', I have edited my post. There is no a direct way to replace 0000 with null, you have to write Java code to do it.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 28 Oct 2014 05:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362122#M126317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-28T05:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362123#M126318</link>
      <description>Hi Shong,
&lt;BR /&gt;&amp;nbsp; Thank you so much for the code, will it replace only the last before column value as null?, because Am not sure of the column&amp;nbsp;</description>
      <pubDate>Tue, 28 Oct 2014 06:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362123#M126318</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-10-28T06:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362124#M126319</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;&amp;nbsp; Thank you so much for the code, will it replace only the last before column value as null?, because Am not sure of the column&amp;nbsp;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I don't understand your question. BTW, are you a Java programmer? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 28 Oct 2014 07:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362124#M126319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-28T07:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362125#M126320</link>
      <description>hi Shong, 
&lt;BR /&gt;The below code will replace only the last column value correct? I don't know which column I will get that 0000 value it may be 1st column or 4th or last. And I am not a Java programmer, I know only the basics of Java.</description>
      <pubDate>Tue, 28 Oct 2014 07:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362125#M126320</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-10-28T07:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362126#M126321</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Yes, the above code only check the last column, if the problem might exist in any a column, you need to iterate each column, for example: 
&lt;BR /&gt; 
&lt;PRE&gt;ncount=row1.c.getColumnCount();&lt;BR /&gt;for(int i=0;i&amp;lt;ncount;i++){&lt;BR /&gt;column=row1.c.getColumnMetadata(i);&lt;BR /&gt;columnName=column.getName();&lt;BR /&gt;String columnValue=(String)row1.c.getColumnValue(columnName);&lt;BR /&gt;if(columnValue.contains("0000")){&lt;BR /&gt;row1.c.setColumnValue(i, null);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/1_20141029-1126.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAvr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146605iA4AB2D1D884C0CA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAvr.png" alt="0683p000009MAvr.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 29 Oct 2014 10:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362126#M126321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T10:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362127#M126322</link>
      <description>hi Shong,
&lt;BR /&gt;Thank you so much.</description>
      <pubDate>Thu, 30 Oct 2014 15:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362127#M126322</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-10-30T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Null column in Databse</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362128#M126323</link>
      <description>hi ,
&lt;BR /&gt;&amp;nbsp; One more doubt is there a way to remove one column from dynamic schema from incoming file based on column name before loading into database?</description>
      <pubDate>Thu, 06 Nov 2014 06:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Null-column-in-Databse/m-p/2362128#M126323</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2014-11-06T06:30:15Z</dc:date>
    </item>
  </channel>
</rss>

