Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have talend job that gets data from arest API and inserts into MySQL DB. WHen I run the job from Talend Studio manually, it inserts data into the db but when I run the job from command line or task scheduler, it inserts data but the db goes blank after the run is complete. Not able to understand why is this happening?
Can someone please help
You will need to give a bit more information here. Can you show the job design to start with?
Sure..I have taken snapshots of the design and attached it in the word. When I manually run it, it completes the run and inserts data into db. After the run I get a message in red the "JSON string cannot be null" but no error on any component or error message.
Hello,
Could you please select the "Die on error" check box in the tDBOutput in your job to see if there is any error message printed on console?
Best regards
Sabrina
Are you saying that you see the data has been inserted into the database, but is then removed?
"it inserts data but the db goes blank after the run is complete"
Yeah...When the job runs from task scheduler or cmd, I can refresh my database and see that the job is writing the data into db..but once the run is complete and I refresh the db there is no data in it.
I selected the Die on Error checkbox and ran the job again manually. I don't get any error component shown but gets something like this displayed
When I run manually for talend studio, the console displays like the below image, after the run. I don't get any other error message
I don't see a tDBCommit component in your job. I may have missed it. In your tDBConnection component, do you have it set to auto commit in the advanced settings?
Yes, I have set it to Auto Commit