Load context variables from a text file

One Star

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.
Seven Stars

Re: Load context variables from a text file

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.
One Star

Re: Load context variables from a text file

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?
Seven Stars

Re: Load context variables from a text file

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.