<?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 Parse error with context variable and date value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340428#M108462</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm migrating and testing our Talend jobs to Talend Data Integration v8.0.1. After importing a test job I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Null value will be used for context parameter timestamp: Can't parse date string: Unparseable date: "" and long: For input string: ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some research and digging into Talend source code I found this message in the file &lt;/P&gt;&lt;P&gt;... studio\plugins\org.talend.designer.codegen_8.0.1.20211103_1602\jet_stub\footer.javajet in line 769.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found similar code in footer.javajet in the version Talend Open Studio 7.3.1 and 8.0.1M12 (downloaded from sourceforge).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made another test job with context parameters and different values. The values has to be set with the correct pattern (yyyy-MM-dd HH:mm:ss) or in miliseconds. An empty string or the string "null" results in an error. Is this a correct behaviour? Or should an empty string or the string "null" also be accepted as valid values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bEwnRAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157677i755A1B61954E246D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bEwnRAAS.png" alt="0695b00000bEwnRAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 12:26:18 GMT</pubDate>
    <dc:creator>borke02</dc:creator>
    <dc:date>2022-12-29T12:26:18Z</dc:date>
    <item>
      <title>Parse error with context variable and date value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340428#M108462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm migrating and testing our Talend jobs to Talend Data Integration v8.0.1. After importing a test job I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Null value will be used for context parameter timestamp: Can't parse date string: Unparseable date: "" and long: For input string: ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some research and digging into Talend source code I found this message in the file &lt;/P&gt;&lt;P&gt;... studio\plugins\org.talend.designer.codegen_8.0.1.20211103_1602\jet_stub\footer.javajet in line 769.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found similar code in footer.javajet in the version Talend Open Studio 7.3.1 and 8.0.1M12 (downloaded from sourceforge).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made another test job with context parameters and different values. The values has to be set with the correct pattern (yyyy-MM-dd HH:mm:ss) or in miliseconds. An empty string or the string "null" results in an error. Is this a correct behaviour? Or should an empty string or the string "null" also be accepted as valid values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bEwnRAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157677i755A1B61954E246D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bEwnRAAS.png" alt="0695b00000bEwnRAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340428#M108462</guid>
      <dc:creator>borke02</dc:creator>
      <dc:date>2022-12-29T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parse error with context variable and date value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340429#M108463</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;Defining a context variable with Date type, it requires a default value, and the date pattern should be "yyyy-MM-dd HH:mm:ss". &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 03:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340429#M108463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-30T03:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parse error with context variable and date value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340430#M108464</link>
      <description>&lt;P&gt;hello, &lt;/P&gt;&lt;P&gt;context variable,  the definition of pattern is obligate. but the value is not obligate if the option nullable is marked &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 09:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340430#M108464</guid>
      <dc:creator>zjing</dc:creator>
      <dc:date>2023-01-05T09:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parse error with context variable and date value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340431#M108465</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks shong. I now use the date pattern "yyyy-MM-dd HH:mm:ss" for date values. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zjing, where can I mark a context variable as nullable? I can only define name, type, comment and value for context variable. Also I can activate prompt. In my example I only printed out the values of the context variables with the tJava component. And with a wrong or an empty value I get an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 09:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-error-with-context-variable-and-date-value/m-p/2340431#M108465</guid>
      <dc:creator>borke02</dc:creator>
      <dc:date>2023-01-06T09:09:39Z</dc:date>
    </item>
  </channel>
</rss>

