<?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: Running a single job multiple times based on context variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297345#M69932</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;You can use external context variable read. You can pass a parameter file and parse the params inside the Talend job .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;When you run the second instance you can pass second param file so that you can run with second set of parms.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Raghu&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrZD"&gt;externalcontext.PNG&lt;/A&gt;</description>
    <pubDate>Mon, 26 Jun 2017 19:52:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-26T19:52:15Z</dc:date>
    <item>
      <title>Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297344#M69931</link>
      <description>&lt;P&gt;We have a situation here which requires inputs from you.&lt;BR /&gt;The requirement is that we have a Job A that needs to be run without talend. We are planning to build the job and run them using windows scheduler.&lt;BR /&gt;Actually, the job loads data into BigQuery for a Single provider (say Provider A). Now, if we there is another provider joining (say Provider B), what is the best way to run the same job for Provider B again? There will be no change in the requirement/job at all, the only place where we may have to change is the DataSet&amp;nbsp; name of the "BigQuery" which is different for each provider.&lt;BR /&gt;&lt;BR /&gt;Each provider is independent of the other, so if possible running the same job for two different provider in parallel is also most welcome (if possible). We wanted to add the name of the Dataset into a flatfile and use it as a parameter (for getting the Data Set name) and load into the Bigquery table (based on the data set name). Can any of you provide me some idea on how to make this possible.&lt;BR /&gt;&lt;BR /&gt;I know we can use context variable, but for my requirement, I need to pass the value for the dataset name using a parameter file name which will be different for each provider; how to make the 1st job point to 1st path and 2nd to point 2nd path. If not, is it possible to put both the dataset into a single parameter file and have the job to run twice based on the data set value.&lt;BR /&gt;&lt;BR /&gt;Is there any other different way by which, I can run the same job many times based on the value provided as a parameter outside the job and the records should be loaded into the database based on the value provided in the Parameter (Dataset name)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297344#M69931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297345#M69932</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;You can use external context variable read. You can pass a parameter file and parse the params inside the Talend job .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;When you run the second instance you can pass second param file so that you can run with second set of parms.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Raghu&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrZD"&gt;externalcontext.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 26 Jun 2017 19:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297345#M69932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-26T19:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297346#M69933</link>
      <description>Hello 
