<?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: throw Exit code on failure in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245756#M31501</link>
    <description>&lt;P&gt;no working even after unchecked the run child job as separate instance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;D:\JENKINS-WS\Cloud_Insights\workspace\E2CI-DB-ORACLE-SHA-INTEGRATION\TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI&amp;gt;java -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/activation.jar;../lib/dom4j-1.6.1.jar;../lib/filecopy.jar;../lib/jakarta-oro-2.0.8.jar;../lib/jtds-1.3.1-patch.jar;../lib/log4j-1.2.16.jar;../lib/mail-1.4.jar;../lib/talend_file_enhanced_20070724.jar;../lib/talendcsv.jar;trigger_load_oracle_sha_db_to_e2ci_0_1.jar;load_oracle_sha_db_stg_to_dim_0_1.jar;load_oracle_sha_db_csv_to_stg_0_1.jar;load_oracle_sha_db_stg_to_fct_0_1.jar;load_oracle_sha_db_dim_to_lu_0_1.jar; e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI --context=DEV  
Exception in component tFileList_1 (LOAD_ORACLE_SHA_DB_CSV_TO_STG)
java.lang.RuntimeException: No file found in directory \\prod4271\E2CI-DBOPS\IN
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.tFileList_1Process(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:1421)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJobInTOS(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5292)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJob(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5139)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.tRunJob_1Process(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:594)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.runJobInTOS(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:3066)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.main(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:2905)
Exception in component tRunJob_1 (TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI)
java.lang.RuntimeException: Child job running failed.
java.lang.RuntimeException: No file found in directory \\prod4271\E2CI-DBOPS\IN
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.tFileList_1Process(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:1421)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJobInTOS(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5292)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJob(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5139)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.tRunJob_1Process(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:594)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.runJobInTOS(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:3066)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.main(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:2905)

	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.tRunJob_1Process(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:611)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.runJobInTOS(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:3066)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.main(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:2905)

D:\JENKINS-WS\Cloud_Insights\workspace\E2CI-DB-ORACLE-SHA-INTEGRATION\TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI&amp;gt;if errorlevel 1 (
echo existing with status -1  
 exit /b -1 
) 
Finished: SUCCESS&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 08:36:00 GMT</pubDate>
    <dc:creator>amtkmr1990</dc:creator>
    <dc:date>2019-07-31T08:36:00Z</dc:date>
    <item>
      <title>throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245744#M31489</link>
      <description>&lt;P&gt;I have configured a job with each component die on error. I am calling this job .bat build through Jenkins job .&lt;/P&gt;
&lt;P&gt;When the job fails the jenkins still shows it as success.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way in talend to throw exit code -1 while .bat is called and when it fails.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any valuable direction will be very helpfull.&lt;/P&gt;
&lt;P&gt;Thanks You&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245744#M31489</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-23T12:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245745#M31490</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you might try to modify the .bat in order to return -1 in case of error&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;add this after the java command and the .bat should return -1 if the Talend job returns 1 or more (which is usually returns when something get wrong)&lt;/P&gt; 
&lt;PRE&gt;if errorlevel 1 exit /b -1&lt;/PRE&gt; 
&lt;P&gt;You can also modify directly the .bat model within the Studio in order to apply this modification everytime a new job is build.&lt;/P&gt; 
&lt;P&gt;The .bat model is located in the project properties (build &amp;gt; shell configuration or something similar).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 17:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245745#M31490</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-23T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245746#M31491</link>
      <description>&lt;P&gt;Should i add after&amp;nbsp;%* or before ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%~d0&lt;BR /&gt;cd %~dp0&lt;BR /&gt;java -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/activation.jar;../lib/dom4j-1.6.1.jar;../lib/log4j-1.2.16.jar;../lib/mail-1.4.jar;trigger_load_oracle_chg_db_to_e2ci_0_1.jar;load_oracle_chg_db_csv_to_stg_0_1.jar;load_oracle_chg_db_stg_to_fct_0_1.jar;load_oracle_chg_db_dim_to_lu_0_1.jar;load_oracle_chg_db_stg_to_dim_0_1.jar; e2ci_db_integration.trigger_load_oracle_chg_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI --context=DEV %*&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 06:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245746#M31491</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-24T06:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245747#M31492</link>
      <description>&lt;P&gt;You should add it on a new line after :&lt;/P&gt;&lt;PRE&gt;%~d0
cd %~dp0
java -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/activation.jar;../lib/dom4j-1.6.1.jar;../lib/log4j-1.2.16.jar;../lib/mail-1.4.jar;trigger_load_oracle_chg_db_to_e2ci_0_1.jar;load_oracle_chg_db_csv_to_stg_0_1.jar;load_oracle_chg_db_stg_to_fct_0_1.jar;load_oracle_chg_db_dim_to_lu_0_1.jar;load_oracle_chg_db_stg_to_dim_0_1.jar; e2ci_db_integration.trigger_load_oracle_chg_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI --context=DEV %*

