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

[resolved] tContextLoad fills null values

Hi guys,
I was like 5 hours googling and searching that on forums (ask is the last option):

I have a context where I have a few variables and I want to fill them with a  properties file when job runs.
I have got a "tFileInputDelimiter" joined to a "tContextLoad" with the "Print operations" checkbox checked for debug reasons. Where I run the job the execution console shows like the subjob worked and the variables filled, but, when I use anyone of them, it returns a null value.
I have got a tJava to show the value with:

System.out.println((globalMap.get("NUM_CONNS")));


I am a very newbie in this tool and that can be a newbie problem too, but I was a lot of hours searching for it.
I am using Talend 5.4.1 version.
Hope you can help me.
Thank you.

Labels (2)
12 Replies
Anonymous
Not applicable
Author

Ok, the variables don't exist in this job, they're stored in the "Contexts" tab > Inside the context.
That's the problem, I fill the context variables but I can't use it later because they not exist in my job, so I need to import the variables before any action.
imgur.com/SZSh8v3
Maybe that?

Did you know how can I do it?
Anonymous
Not applicable
Author

You need to provide some screenshots.
Ig you have a context variable declared as NUM_CONNS and you can see it in the Job's Context tab, then you should be able to reference it as context.NUM_CONNS.
You need to show a screenshot of the Context tab, and where you are referencing the variable.
Anonymous
Not applicable
Author

Ok, that definitely worked.
I just imported all the variables to the job and now the java worked perfect.

Thank you for your patience and constance.
Thank you very much.