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: 
Jacco_De_Zwart
Creator
Creator

Unexpected behavior job in TMC

Hi there,

I have deployed a job that calls several sub-jobs. Like this :

0695b00000YEaHCAA1.png

In Studio this works fine. The context variables that I have declared and provided with values, are used whithout any problem.

When running the same job from TMC, having initialized the connections, like this:

0695b00000YEaHRAA1.png

filled the parameters for the job, I get an error message like this :

0695b00000YEaHWAA1.png

This is unexpected behavior for me. Like I said, in Studio it runs fine. When I deploy the first job separate, configure it in TMC and run the task, there is no problem. So why doen't this work from the main job which starts the sub-jobs ?

Hope my story makes sense and you guys have an answer.

Thanks in advance.

Jacco

Labels (6)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Select this "Transmit whole context" check box to get all the context variables from the parent Job. Deselect it to get all the context variables from the child Job.

If a Job containing connection parameters is to be called by another Job via the tRunJob component, make sure that:

  • the connection parameters are defined in the parent Job as well.
  • the tRunJob in the parent Job has the Transmit whole context check box selected.

If you can't select this option there is indeed a solution, here is the "Use dynamic context for subJob" option in advanced settings of tRunJob. Select this option to specify a context variable group for the subJob to be called. After selecting this option, enter a variable name in the text field to the right of this option. Note that the value of the variable needs to be the name of an existing context variable group.

Here is the related component reference about tRunjob.

Hope it helps.

https://help.talend.com/r/en-US/8.0/system/trunjob-standard-properties

Best regards

Sabrina

 

View solution in original post

3 Replies
Anonymous
Not applicable

Hello,

We suspect there might be something wrong with your Context Variable when publish your job in TMC.

Please make sure that you did correct configuration in the TMC connections.

Could you please post your Context variable setting screenshot here and mask your sensitive data?

 

Best regards

Sabrina

Jacco_De_Zwart
Creator
Creator
Author

@Xiaodi Shi​ thanks for responding!

 

When I looked again at the job-configuration and it appears the I didn't check the option "Transmit whole context". After setting this checkbox, it works !

0695b00000YF5P7AAL.pngBut to my understanding, every job has it's own context variables and 'Default context environment'. So when calling a sub-job from a main-job, the sub-jobs should use that context (and it's variables) set in that sub-job. In that way, setting the checkbox should not be necessary.

 

Perhaps my understanding is wrong . . . .

Anonymous
Not applicable

Hello,

Select this "Transmit whole context" check box to get all the context variables from the parent Job. Deselect it to get all the context variables from the child Job.

If a Job containing connection parameters is to be called by another Job via the tRunJob component, make sure that:

  • the connection parameters are defined in the parent Job as well.
  • the tRunJob in the parent Job has the Transmit whole context check box selected.

If you can't select this option there is indeed a solution, here is the "Use dynamic context for subJob" option in advanced settings of tRunJob. Select this option to specify a context variable group for the subJob to be called. After selecting this option, enter a variable name in the text field to the right of this option. Note that the value of the variable needs to be the name of an existing context variable group.

Here is the related component reference about tRunjob.

Hope it helps.

https://help.talend.com/r/en-US/8.0/system/trunjob-standard-properties

Best regards

Sabrina