<?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: passing date context (converted to string) to parent in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/passing-date-context-converted-to-string-to-parent/m-p/2366976#M130403</link>
    <description>Does it work if you replace the tRunJob in Job B with the tFixedFlowInput from Job A?&lt;BR /&gt;Have you assigned a default value to the context variable in Job B?</description>
    <pubDate>Thu, 04 Mar 2010 07:34:42 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2010-03-04T07:34:42Z</dc:date>
    <item>
      <title>passing date context (converted to string) to parent</title>
      <link>https://community.qlik.com/t5/Talend-Studio/passing-date-context-converted-to-string-to-parent/m-p/2366975#M130402</link>
      <description>Hi,&lt;BR /&gt;Not sure if this is a bug but I am trying to to pass a date context back to parent and I keep getting the exception:&lt;BR /&gt;Set value for key: &amp;lt;some date&amp;gt; failed, error message: Unparseable date: ""&lt;BR /&gt;Here's my setup:&lt;BR /&gt;Job A contains a tFixedFlowInput with 2 columns, key and value, both string.  the key is the name of a date context and the value is:&lt;BR /&gt;TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",TalendDate.getCurrentDate())&lt;BR /&gt;I output this to tBufferOutput so the parent can use it.&lt;BR /&gt;Job B calls Job A and loads the buffered data (key/value par) using tContextLoad.  When I run job B, i get the error above.  Looking into the code I notice the following lines:&lt;BR /&gt;					if (key_tContextLoad_1 != null&lt;BR /&gt;									&amp;amp;&amp;amp; "job_run_created_at"&lt;BR /&gt;											.equals(key_tContextLoad_1)) {&lt;BR /&gt;								String context_job_run_created_at_value = context&lt;BR /&gt;										.getProperty("job_run_created_at");&lt;BR /&gt;context.getProperty(...) returns empty string - since it gets the context from the current job (Job B).  Shouldn't it be getting the value from Job A?  In this case the variable is value_tContextLoad_1.  Other datatypes seem to work fine and they get the value from value_tContextLoad_1.&lt;BR /&gt;Please advise.&lt;BR /&gt;Thanks&lt;BR /&gt;Sarah</description>
      <pubDate>Sat, 16 Nov 2024 13:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/passing-date-context-converted-to-string-to-parent/m-p/2366975#M130402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: passing date context (converted to string) to parent</title>
      <link>https://community.qlik.com/t5/Talend-Studio/passing-date-context-converted-to-string-to-parent/m-p/2366976#M130403</link>
      <description>Does it work if you replace the tRunJob in Job B with the tFixedFlowInput from Job A?&lt;BR /&gt;Have you assigned a default value to the context variable in Job B?</description>
      <pubDate>Thu, 04 Mar 2010 07:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/passing-date-context-converted-to-string-to-parent/m-p/2366976#M130403</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-03-04T07:34:42Z</dc:date>
    </item>
  </channel>
</rss>

