<?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: Couldn't parse value for column with 'bit' and and unique identifier default value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286657#M60279</link>
    <description>mobile_inq ,you need to read as string and which you need to convert into into by using below expression. 
&lt;BR /&gt; 
&lt;BR /&gt;Row1.mobile_inq.equals("FALSE")?0:1</description>
    <pubDate>Thu, 09 Apr 2020 06:44:23 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-04-09T06:44:23Z</dc:date>
    <item>
      <title>Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286656#M60278</link>
      <description>&lt;P&gt;Here's the job design&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inputdelimited.png" style="width: 680px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Qj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144902iEFD510E5D7DDB941/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Qj.png" alt="0683p000009M9Qj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I experienced the following problem related to loading schema definition in tInputFileDelimited.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;STRONG&gt;[SOLVED!!!]&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;1.&amp;nbsp;Schema Definition for 'bit(MSSQL)' data type&lt;/P&gt; 
&lt;P&gt;**CSV is exported from MSSQL&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm a bit confused here about how I should treat 'bit' data type.&lt;/P&gt; 
&lt;P&gt;When I look at the&lt;U&gt; input CSV, the value in 'mobile_inq' column is written as 'FALSE' or 'TRUE' , and in the original source DB '0' or '1'.&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;So I'm not sure how I should set the data type in tInputDelimitedFile's&amp;nbsp; schema definition and tMap.&lt;/P&gt; 
&lt;P&gt;Please let me know how I could fixed this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There's no 'bit' type in schema definition so&amp;nbsp; I tried to set to the following types:&lt;/P&gt; 
&lt;P&gt;1) Set "mobile_inq"'s data type to 'int'&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mobile_inq0.png" style="width: 503px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9EB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153299i5E69EA59A21B19C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9EB.png" alt="0683p000009M9EB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;E&lt;/P&gt; 
&lt;P&gt;Error log:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;Exception in component tFileInputDelimited_5 (Data_Update1)
java.lang.RuntimeException: Couldn't parse value for column 'mobile_inq' in 'row13', value is 'FALSE'. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Details: java.lang.NumberFormatException: For input string: "FALSE"&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;2) Set "mobile_inq"'s data type to 'boolean'&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mobile_inq1.png" style="width: 511px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Qt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158037i4AA72A1D80129F8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Qt.png" alt="0683p000009M9Qt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;org.talend.designer.runprocess.ProcessorException: Job compile errors 
Detail Message: Type mismatch: cannot convert from int to boolean&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3. Set 'mobile_inq' data type to string&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;Type mismatch: cannot convert from int to String&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;3. Unique Identifier's "msrepl_tran_version" method newid() is undefined&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msrepl0.png" style="width: 496px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Cm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157279i657A2205AE30947A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Cm.png" alt="0683p000009M8Cm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;Detail Message: The method newid() is undefined for the type Data_Update1&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;if I remove newid() from default value column, the error below stills occur.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;Exception in component tDBOutput_6 (Data_Update1)
java.sql.SQLSyntaxErrorException: BLOB, TEXT, GEOMETRY or JSON column 'msrepl_tran_version' can't have a default value&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;The data type should be 'uniqueidentifier' and default value '(newid())' in MSSQL, but I don't know how I should set it here.&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;Please let me know if anything is unclear.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286656#M60278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286657#M60279</link>
      <description>mobile_inq ,you need to read as string and which you need to convert into into by using below expression. 
&lt;BR /&gt; 
&lt;BR /&gt;Row1.mobile_inq.equals("FALSE")?0:1</description>
      <pubDate>Thu, 09 Apr 2020 06:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286657#M60279</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-09T06:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286658#M60280</link>
      <description>@manowdwhb 
&lt;BR /&gt;I tried to set mobile_inq as string but there's an error again. 
&lt;BR /&gt;&amp;gt;&amp;gt; Type mismatch: cannot convert from int to String</description>
      <pubDate>Thu, 09 Apr 2020 07:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286658#M60280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T07:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286659#M60281</link>
      <description>your source is int, which you want to convert into boolean then use below way. &lt;BR /&gt;&lt;BR /&gt;row1.colomn==1?true:false</description>
      <pubDate>Thu, 09 Apr 2020 07:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286659#M60281</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-09T07:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286660#M60282</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I changed source to int and output to boolean, but the&amp;nbsp;initial error message still appears.&lt;/P&gt; 