if errorlevel 1 exit /b -1&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jul 2019 09:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245747#M31492</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-24T09:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245748#M31493</link>
      <description>&lt;P&gt;Ok, will update and let you know&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 09:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245748#M31493</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-24T09:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245749#M31494</link>
      <description>It did not work. Exception in component tRunJob_1 (TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI) java.lang.RuntimeException: Child job returns 1. It doesn't terminate normally. Exception in component tFileList_1 (LOAD_ORACLE_CHG_DB_CSV_TO_STG) java.lang.RuntimeException: No file found in directory \\prod4271\E2CI-DBOPS\IN at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.tFileList_1Process(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:1421) at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.runJobInTOS(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:5292) at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.main(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:5131) at e2ci_db_integration.trigger_load_oracle_chg_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI.tRunJob_1Process(TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI.java:736) at e2ci_db_integration.trigger_load_oracle_chg_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI.runJobInTOS(TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI.java:3192) at e2ci_db_integration.trigger_load_oracle_chg_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI.main(TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI.java:3031) D:\JENKINS-WS\Cloud_Insights\workspace\E2CI-DB-ORACLE-CHG-INTEGRATION\TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI&amp;gt;if errorlevel 1 exit /b -1 Triggering a new build of E2CI-DB-ORACLE-SHA-INTEGRATION Finished: SUCCESS</description>
      <pubDate>Wed, 24 Jul 2019 10:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245749#M31494</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-24T10:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245750#M31495</link>
      <description>&lt;P&gt;You can use this to check that you correctly process the exit part :&lt;/P&gt;
