Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
JSey
Creator
Creator

CSV to MySQL DB not updating

Hi

 

I have a tfileoutputdelimited that creates a csv file, which goes to a tmap, then goes to a tdboutput which goes to a mysql db.  When I run the job, it says 1 row is being sent to the mysql db, but when I query the mysql db the row is not being updated.

 

From the tfileoutdelimited schema, the id column (sql_id) is set as key.

 

Job design:

0683p000009M9y2.jpg

 

Tmap:

0683p000009M9y7.jpg

I'm positive the slight transformation for ID is fine, as the output matches the value in the id in the sql db.

 

tdboutput:

0683p000009M9yC.jpg

 

Schema:

0683p000009M9yH.jpg

 

Any suggestions would be appreciated, thanks.

Labels (3)
1 Solution

Accepted Solutions
nivedhitha
Creator III
Creator III

@JSey , i see that you are using a connection component. Is the commit option checked?

Also Relational.ISNULL(columnname) works better than columname==null

View solution in original post

2 Replies
nivedhitha
Creator III
Creator III

@JSey , i see that you are using a connection component. Is the commit option checked?

Also Relational.ISNULL(columnname) works better than columname==null

JSey
Creator
Creator
Author

Hi Nive

 

Thank you for the suggestion.  Do you mean on the tDBconnection, "Auto commit" should be set to true?

 

PS.  Perfect, that worked, thanks!