Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
SGaddipati1646839785
Contributor
Contributor

Windows Task scheduler does not write data into the MySQL db

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

Labels (2)
11 Replies
Anonymous
Not applicable

You will need to give a bit more information here. Can you show the job design to start with?

SGaddipati1646839785
Contributor
Contributor
Author

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.

Anonymous
Not applicable

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

Anonymous
Not applicable

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"

SGaddipati1646839785
Contributor
Contributor
Author

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.

 

SGaddipati1646839785
Contributor
Contributor
Author

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

0695b00000PK23WAAT.png

SGaddipati1646839785
Contributor
Contributor
Author

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

 

0695b00000PK23qAAD.png

Anonymous
Not applicable

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?

SGaddipati1646839785
Contributor
Contributor
Author

Yes, I have set it to Auto Commit