[resolved] tFlowToIterate Issue with Variable

Five Stars

[resolved] tFlowToIterate Issue with Variable

Hi,
I am trying to create a job which will pass data from Salesforce into another system through an API.
After some difficulty, i have a SalesforceInput component which will grab the data and correctly pass the data into either a tLogRow or DelimitedFile.
However, my API component is a subjob, so when i try to pass the data to a tFlowToIterate to then pass into the child job, i now get  the following error: "contact cannot be resolved to a variable"
Contact is the module I am using from Salesforce.
Job is a follows:
tSalesforceInput ---> tFlowToIterate ---> tRunJob
Data is pushed into Contexts which are then called into tFixedFlowInput's in the subjob which push the data into a Restful API.
Can anyone suggest why i am getting this error?
Thanks.

Accepted Solutions
Five Stars

Re: [resolved] tFlowToIterate Issue with Variable

Error was due to a typo in one of the context.{name} statements.

All Replies
Five Stars

Re: [resolved] tFlowToIterate Issue with Variable

Error was due to a typo in one of the context.{name} statements.
Five Stars

Re: [resolved] tFlowToIterate Issue with Variable

It is not clear exactly what you're doing; but it sounds like you may referring to "contact" as a Java variable, maybe when passing data to tRunJob?
To correctly refer to data from tFlowToIterate, it would be something like: -
((String) globalMap.get("row.Id"))

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog