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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMysqlRow and tForEach

I am trying to join a tForEach to a tMysqlRow, however when I link it with Iterate, I get the error "Iterate cannot be resolved" if I try it with a 'Run If' I get the error "If cannot be resolved". No matter how I try and join the components it seems I get the same error.
Can I not use a tMySqlRow with a Foreach?
Thanks,
Luke
Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi
Yes, you can link tForEach to tMysqlRow with iterate, for example:
tForEach--iterate--tMysqlRow
Which OS? Which version? Did you try to restart Talend studio?

Best regards
Shong
Anonymous
Not applicable
Author

I did try restarting Talend. On Windows 7 using integration suite 4.1.2
Anonymous
Not applicable
Author

If the reason for this is to add multiple queries see this thread I wrote a while ago:
https://community.talend.com/t5/Design-and-Development/cHTTP-and-cMQConnectionFactory-in-one-route/t...
However I do this a new way now:
if you are using tMySQlconnect then add this in the advanced settings additional JDBC parameters:
allowMultiQueries=true
or on the tMysqlRow in advanced settings itself.
you will then be able to have multiple queries:
"
UPDATE table1 ... ;
UPDATE table2 ... ;
UPDATE table3 ... ;
"
Regards,
Brandon