<?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 context parameter in java to TALEND job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212726#M10244</link>
    <description>hi, 
&lt;BR /&gt;i want to pass one context variable from java code to talend job.The vaue contains path of CSV file. 
&lt;BR /&gt;I want to pass that path value to 'tFileInputDelimited' component and then to MSSQL database. 
&lt;BR /&gt;First 'tFileInputDelimited' is empty but File name/Stream has file path passed from javacode. 
&lt;BR /&gt;Now 'tMap' component is empty. 
&lt;BR /&gt;How to solve this problem? 
&lt;BR /&gt;One more doubt is how can i get context variable 'file_path' (which is defined in java code) in TALEND JOB and set path value to 'File name/Stream' of &amp;nbsp;''tFileInputDelimited'' component. 
&lt;BR /&gt;please look into screenshots for better understanding of my problem. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148747i3CD2DA22026F4EFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsB.png" alt="0683p000009MCsB.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCcF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139356i8E7CE5DA6F7E31D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCcF.png" alt="0683p000009MCcF.png" /&gt;&lt;/span&gt;I tr 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148566i6F5A3D2003FAF222/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsL.png" alt="0683p000009MCsL.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129701i70E63361BCDDE6B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsQ.png" alt="0683p000009MCsQ.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:53:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:53:07Z</dc:date>
    <item>
      <title>context parameter in java to TALEND job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212726#M10244</link>
      <description>hi, 
&lt;BR /&gt;i want to pass one context variable from java code to talend job.The vaue contains path of CSV file. 
&lt;BR /&gt;I want to pass that path value to 'tFileInputDelimited' component and then to MSSQL database. 
&lt;BR /&gt;First 'tFileInputDelimited' is empty but File name/Stream has file path passed from javacode. 
&lt;BR /&gt;Now 'tMap' component is empty. 
&lt;BR /&gt;How to solve this problem? 
&lt;BR /&gt;One more doubt is how can i get context variable 'file_path' (which is defined in java code) in TALEND JOB and set path value to 'File name/Stream' of &amp;nbsp;''tFileInputDelimited'' component. 
&lt;BR /&gt;please look into screenshots for better understanding of my problem. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148747i3CD2DA22026F4EFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsB.png" alt="0683p000009MCsB.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCcF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139356i8E7CE5DA6F7E31D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCcF.png" alt="0683p000009MCcF.png" /&gt;&lt;/span&gt;I tr 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148566i6F5A3D2003FAF222/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsL.png" alt="0683p000009MCsL.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129701i70E63361BCDDE6B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsQ.png" alt="0683p000009MCsQ.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212726#M10244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: context parameter in java to TALEND job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212727#M10245</link>
      <description>Hi praveen522,&lt;BR /&gt;Have you already checked the document about &lt;A href="https://help.talend.com/search/all?query=How+to+define+context+variables+for+a+Job&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:How to define context variables for a Job&lt;/A&gt;?&lt;BR /&gt;Why don't you set your file path value in Context view? Did you want to mask your file path in your job by using javacode?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 05 Jan 2016 02:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212727#M10245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-05T02:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: context parameter in java to TALEND job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212728#M10246</link>
      <description>thanks shong for your quick replay.
&lt;BR /&gt;Yes i need to pass file path from JAVA code&amp;nbsp;&amp;nbsp;to TALEND job.
&lt;BR /&gt;You can see in my java code i set filepath value.i need to use that value in my TALEND JOB.
&lt;BR /&gt;Tell me how can i use file path of java code in TALEND JOB.</description>
      <pubDate>Tue, 05 Jan 2016 04:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212728#M10246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-05T04:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: context parameter in java to TALEND job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212729#M10247</link>
      <description>any update xdshi??</description>
      <pubDate>Thu, 07 Jan 2016 05:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212729#M10247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T05:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: context parameter in java to TALEND job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212730#M10248</link>
      <description>Hi,
&lt;BR /&gt;
&lt;BR /&gt;I think you have already&amp;nbsp;read this KB article 
&lt;A href="https://help.talend.com/search/all?query=Calling+a+Talend+Job+from+an+external+Java+application&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Calling a Talend Job from an external Java application&lt;/A&gt;
&lt;BR /&gt;We&amp;nbsp;see your code is OK to call the job from eclipse and pass the&amp;nbsp; new values to context variable.
&lt;BR /&gt;So now, what is the problem if you run the java code?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 07 Jan 2016 05:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212730#M10248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T05:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: context parameter in java to TALEND job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212731#M10249</link>
      <description>hi xdshi, 
&lt;BR /&gt;I think you will understand my problem clearly and identify mistake i made once you go through my new screenshots attached below. 
&lt;BR /&gt;In return i am getting "org.xml.sax.SAXException" in java class(refer screenshot 1). 
&lt;BR /&gt;EXCEPTION: 
&lt;BR /&gt; 
&lt;U&gt;&lt;FONT color="#0066CC"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Consolas"&gt;org.xml.sax.SAXException&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/U&gt; 
&lt;FONT color="#FF0000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Consolas"&gt;: Deserializing parameter 'item':&amp;nbsp; could not find deserializer for type {&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Consolas"&gt;&lt;A href="http://talend.org" target="_blank" rel="nofollow noopener noreferrer"&gt;http://talend.org&lt;/A&gt;}ArrayOf_xsd_string.&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Have a look at screenshots.Identify the mistake i done here. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146314iE2723FC4B41C6AEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsV.png" alt="0683p000009MCsV.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCl1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151042iBCF57DF45B4207FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCl1.png" alt="0683p000009MCl1.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145928iFE680288C16E993F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsa.png" alt="0683p000009MCsa.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCsf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128242i8A61E1B6F841662E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCsf.png" alt="0683p000009MCsf.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 07 Jan 2016 06:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/context-parameter-in-java-to-TALEND-job/m-p/2212731#M10249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T06:36:27Z</dc:date>
    </item>
  </channel>
</rss>