&lt;PRE&gt;if errorlevel 1 (
	echo existing with status -1
	exit /b -1
)&lt;/PRE&gt;
&lt;P&gt;If the log correctly displays "existing with status -1", the return code should be -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 11:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245750#M31495</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-24T11:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245751#M31496</link>
      <description>&lt;P&gt;It doesn't show the display. I guess when the exception occurs the bat file exits without running the next line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if errorlevel 1 (
	echo existing with status -1
	exit /b -1
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245751#M31496</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-25T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245752#M31497</link>
      <description>&lt;P&gt;do i need to run the process in single process or multiple tread would work ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245752#M31497</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-25T09:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245753#M31498</link>
      <description>&lt;P&gt;The "use a different process" option is not really a multithread (unless I'm mistaken).&lt;/P&gt;&lt;P&gt;It simply start a new Java process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It shouldn't matter anyway but I don't think you should tick this option if you have no use to do so.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 10:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245753#M31498</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-25T10:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245754#M31499</link>
      <description>&lt;P&gt;ok let me check by unchecking that option&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 10:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245754#M31499</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-25T10:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245755#M31500</link>
      <description>&lt;P&gt;I am getting 1 as display&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROD&lt;/P&gt;&lt;P&gt;Child job returns 1. It doesn't terminate normally.&lt;/P&gt;&lt;P&gt;Exception in component tFileList_1 (LOAD_ORACLE_CHG_DB_CSV_TO_STG)&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: No file found in directory \\prod4271\E2CI-DBOPS\IN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.tFileList_1Process(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:1421)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.runJobInTOS(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:5292)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.main(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:5131)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;Exception in component tFileList_1 (LOAD_ORACLE_CHG_DB_CSV_TO_STG)&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: No file found in directory \\prod4271\E2CI-DBOPS\IN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.tFileList_1Process(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:1421)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.runJobInTOS(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:5292)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at e2ci_db_integration.load_oracle_chg_db_csv_to_stg_0_1.LOAD_ORACLE_CHG_DB_CSV_TO_STG.main(LOAD_ORACLE_CHG_DB_CSV_TO_STG.java:5131)&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 08:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245755#M31500</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-31T08:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245756#M31501</link>
      <description>&lt;P&gt;no working even after unchecked the run child job as separate instance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;D:\JENKINS-WS\Cloud_Insights\workspace\E2CI-DB-ORACLE-SHA-INTEGRATION\TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI&amp;gt;java -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/activation.jar;../lib/dom4j-1.6.1.jar;../lib/filecopy.jar;../lib/jakarta-oro-2.0.8.jar;../lib/jtds-1.3.1-patch.jar;../lib/log4j-1.2.16.jar;../lib/mail-1.4.jar;../lib/talend_file_enhanced_20070724.jar;../lib/talendcsv.jar;trigger_load_oracle_sha_db_to_e2ci_0_1.jar;load_oracle_sha_db_stg_to_dim_0_1.jar;load_oracle_sha_db_csv_to_stg_0_1.jar;load_oracle_sha_db_stg_to_fct_0_1.jar;load_oracle_sha_db_dim_to_lu_0_1.jar; e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI --context=DEV  
Exception in component tFileList_1 (LOAD_ORACLE_SHA_DB_CSV_TO_STG)
java.lang.RuntimeException: No file found in directory \\prod4271\E2CI-DBOPS\IN
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.tFileList_1Process(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:1421)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJobInTOS(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5292)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJob(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5139)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.tRunJob_1Process(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:594)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.runJobInTOS(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:3066)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.main(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:2905)
Exception in component tRunJob_1 (TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI)
java.lang.RuntimeException: Child job running failed.
java.lang.RuntimeException: No file found in directory \\prod4271\E2CI-DBOPS\IN
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.tFileList_1Process(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:1421)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJobInTOS(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5292)
	at e2ci_db_integration.load_oracle_sha_db_csv_to_stg_0_1.LOAD_ORACLE_SHA_DB_CSV_TO_STG.runJob(LOAD_ORACLE_SHA_DB_CSV_TO_STG.java:5139)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.tRunJob_1Process(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:594)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.runJobInTOS(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:3066)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.main(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:2905)

	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.tRunJob_1Process(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:611)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.runJobInTOS(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:3066)
	at e2ci_db_integration.trigger_load_oracle_sha_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.main(TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI.java:2905)

D:\JENKINS-WS\Cloud_Insights\workspace\E2CI-DB-ORACLE-SHA-INTEGRATION\TRIGGER_LOAD_ORACLE_SHA_DB_TO_E2CI&amp;gt;if errorlevel 1 (
echo existing with status -1  
 exit /b -1 
) 
Finished: SUCCESS&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 08:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245756#M31501</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-31T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245757#M31502</link>
      <description>&lt;P&gt;attached image will give you clear idea&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwBh"&gt;5.png&lt;/A&gt;</description>
      <pubDate>Wed, 31 Jul 2019 08:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245757#M31502</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-31T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245758#M31503</link>
      <description>&lt;P&gt;How to capture child exit code of failure in parent job (trunjob) ?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 08:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245758#M31503</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-07-31T08:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245759#M31504</link>
      <description>&lt;P&gt;You may use something like&lt;/P&gt;&lt;PRE&gt;((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))&lt;/PRE&gt;&lt;P&gt;Do you have a tPostJob?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 16:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245759#M31504</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-08-06T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245760#M31505</link>
      <description>&lt;P&gt;yeah i am using this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Which i have shared in screen shot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No i am not using tpostjob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggestion further&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245760#M31505</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-08-07T08:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245761#M31506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please remove the if() block and add echo %errorlevel% after the .bat line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have something like this:&lt;/P&gt;
&lt;PRE&gt;%~d0
cd %~dp0
java -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/activation.jar;../lib/dom4j-1.6.1.jar;../lib/log4j-1.2.16.jar;../lib/mail-1.4.jar;trigger_load_oracle_chg_db_to_e2ci_0_1.jar;load_oracle_chg_db_csv_to_stg_0_1.jar;load_oracle_chg_db_stg_to_fct_0_1.jar;load_oracle_chg_db_dim_to_lu_0_1.jar;load_oracle_chg_db_stg_to_dim_0_1.jar; e2ci_db_integration.trigger_load_oracle_chg_db_to_e2ci_0_1.TRIGGER_LOAD_ORACLE_CHG_DB_TO_E2CI --context=DEV %*
echo Error: %errorlevel%&lt;/PRE&gt;
&lt;P&gt;It should display the return code from the java command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245761#M31506</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-08-07T08:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245762#M31507</link>
      <description>&lt;P&gt;I haved attached those output in 4.png and 5.png images.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is parent job is exit without error and child job is exiting with error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i am struggling to make parent job fail or give exit code error when child job fails&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245762#M31507</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2019-08-07T10:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: throw Exit code on failure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245763#M31508</link>
      <description>&lt;P&gt;I didn't see you were using a tRunJob and that the failing job was the subjob.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Did you either tick &lt;EM&gt;"Use dynamic job"&lt;/EM&gt; or &lt;EM&gt;"Use an independent process to run subjob"&lt;/EM&gt; option in the tRunJob?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If yes, it might be the source of your problem. With these options, Talend uses Thread to run the subjob and seems to fail to manage correctly subjob errors.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Double check that you &lt;STRONG&gt;really&lt;/STRONG&gt; need that! If not, untick the options and you should be fine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you have to keep them, try the following solutions: each solution will work on some configuration (the last one should always work).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First try to simply tick the&amp;nbsp;&lt;EM&gt;"Die on child error"&amp;nbsp;&lt;/EM&gt;checkbox.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If that doesn't work, you may try to add a tDie component after a "OnComponentError" link from your tRunJob (tRunJob ==OnComponentError==&amp;gt; tDie).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Final solution, you may add a tDie after a "if" link from your tRunJob (tRunJob ==if==&amp;gt; tDie). The if condition will have the following value for example :&lt;/P&gt; 
&lt;PRE&gt;((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE")) != 0&lt;/PRE&gt; 
&lt;P&gt;(adapt tRunJob_1 to your tRunJob component number)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 14:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/throw-Exit-code-on-failure/m-p/2245763#M31508</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-08-07T14:48:23Z</dc:date>
    </item>
  </channel>
</rss>