&lt;PRE&gt;&amp;gt;&amp;gt; tFileInputDelimited_5 Couldn't parse value for column 'mobile_inq' in 'row13', value is 'FALSE'.&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2020 08:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286660#M60282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-09T08:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286661#M60283</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Here's the job design&lt;/P&gt; 
 &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inputdelimited.png" style="width: 680px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Qj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144902iEFD510E5D7DDB941/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Qj.png" alt="0683p000009M9Qj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I experienced the following problem related to loading schema definition in tInputFileDelimited.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;1.&amp;nbsp;&lt;STRONG&gt;Schema Definition for 'bit(MSSQL)' data type&lt;/STRONG&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I'm a bit confused here about how I should treat 'bit' data type.&lt;/P&gt; 
 &lt;P&gt;&lt;STRONG&gt;When I look at the&lt;U&gt; input CSV, the value in 'mobile_inq' column is written as 'FALSE' or 'TRUE' , and in the original DB '0' or '1'.&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt; 
 &lt;P&gt;&lt;STRONG&gt;So I'm not sure how I should set the data type in schema's definition and tMap. &lt;/STRONG&gt;&lt;/P&gt; 
 &lt;P&gt;&lt;STRONG&gt;&amp;lt;&amp;lt; The error occurred in the input component, so I think it's likely related to the schema/data type setting...&lt;/STRONG&gt;&lt;/P&gt; 
 &lt;P&gt;Please let me know how I could fixed this.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&lt;STRONG&gt;++ Does changing data type mapping setting help in this case??&lt;/STRONG&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;here is the details for CSV and original MSSQL.&lt;/P&gt; 
 &lt;P&gt;Input &amp;lt;CSV file&amp;gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;column 'mobile_inq': FALSE(value)&lt;/P&gt; 
 &lt;P&gt;Original &amp;lt;MSSQL DB&amp;gt;&lt;/P&gt; 
 &lt;P&gt;column 'mobile_inq': 0 (value,, data type = bit)&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;There's no 'bit' type in schema definition so&amp;nbsp; I tried to set to the following types:&lt;/P&gt; 
 &lt;P&gt;1) Set "mobile_inq"'s data type to 'int'&lt;/P&gt; 
 &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mobile_inq0.png" style="width: 503px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9EB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153299i5E69EA59A21B19C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9EB.png" alt="0683p000009M9EB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;E&lt;/P&gt; 
 &lt;P&gt;Error log:&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;PRE&gt;&lt;FONT color="#800000"&gt;Exception in component tFileInputDelimited_5 (Data_Update1)
java.lang.RuntimeException: Couldn't parse value for column 'mobile_inq' in 'row13', value is 'FALSE'. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Details: java.lang.NumberFormatException: For input string: "FALSE"&lt;/FONT&gt;&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;2) Set "mobile_inq"'s data type to 'boolean'&lt;/P&gt; 
 &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mobile_inq1.png" style="width: 511px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Qt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158037i4AA72A1D80129F8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Qt.png" alt="0683p000009M9Qt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;PRE&gt;&lt;FONT color="#800000"&gt;org.talend.designer.runprocess.ProcessorException: Job compile errors 
Detail Message: Type mismatch: cannot convert from int to boolean&lt;/FONT&gt;&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;3. Set 'mobile_inq' data type to string&lt;/P&gt; 
 &lt;PRE&gt;&lt;FONT color="#800000"&gt;Type mismatch: cannot convert from int to String&lt;/FONT&gt;&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;Couldn't parse value for column 'reg_date' in 'row13', value is '2019/1/18 11:26'&lt;/STRONG&gt;&lt;/P&gt; 
 &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reg_date0.png" style="width: 716px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Qa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150256iBC7F7F5793EE772E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Qa.png" alt="0683p000009M9Qa.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;PRE&gt;&lt;FONT color="#800000"&gt;Exception in component tFileInputDelimited_5 (Data_Update1)
java.lang.RuntimeException: Couldn't parse value for column 'reg_date' in 'row13', value is '2019/1/18 11:26'.&lt;/FONT&gt;&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I tried to make date pattern same as my data input, but still it didn't work...&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&lt;STRONG&gt;3. Unique Identifier's "msrepl_tran_version" method newid() is undefined&lt;/STRONG&gt;&lt;/P&gt; 
 &lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msrepl0.png" style="width: 496px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Cm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157279i657A2205AE30947A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Cm.png" alt="0683p000009M8Cm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
 &lt;PRE&gt;&lt;FONT color="#800000"&gt;Detail Message: The method newid() is undefined for the type Data_Update1&lt;/FONT&gt;&lt;/PRE&gt; 
 &lt;P&gt;if I remove newid() from default value column, the error below stills occur.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;PRE&gt;&lt;FONT color="#800000"&gt;Exception in component tDBOutput_6 (Data_Update1)
