<?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: [resolved] Talend ETL Job Export as Batch file not working in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297601#M70158</link>
    <description>Hi sunnykokane
&lt;BR /&gt;Several global vairables are defined on this component, 
&lt;BR /&gt;the full file name is : ((String)globalMap.get("tFileChooser_1_FULL_FILE_NAME"))
&lt;BR /&gt;the file is : ((String)globalMap.get("tFileChooser_1_FILE_NAME"))
&lt;BR /&gt;the path is : ((String)globalMap.get("tFileChooser_1_PATH_NAME"))
&lt;BR /&gt;globalMap on file extention choosed: ((String)globalMap.get("tFileChooser_1_FILE_EXT"))
&lt;BR /&gt;So, you can pass the file path to tFileInputDelimited or other components by using this global variable after tFileChooser.
&lt;BR /&gt;((String)globalMap.get("tFileChooser_1_PATH_NAME"))
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 19 Jun 2014 08:09:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-19T08:09:57Z</dc:date>
    <item>
      <title>[resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297592#M70149</link>
      <description>Hello,&lt;BR /&gt;I have created one ETL job and when I run it through Talend then it works. The ETL jobs first asks for file to be selected. I have a context variable of type 'File' so when I run job as ETL then it pops up a dialog box which ask to select/browse for file. Now I have exported this ETL job as batch script by following steps from below link,&lt;BR /&gt;&lt;A href="https://help.talend.com/search/all?query=How+to+build+Jobs&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=How+to+build+Jobs&amp;amp;content-lang=en&lt;/A&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="https://help.talend.com/search/all?query=Exporting+a+Job+script+and+executing+it+outside+of+Talend+Studio&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Exporting+a+Job+script+and+executing+it+outside+of+Talend+Studio&amp;amp;content-lang=en&lt;/A&gt;&lt;BR /&gt;after exporting when I run the jobName_run.bat file then it does not ask me for file selection i.e. the pop-up to select for file does not come. &lt;BR /&gt;can you please guide me on this.&lt;BR /&gt;thanks in advance.</description>
      <pubDate>Mon, 16 Jun 2014 02:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297592#M70149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-16T02:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297593#M70150</link>
      <description>Hi 
&lt;BR /&gt;A custom component called 
&lt;A href="http://www.talendforge.org/exchange/index.php?eid=167&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" target="_blank" rel="nofollow noopener noreferrer"&gt;tFileChooser&lt;/A&gt; shared by MSSA on Talend exhcange can be used to select a file on-the-fly. Refer to this KB article on Talend Help Center to leanr how to install a custom component into Talend Studio.
&lt;BR /&gt;
&lt;A href="http://www.talendforge.org/exchange/index.php?eid=167&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/index.php?eid=167&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1&lt;/A&gt;
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 16 Jun 2014 02:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297593#M70150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-16T02:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297594#M70151</link>
      <description>Hi,&lt;BR /&gt;I have same issue here with some of my jobs. I can run them successfully from my local machine and accessing to the data in the production servers, but when I export the ETL job (Build Job option) and I copy it to the production server, the job seems to start but data never is being inserted in the target tables and job never ends. Note that in my local i can run the entire job in a matter of 4/5 minutes. Target tables are located in Redshift.&lt;BR /&gt;Also I dont know how I can start debugging this using Talend from command line.&lt;BR /&gt;Some help will be appreciated.&lt;BR /&gt;Thanks!&lt;BR /&gt;Oscar&lt;BR /&gt; when exported to shell script is also not working from my local.</description>
      <pubDate>Wed, 18 Jun 2014 11:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297594#M70151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T11:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297595#M70152</link>
      <description>I have the same problem, try to use logcatcher to get the log of the error.&lt;BR /&gt;If you use  TOS_DI-win32-x86 (32bits), I think talend will export your job as a 64 bits job and it may cause problems.</description>
      <pubDate>Wed, 18 Jun 2014 12:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297595#M70152</guid>
      <dc:creator>Jcs19</dc:creator>
      <dc:date>2014-06-18T12:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297596#M70153</link>
      <description>Hi,
&lt;BR /&gt;I just tried using the logcatcher but nothing is being captured in the Log. Note that the job never fails, just keeps running forever. Also I tried adding the -Xdebug parameter in the shell script and nothing in being printed.
&lt;BR /&gt;My local is a mac and server where Im running production is Linux.</description>
      <pubDate>Wed, 18 Jun 2014 15:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297596#M70153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T15:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297597#M70154</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;I just tried using the logcatcher but nothing is being captured in the Log. Note that the job never fails, just keeps running forever. Also I tried adding the -Xdebug parameter in the shell script and nothing in being printed.&lt;BR /&gt;My local is a mac and server where Im running production is Linux.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You need to use tWarn and tDie to record logs : 
&lt;BR /&gt; 
&lt;A href="http://www.hostingpics.net/viewer.php?id=29980848d.png" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/A&gt; 
&lt;BR /&gt;I use this to make a log file to know when my job works or not 
&lt;BR /&gt;Change twarn message to : "Success"</description>
      <pubDate>Wed, 18 Jun 2014 15:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297597#M70154</guid>
      <dc:creator>Jcs19</dc:creator>
      <dc:date>2014-06-18T15:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297598#M70155</link>
      <description>This is what you should get in your CSV after executing your batch file:
&lt;BR /&gt;
&lt;A href="http://www.hostingpics.net/viewer" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/A&gt;</description>
      <pubDate>Wed, 18 Jun 2014 15:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297598#M70155</guid>
      <dc:creator>Jcs19</dc:creator>
      <dc:date>2014-06-18T15:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297599#M70156</link>
      <description>Thanks Shong. 
&lt;BR /&gt;Now it is providing prompt for choosing file but how can I pass the file location ?? 
&lt;BR /&gt;My previous job (without tFileChooser) was a tFileInputDelimited component and a tJava component. 
&lt;BR /&gt;I use to read file location/file name in a context variable and use to pass that context variable to tJava component , which use to call another java program. My requirement was to tun a job which will ask for file to choose and chosen file location will be passed to another java program. So I created a context variable named "context.WDTF_FILE_LOCATION" of type "File" while creating context file and used that context variable in tFileInputDelimited component. Now when I run job, it ask to choose file and pass file location to third party java program. But problem was when I export this job as batch script and when I run then jobName_run.bat file then it does not ask me for file selection. So how can I use this tFileChooser to catch file location and pass the file location ?? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEOn.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145842iE919C60214FFF576/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEOn.jpg" alt="0683p000009MEOn.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEPG.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151840i25E103F57B2BC73D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEPG.jpg" alt="0683p000009MEPG.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 Jun 2014 03:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297599#M70156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-19T03:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297600#M70157</link>
      <description>Catching of file location as context variable and passing to another java program. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEMh.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136040i180FFB78EA06625F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEMh.jpg" alt="0683p000009MEMh.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 Jun 2014 03:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297600#M70157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-19T03:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297601#M70158</link>
      <description>Hi sunnykokane
&lt;BR /&gt;Several global vairables are defined on this component, 
&lt;BR /&gt;the full file name is : ((String)globalMap.get("tFileChooser_1_FULL_FILE_NAME"))
&lt;BR /&gt;the file is : ((String)globalMap.get("tFileChooser_1_FILE_NAME"))
&lt;BR /&gt;the path is : ((String)globalMap.get("tFileChooser_1_PATH_NAME"))
&lt;BR /&gt;globalMap on file extention choosed: ((String)globalMap.get("tFileChooser_1_FILE_EXT"))
&lt;BR /&gt;So, you can pass the file path to tFileInputDelimited or other components by using this global variable after tFileChooser.
&lt;BR /&gt;((String)globalMap.get("tFileChooser_1_PATH_NAME"))
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 19 Jun 2014 08:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297601#M70158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-19T08:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297602#M70159</link>
      <description>thanks Shong.
&lt;BR /&gt;Its working now. 
&lt;BR /&gt;Its amazing that Talend is so powerful that it can provide solution to any problem.
&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 20 Jun 2014 00:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297602#M70159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-20T00:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Talend ETL Job Export as Batch file not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297603#M70160</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;thanks Shong.&lt;BR /&gt;Its working now. &lt;BR /&gt;Its amazing that Talend is so powerful that it can provide solution to any problem.&lt;BR /&gt;Thanks&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Glad to see you get it working now, thanks for your feedback.
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 20 Jun 2014 09:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Talend-ETL-Job-Export-as-Batch-file-not-working/m-p/2297603#M70160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-20T09:55:53Z</dc:date>
    </item>
  </channel>
</rss>

