Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
XJ_1630
Contributor III
Contributor III

tContextLoad DOES NOT WORK inside a JobLet

hi,

i created a JobLet to handle loading of context and calculation/derivation of variables for Jobs

It seemed like a good idea ...

Unfortunately, it does not work.

the context variables exist in a context defined in the project and used in the JobLet and Master Jobs - and Child Jobs

values of variables loaded from a flat-file and/or database

other variable values are calculated in tJava components

however, the variables values are NULL in the Master Job

A tContextDump shows the context variables to be blank

Has anyone come across with this type of behavior ?

what are the correct way of loading context variables using a JobLet ?

thanks

Labels (3)
3 Replies
Anonymous
Not applicable

Hello,

A Joblet can access the context variables of the main Job, as it is a part of the main Job.

Which talend product and build version are you using?

Could you please post your job setting screenshots here which will be helpful for us to address your issue?

Best regards

Sabrina

 

XJ_1630
Contributor III
Contributor III
Author

thanks @Xiaodi Shi​ 

 

unfortunately, i can not share details of these jobs/joblets.

 

it seems to be a problem with the tContextDump.

 

in tPreJob, the JobLet calculates/loads VARIABLES of a context group

 

in Main body of job, the tContextDump shows these variables with their values as default (blanks)

 

however, a tJava printing the values of the variables shows the VARIABLES with the correct values as per calculations.

 

created and tested on Talend Enterprise 6.3.1.20161216_1026

 

Could you please confirm this behavior?

 

Thanks

Anonymous
Not applicable

Hello,

Sorry for late.

Please raise this with support team? Our colleagues from support team will be able to recreate your environment and identify what is causing this.

Best regards

Sabrina