#1 2012-04-27 03:12:46

lshannon
Member
Registered: 2011-01-20
Posts: 24

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

Offline

#2 2012-04-27 04:51:37

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: tMysqlRow and tForEach

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2012-04-27 07:25:52

lshannon
Member
Registered: 2011-01-20
Posts: 24

Re: tMysqlRow and tForEach

I did try restarting Talend. On Windows 7 using integration suite 4.1.2

Offline

#4 2012-04-27 13:06:47

brandon_stubbs93
Member
Company: BOS Solutions
Registered: 2011-01-16
Posts: 166
Website

Re: tMysqlRow and tForEach

If the reason for this is to add multiple queries see this thread I wrote a while ago:
http://www.talendforge.org/forum/viewto … 061#p56061

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

Offline

Board footer

Powered by FluxBB