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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Is that context parameters should be same in master and child job

Hi,

 

I have created master job in which I have child jobs connected with Run if(true) condition. 

Do I need to maintain all the connections and variables to be same in master and child jobs?

 

Thanks,

Meghana.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

@Suneel,

 

If your requirement is based on my previous comment, then you can follow below steps to resolve your issue.

 

You need to specify child's context group value in 'tRunJob' component in Master job as below.

 

0683p000009M1O2.jpg

 

Please mark the topic as resolved if my answer helped you and Kudos are also welcome.

Regards,

Vibin CT.

View solution in original post

21 Replies
manodwhb
Champion II
Champion II

@Suneel,in tRunjob,if you enable transmit whole context then you should have same names ,if you specifically specifying the contexts by not needed.

manodwhb
Champion II
Champion II

@Suneel,does it solve your question?

Anonymous
Not applicable
Author

The issue I am facing is, When I execute master job, then it's taking child job's only default environment context variables in all the environments. Do u have any suggestion on this?

manodwhb
Champion II
Champion II

@Suneel,are you using the same context variable names in the both master and subjobs?

Anonymous
Not applicable
Author

No, varaibles are different in every child job

manodwhb
Champion II
Champion II

@Suneel,can you show me that how the context defined and passing form main to sub?

David_Beaty
Specialist
Specialist

You should use a context group to use in the master and child job to ensure the context variables you want to pass are the same name.

 

Thanks

 

David

Anonymous
Not applicable
Author

There is a master job with 4 env in context

default, dev, qa, prod. This is how it looks. 

VariableDefaultDevQAPROD
filePath/Desktop/files/files/files

 

Child1

filePath/Desktop/files/files/files
EmailABC@gmail.comsome@gmail.comsome@gmail.comsome@gmail.com

 

Child2

filePath/Desktop/files/files/files
EmailABC@gmail.comother@gmail.comother@gmail.comother@gmail.com

 

And have three environments in Talend cloud too.

So, when I execute master job, master job is executing it's respective environment but taking default context variables of child jobs in all the environments.

 

I hope u got my point. I don't if master job behaviour is this. But, Can I get any soultion for this?

Anonymous
Not applicable
Author

There is a master job with 4 env in context
default, dev, qa, prod

Job Default Dev QA PROD
filePath /Desktop /files /files /files

Child1

filePath /Desktop /files ` /files
Email ABC@gmail.com some@gmail.com some@gmail.com some@gmail.com

Child2

filePath /Desktop /files /files /files
Email ABC@gmail.com other@gmail.com other@gmail.com other@gmail.com

 

master h=job looks like child1->RunIf(true)->child2.

 

Now when I execute master job in TIC, master job is taking default context variables of child job in all the environments. 

I wanted my master job to take child job's context parameters in it's respective environment. Can I get solution?

 

Thanks,

Suneel.