Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Konstantin_Lisyanskiy
Contributor
Contributor

Using context variables in tFileInputJson Mapping

Hello people! Please, help me.

I have two identical jobs which use the tFileInputJson component. One job uses strings in the Json query (Mapping section). Like "[0]", "[1]", etc.

The other job uses context variables that I load from an Excel file. So the mapping looks like context.n_order_id, context.n_order_nbr, etc.

This is the only distinction between the two jobs.

Now, when I run the first one (with constant strings as Json query in the Mapping section), I get the JSON file parsed correctly and exported to a csv file. When I run the second job, I get a file full of empty records.

So, what I am doing wrong?

Thanks in advance!

Labels (3)
2 Replies
houssem_B
Contributor III
Contributor III

check if your context variables get values from the excel file

Konstantin_Lisyanskiy
Contributor
Contributor
Author

Well, they do. I used TLogView to check.