Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
cdhemant
Contributor
Contributor

Issue when setting custom value - in case of parent-child job scenario -TAC

Hello

 

We have scenario in which there is Parent and Child jobs created. We are executing child job from parent job using tRunJob component.

However when we set “Custom Value” parameters on TAC portal, then all the context parameters are null and if we set “Original Values” on TAC then the job works perfectly.

We have tried the option "Transmit Whole Context" still the values are null.

 

Error log (when we set “Custom Value” parameters on TAC portal)

 

 

[INFO ]: git.parentjob_0_8.ParentJob - TalendJob: 'ParentJob' - Start.

[statistics] connecting to socket on port 10317

[statistics] connected

[FATAL]: git.parentjob_0_8.ParentJob - tJava_1 null

java.lang.NullPointerException

   at git.parentjob_0_8.ParentJob.tJava_1Process(ParentJob.java:380)

   at git.parentjob_0_8.ParentJob.runJobInTOS(ParentJob.java:1375)

   at git.parentjob_0_8.ParentJob.main(ParentJob.java:1161)

[statistics] disconnected

Could not find the context Default_8741964200527396493

Exception in component tJava_1 (ParentJob)

java.lang.NullPointerException

   at git.parentjob_0_8.ParentJob.tJava_1Process(ParentJob.java:380)

   at git.parentjob_0_8.ParentJob.runJobInTOS(ParentJob.java:1375)

   at git.parentjob_0_8.ParentJob.main(ParentJob.java:1161)

****************************************************************************************************************************

Success log (when we set “Original Value” parameters on TAC portal)

 

[INFO ]: git.parentjob_0_8.ParentJob - TalendJob: 'ParentJob' - Start.

[statistics] connecting to socket on port 10187

[statistics] connected

PARENT JOB----Orgcaafdb55d61f4b83ad83b49024ecd034Sage50UK

[INFO ]: git.parentjob_0_8.ParentJob - tRunJob_1 - The child job 'git.childjob_0_1.ChildJob' starts on the version '0.1' with the context 'Default'.

[INFO ]: git.childjob_0_1.ChildJob - TalendJob: 'ChildJob' - Start.

CHILD JOB----Orgcaafdb55d61f4b83ad83b49024ecd034Sage50UK

[INFO ]: git.childjob_0_1.ChildJob - tRowGenerator_1 - Generating records.

[INFO ]: git.childjob_0_1.ChildJob - tRowGenerator_1 - Generated records count:100 .

[INFO ]: git.parentjob_0_8.ParentJob - tRunJob_1 - The child job 'git.childjob_0_1.ChildJob' is done.

[statistics] disconnected

[INFO ]: git.parentjob_0_8.ParentJob - TalendJob: 'ParentJob' - Done.

 

 

Basically it seems, that trhough TAC custom values are not passed. And this happens only when we have Parent-Child job For single job we are able to pass custom values from TAC.

 

 

Parent Job

0693p000009SUERAA4.png

 

 

 

 

Child Job

0693p000009SUEWAA4.png

 

 

 

TAC settings

0693p000009SUEbAAO.png

 

 

 

Thanks

Hemant

Labels (2)
3 Replies
manodwhb
Creator III
Creator III

@not specified not specified​ , when you run from studio,is it working?

 

Thanks,

Manohar

cdhemant
Contributor
Contributor
Author

Yes, from studio it works perfectly.

 

Thanks

Hemant

JohnRMK
Creator II
Creator II

Hello,

 

You can try this https://community.talend.com/s/question/0D53p000083BbXGCA0/how-can-i-pass-the-context-to-my-subjobs-

The second part when you build the job or when you publish it to nexus

check the transmit the context to update all poms