Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
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.
@Janki Bhatt ,check the below link how to pass. You need to configure tRunjob component properly to pass the context variables.
Thanks,
Manohar
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 screenshots
Hi, Any help on above would be appreciated. As I need to resolve it as soon possible.
Hey ,You it cannot prompt when you run .bat file, you can leverage context groups concept ,but prompting not happen.
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?
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.