Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
jbhatt1810
Contributor III
Contributor III

Context not taken from the child job in tRunJob

I have job which takes input excel file and further performs actions. This input excel file can be different hence I have setup the context to select the file. See attached screenshot for excel job. When I run the job independently, it shows the prompt to select the file and works great.

I further have tRunJob1 which calls this job. When I run this main tRunJob1, it throws an error "java.lang.IllegalArgumentException: 'path' must be given". It is also not showing any prompt. What am I doing wrong here?

Labels (2)
1 Solution

Accepted Solutions
jbhatt1810
Contributor III
Contributor III
Author

Ok Finlly, After doing lots google search, I found a solution. I followed link https://community.talend.com/s/feed/0D53p00007vCpxNCAS and it worked fine. tFileChooser custom component works like a charm with .bat file.

View solution in original post

6 Replies
manodwhb
Champion II
Champion II

@Janki Bhatt​ ,check the below link how to pass. You need to configure tRunjob component properly to pass the context variables.

 

https://help.talend.com/reader/1RJ7TatgS73nP1RPGjT50w/root#:~:text=Create%20a%20Standard%20Job%20cal...

 

Thanks,

Manohar

 

jbhatt1810
Contributor III
Contributor III
Author

Thank you for your reply. So I added context in the tJobRun as suggested and when I run it, it works fine with the prompt and all. Now the problem is, I build the job and ran the windows batch file and its throwing below error:

 

java.lang.IllegalArgumentException: 'path' must be given

 

How do I make sure, when I run the batch file, it shows the prompt to select the file? See attached updated job screenshots0693p000009J8pcAAC.png0693p000009J8pXAAS.png

jbhatt1810
Contributor III
Contributor III
Author

Hi, Any help on above would be appreciated. As I need to resolve it as soon possible.

manodwhb
Champion II
Champion II

Hey ,You it cannot prompt when you run .bat file, you can leverage context groups concept ,but prompting not happen.

jbhatt1810
Contributor III
Contributor III
Author

Oh really? then whats the point? Is there any way, where user can select their own file using the prompt or manipulating file path in the .bat file?

 

jbhatt1810
Contributor III
Contributor III
Author

Ok Finlly, After doing lots google search, I found a solution. I followed link https://community.talend.com/s/feed/0D53p00007vCpxNCAS and it worked fine. tFileChooser custom component works like a charm with .bat file.