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: 
Anonymous
Not applicable

Load context variables from a text file

I am still relatively new to Talend.
I am trying to dump context variables from a talend job to a text file, edit the values in the text file and then
load the updated context variables from the text file back into the job. I have tried to follow the documentation, but am still confused as to the steps required to do this.
Can anyone provide a brief overview of the steps required?
Thank you.
Labels (2)
3 Replies
alevy
Specialist
Specialist

I assume you want to edit the values in the file manually.
Dump them with tContextDump to your favoured output file type: Delimited, Properties, Positional, XML, whatever.
Reload them with the corresponding input file type to tContextLoad.
Anonymous
Not applicable
Author

I did a dump using tContextDump to a text file. I then edited one of the values in the file.
However, when I did the reload using tContextLoad, the job shows that it loaded the file, but the value in the Contexts tab was unchanged (i.e., the same as before I edited the text file).
Am I missing something?
alevy
Specialist
Specialist

The values in the context tab are always those you typed in to the tab. Loading from the file will change the values of the context variables to those in the file only for the duration of that run of the job. Easy enough to show by dumping them to tLogRow after loading from the file.