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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

reading inputs from user when running talend job as executable jar

I want to read inputs like username and password from user when we run talend job externally using .bat file...please suggest me to achieve this

Labels (2)
7 Replies
Anonymous
Not applicable
Author

Hi,

 

    You need to use context variables which will be populated at run time.

 

https://community.talend.com/t5/Design-and-Development/How-to-use-context-variable-at-run-time/td-p/...

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

If possible could you please share some screen shots ...

Anonymous
Not applicable
Author

Hi,

 

    I could see that its clearly mentioned in below post.

 

https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-...

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

I am trying to read few values from file but getting below error

 

 

Exception in component tSalesforceInput_1 (Test)
java.lang.RuntimeException: IOException: [LoginFault [ApiFault exceptionCode='INVALID_LOGIN'
exceptionMessage='Invalid username, password, security token; or user locked out.'
extendedErrorDetails='{[0]}'
]
]

0683p000009M2he.png0683p000009M2hj.png0683p000009M2ho.png

Anonymous
Not applicable
Author

Hi @uganesh,

 

You need to create context variables first. For example, I have created some like this....

0683p000009M2ht.png

 

These will then be used to populate your parameters for your component. To do this, given the examples above, they would be referenced in your component like so...

 

context.Username

...and ...

context.Password

Then in your file, they need to be represented like below....

Username;richard
Password;mypassword

Notice how the context variable names in the file are Username and Password and that they are referenced with "context." preceeding them.

 

Your Implicit Context Load settings should look like below (my file is called contexts.txt)...

0683p000009M2hy.png

 

Anonymous
Not applicable
Author

For one of the variable i am not able to use context value

 

0683p000009M2gJ.png

0683p000009M2hp.png

0683p000009M2fU.png

manodwhb
Champion II
Champion II

@uganesh ,you can directly specify like context.Module_Name there in the custom object and id you are writing SOQL there in the commponet then the module name should be context.Module_Name.