Hello everyone
I have a Windows .BAT batch generated by Tqalend DI 6.4.1 file which I run interactively from Command Shell DOS windows and it works.
This is on Windows 10 latest version.
The Talend jobs take several minutes and up to 30 min to run.
When I schedule the same batch file in Windows Task Scheduler the task stars OK but it immediately returns code 0 (i.e. success) and finishes.
The Talend job inside that batch file does not fun at all (i.e. completes immediately, returning success to the .BAT file).
If there is an error returned from the JAR file I can not see it inside scheduler, it gets swallowed and reported as success back to Windows.
Googling around - the only issue I found was due to mapped disk drive letters and network drives using \\server\share\folder.
To the best of my knowledge my package only use C: drive.
It also connects to HTTP, uses tREST, uses AWS cloud.
I put some debugging code in BAT file which creates a local folder after the JAR file is run just to see if the batch file runs until the last line.
It certainly does run, the folder (MKDIR command) gets created immediately after Talend JAR file is run.
So I am certain that the batch file runs but the Talend JAR file exits immediately.
The PATH is correctly set up, because I put compile and run a Hello World Java program immediately before the Talend JAR file and it compiles, creates .class file successfully.
Have anyone encountered this problem? Any ideas what could be the problem?
thanks