<?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: Context variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344626#M112261</link>
    <description>&lt;P&gt;the output has no result, it returns 0 rows&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 06:56:01 GMT</pubDate>
    <dc:creator>Soumya_M</dc:creator>
    <dc:date>2023-05-17T06:56:01Z</dc:date>
    <item>
      <title>Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344622#M112257</link>
      <description>&lt;P&gt;Hi all, I need your help regarding context variables in talend. So I have created this job to capture job details (like etl audit job)&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="0695b00000hs8kgAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141127i510ABD06DC36B404/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hs8kgAAA.png" alt="0695b00000hs8kgAAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My tDBRow has query:&lt;/P&gt;&lt;P&gt;"insert into public.jobs_exec(date_key,exec_key,job_id,job_status,start_time,end_time,src_count,tgt_count)&amp;nbsp;&lt;/P&gt;&lt;P&gt;select CURRENT_TIMESTAMP,0,job_id,'" + context.job_status + "',CURRENT_TIMESTAMP, null,0,0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from public.jobs_property&lt;/P&gt;&lt;P&gt;where job_name ='" + context.job_name + "'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this I have taken as sub-job in other job, where it is supposed to capture job execution details&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="0695b00000hs8lPAAQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137373iBBFE34F94C7606FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hs8lPAAQ.png" alt="0695b00000hs8lPAAQ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, the audit job is supposed to capture the details of this job and update it in db accordingly. Though manually I'm able to execute the query (of tDBRow ) and populate jobs_exec table, but it's not happening via talend ? Where is it it that i'm missing ? any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 13:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344622#M112257</guid>
      <dc:creator>Soumya_M</dc:creator>
      <dc:date>2023-05-16T13:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344623#M112258</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;"but it's not happenning via talend? "&lt;/P&gt;&lt;P&gt;What's the problem? Does the data are inserted correctly into DB when the query is executed on tDBRow?&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;one thing to note is that ​the value of context.job_name is the main job' name rather than child job's name in your example, you pass the main job's name to child job.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 03:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344623#M112258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-17T03:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344624#M112259</link>
      <description>&lt;P&gt;That's the issue - tDBRow query execution result data is not inserted into the db. &lt;/P&gt;&lt;P&gt;Yes, I do know that context.job_name is the main job name. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 05:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344624#M112259</guid>
      <dc:creator>Soumya_M</dc:creator>
      <dc:date>2023-05-17T05:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344625#M112260</link>
      <description>&lt;P&gt;so, need to do more testing on your query, eg, use a tDBInput to execute this query &lt;/P&gt;&lt;P&gt;select CURRENT_TIMESTAMP,0,job_id,'" + context.job_status + "',CURRENT_TIMESTAMP, null,0,0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from public.jobs_property&lt;/P&gt;&lt;P&gt;where job_name ='" + context.job_name + "'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and output them on the console to check if it has the right result. &lt;/P&gt;&lt;P&gt;tDBInput--main--tLogRow&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 06:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344625#M112260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-17T06:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344626#M112261</link>
      <description>&lt;P&gt;the output has no result, it returns 0 rows&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 06:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344626#M112261</guid>
      <dc:creator>Soumya_M</dc:creator>
      <dc:date>2023-05-17T06:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344627#M112262</link>
      <description>&lt;P&gt;this explains that's why no data are inserted into DB if you execute the query on tDBRow&lt;/P&gt;&lt;P&gt;"insert into public.jobs_exec(date_key,exec_key,job_id,job_status,start_time,end_time,src_count,tgt_count)&amp;nbsp;&lt;/P&gt;&lt;P&gt;select CURRENT_TIMESTAMP,0,job_id,'" + context.job_status + "',CURRENT_TIMESTAMP, null,0,0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from public.jobs_property&lt;/P&gt;&lt;P&gt;where job_name ='" + context.job_name + "'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 07:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344627#M112262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-17T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344628#M112263</link>
      <description>&lt;P&gt;I got the answer, thank you for the response&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 12:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-variables/m-p/2344628#M112263</guid>
      <dc:creator>Soumya_M</dc:creator>
      <dc:date>2023-05-17T12:47:15Z</dc:date>
    </item>
  </channel>
</rss>