&lt;BR /&gt;As raghumreddy suggested, read the param value from the flatfile and pass it to the business job dynamically, for example: 
&lt;BR /&gt;You have a flatfile that has the dataset names: 
&lt;BR /&gt;dataset1 
&lt;BR /&gt;dataset2 
&lt;BR /&gt; 
&lt;BR /&gt;tfileInputDelimited--main(row1)--tFlowToIterate--iterate--other components--main--&amp;gt;tBigQueryOutput 
&lt;BR /&gt; 
&lt;BR /&gt;tfileInputDelimited: read the dataset name from flatfile, define one column called "dataset"with string type. In the later components, you can get the current dataset name with this expression: 
&lt;BR /&gt;(String)globalMap.get("row1.dataset") 
&lt;BR /&gt; 
&lt;BR /&gt;tFlowToIterate: loop the business processing multiple time for each dataset name. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2017 02:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297346#M69933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T02:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297347#M69934</link>
      <description>&lt;P&gt;Here is what it has been asked to check at implementation point of view.&lt;BR /&gt;Create a flat file with list of datasets. if in future any datasets to be added (for another provider, the addition should be done here with a number by which it is to be identified)&lt;BR /&gt;The flat file will look like&lt;BR /&gt;1. Dataset1/Provider A&lt;BR /&gt;2. Dataset2/Provider B&lt;BR /&gt;3. Dataset3/Provider C&lt;BR /&gt;44. Dataset4/Provider D&lt;BR /&gt;....&lt;BR /&gt;So while running the talend job, the job should ask,&amp;nbsp; for which dataset this run has to be done.The talend should give us the option something like this&lt;BR /&gt;Select the Dataset/Provider which&amp;nbsp; has to be executed.&lt;BR /&gt;1. Dataset1/Provider A&lt;BR /&gt;2. Dataset2/Provider B&lt;BR /&gt;3. Dataset3/Provider C&lt;BR /&gt;44. Dataset4/Provider D&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;99 Exit&lt;BR /&gt;&lt;BR /&gt;If any datasets added in future in flat file, that datasets should be displayed while running the job automatically and the number for that dataset should be the number which is given in the flat file.&lt;BR /&gt;&lt;BR /&gt;If the number 1 is pressed, then the Dataset1 should be executed and if number 44 then the Dataset 4 should be executed.&lt;BR /&gt;The number is based on the number that is given in the flat file and Exit should end the program without executing further.&lt;BR /&gt;Can you please suggest how to work on this scenario.Should be more useful for me now and everyone in future, if you can share the job that is relevant for this scenario.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 03:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297347#M69934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T03:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297348#M69935</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt; wrote: 
 &lt;BR /&gt;Hello 
 &lt;BR /&gt;As raghumreddy suggested, read the param value from the flatfile and pass it to the business job dynamically, for example: 
 &lt;BR /&gt;You have a flatfile that has the dataset names: 
 &lt;BR /&gt;dataset1 
 &lt;BR /&gt;dataset2 
 &lt;BR /&gt; 
 &lt;BR /&gt;tfileInputDelimited--main(row1)--tFlowToIterate--iterate--other components--main--&amp;gt;tBigQueryOutput 
 &lt;BR /&gt; 
 &lt;BR /&gt;tfileInputDelimited: read the dataset name from flatfile, define one column called "dataset"with string type. In the later components, you can get the current dataset name with this expression: 
 &lt;BR /&gt;(String)globalMap.get("row1.dataset") 
 &lt;BR /&gt; 
 &lt;BR /&gt;tFlowToIterate: loop the business processing multiple time for each dataset name. 
 &lt;BR /&gt; 
 &lt;BR /&gt;Regards 
 &lt;BR /&gt;Shong 
 &lt;BR /&gt; 
 &lt;BR /&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Following is the error I am getting while trying to load the file as mentioned by you.&lt;BR /&gt;400 Bad Request&lt;BR /&gt;{&lt;BR /&gt;"code" : 400,&lt;BR /&gt;"errors" : [ {&lt;BR /&gt;"domain" : "global",&lt;BR /&gt;"message" : "Invalid dataset ID \"\"Dataset_Dev\"\". Dataset IDs must be alphanumeric (plus underscores, dashes, and colons) and must be at most 1024 characters long.",&lt;BR /&gt;"reason" : "invalid"&lt;BR /&gt;} ]&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 07:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297348#M69935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T07:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297349#M69936</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LLsVAAW"&gt;@sreenathtr&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;BLOCKQUOTE&gt; 
  &lt;HR /&gt; 
  &lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt; wrote: 
  &lt;BR /&gt;Hello 
  &lt;BR /&gt;As raghumreddy suggested, read the param value from the flatfile and pass it to the business job dynamically, for example: 
  &lt;BR /&gt;You have a flatfile that has the dataset names: 
  &lt;BR /&gt;dataset1 
  &lt;BR /&gt;dataset2 
  &lt;BR /&gt; 
  &lt;BR /&gt;tfileInputDelimited--main(row1)--tFlowToIterate--iterate--other components--main--&amp;gt;tBigQueryOutput 
  &lt;BR /&gt; 
  &lt;BR /&gt;tfileInputDelimited: read the dataset name from flatfile, define one column called "dataset"with string type. In the later components, you can get the current dataset name with this expression: 
  &lt;BR /&gt;(String)globalMap.get("row1.dataset") 
  &lt;BR /&gt; 
  &lt;BR /&gt;tFlowToIterate: loop the business processing multiple time for each dataset name. 
  &lt;BR /&gt; 
  &lt;BR /&gt;Regards 
  &lt;BR /&gt;Shong 
  &lt;BR /&gt; 
  &lt;BR /&gt; 
  &lt;HR /&gt; 
 &lt;/BLOCKQUOTE&gt; 
 &lt;P&gt;Following is the error I am getting while trying to load the file as mentioned by you.&lt;BR /&gt;400 Bad Request&lt;BR /&gt;{&lt;BR /&gt;"code" : 400,&lt;BR /&gt;"errors" : [ {&lt;BR /&gt;"domain" : "global",&lt;BR /&gt;"message" : "Invalid dataset ID \"\"Dataset_Dev\"\". Dataset IDs must be alphanumeric (plus underscores, dashes, and colons) and must be at most 1024 characters long.",&lt;BR /&gt;"reason" : "invalid"&lt;BR /&gt;} ]&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Got this problem resolved. The CSV options has to be enabled for getting this job to get loaded successfully.&lt;/P&gt; 
&lt;P&gt;If anyone can advice me of the previous implementation i asked for, it will be most useful. Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 09:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297349#M69936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T09:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297350#M69937</link>
      <description>Hello
&lt;BR /&gt;You need to read the dataset from the flat file, and create a drop-down list that allows user to select a value from the list at runtime, the result chosen by the user will be assigned to a context variable. There was a KB article about how to create a drop-down list, but it is missing on our new Talend Help Center portal, I have contacted our Doc team to restore it, but it might need some times.
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 03 Jul 2017 02:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297350#M69937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-03T02:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running a single job multiple times based on context variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297351#M69938</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;Instead, can you get me the sample job that basically has this primary function working which can be useful for everyone looking for a similar setup.&lt;/P&gt;
&lt;P&gt;I am looking for something like&lt;/P&gt;
&lt;P&gt;job 1&amp;nbsp;&amp;nbsp;&amp;nbsp; -----&amp;gt; job 2&lt;/P&gt;
&lt;P&gt;(This job)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (running based on the flatfile value)&lt;/P&gt;
&lt;P&gt;There is nothing much to be worked on Job 2, just populate the value that is extracted from the drop down value of job1.&lt;/P&gt;
&lt;P&gt;Can you share your ideas please?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 03:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-single-job-multiple-times-based-on-context-variables/m-p/2297351#M69938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-10T03:28:28Z</dc:date>
    </item>
  </channel>
</rss>