java.sql.SQLSyntaxErrorException: BLOB, TEXT, GEOMETRY or JSON column 'msrepl_tran_version' can't have a default value&lt;/FONT&gt;&lt;/PRE&gt; 
 &lt;P&gt;The data type should be 'uniqueidentifier' and default value '(newid())' in MSSQL, but I don't know how I should set it here.&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;Please let me know if anything is unclear.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Thank you very much.&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Anyone have an idea how I solve the problems discussed above regarding data type 'bit', 'date', and newid()??&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 06:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286661#M60283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-13T06:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286662#M60284</link>
      <description>&lt;P&gt;In general: The MS SQL Server does not known a boolean data type instead it use the Bit type which will be filled with numeric values.&lt;/P&gt; 
&lt;P&gt;Values equals or greater 1 will be recognised as true and values zero or less will be recognised as false.&lt;/P&gt; 
&lt;P&gt;In your file - thats what I understood you have values "TRUE" and "FALSE".&lt;/P&gt; 
&lt;P&gt;Unfortunately you have to convert the incoming String (you have to read the values in the tFileInputDelimited as String values) into a short value with "TRUE" -&amp;gt; 1 and "FALSE" -&amp;gt; 0&lt;/P&gt; 
&lt;P&gt;This can be done like this in a tMap value expression editor for the output row:&lt;/P&gt; 
&lt;P&gt;"TRUE".equalsIgnoreCase(row13.&lt;SPAN&gt;mobile_inq) ? 1 : 0&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;This expression also results for null input into a 0 as output and does not cause a NullPointerException.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The outgoing schema should be set as int typed.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Now regrading to your date issue. Actually the error message tells you everything.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;You incoming text formatted text is yyyy/MM/dd HH:mm:ss and this is the pattern what you have to set in your schema for the tFileInputDelimited for your reg_date column.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;By the way: The default value of a schema will not be used to replace a possible null value. It is only be used for creating tables and set the default value. Talend unfortunately does not use this setting consequently for all purposes a developer would expect.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 19:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286662#M60284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-13T19:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286663#M60285</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;P&gt;Unfortunately you have to convert the incoming String (you have to read the values in the tFileInputDelimited as String values) into a short value with "TRUE" -&amp;gt; 1 and "FALSE" -&amp;gt; 0&lt;/P&gt; 
 &lt;P&gt;This can be done like this in a tMap value expression editor for the output row:&lt;/P&gt; 
 &lt;P&gt;"TRUE".equalsIgnoreCase(row13.&lt;SPAN&gt;mobile_inq) ? 1 : 0&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&lt;SPAN&gt;This expression also results for null input into a 0 as output and does not cause a NullPointerException.&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;I tried to set 'mobile_inq' as String in&amp;nbsp;tFileInputDelimited and 'short' (tDBOutput),, however the following error occurs.&lt;/P&gt; 
&lt;PRE&gt;Type mismatch: cannot convert from int to Short&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I tried to set&amp;nbsp; 'mobile_inq' as Integer, the following error occurred (Output: boolean)&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;java.lang.RuntimeException: Couldn't parse value for column 'mobile_inq' in 'row13', value is 'FALSE'. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Details: java.lang.NumberFormatException: For input string: "FALSE"&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Integer =&amp;gt; Integer (Output)&lt;/P&gt; 
&lt;PRE&gt;Type mismatch: cannot convert from boolean to Integer&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regarding the date, I realized that later on, but thanks&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAZi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151413i20B6AC614F748505/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAZi.png" alt="0683p000009MAZi.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here I attached the sample job and csv file for your reference.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyJn"&gt;sample.zip&lt;/A&gt;</description>
      <pubDate>Tue, 14 Apr 2020 02:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286663#M60285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-14T02:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286664#M60286</link>
      <description>I kind of figured it out later, thanks to the advice here. 
&lt;BR /&gt; 
&lt;BR /&gt;The solution is to set the schema as String and have default value as "FALSE" 
&lt;BR /&gt;&amp;gt;&amp;gt; previously I left it as ((0)), so the int error comes up. 
&lt;BR /&gt; 
&lt;BR /&gt;Then in tMap Component, set the output row expression as the following and data type as boolean. 
&lt;BR /&gt;Row1.mobile_inq.equals("TRUE")?true:false 
&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Apr 2020 04:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286664#M60286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T04:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't parse value for column with 'bit' and and unique identifier default value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286665#M60287</link>
      <description>&lt;P&gt;I recommend to turn the comparison:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Row1.mobile_inq.equals("TRUE")?true:false &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;should be turned to:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"TRUE".equals(Row1.mobile_inq)?true:false&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;This way you do not have to deal with null values and prevent NullPointerExceptions&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 07:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Couldn-t-parse-value-for-column-with-bit-and-and-unique/m-p/2286665#M60287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T07:53:29Z</dc:date>
    </item>
  </channel>
</rss>

