Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Hi,
You need to use context variables which will be populated at run time.
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 🙂
If possible could you please share some screen shots ...
Hi,
I could see that its clearly mentioned in below post.
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 🙂
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]}'
]
]
Hi @uganesh,
You need to create context variables first. For example, I have created some like this....
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)...
For one of the variable i am not able to use context value
@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.