-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: "Required parameter sfdc.password is unspecified or empty", in spite of using sfdc.oauth.accesstoken #385
Comments
Hi @norikoiwai , your use of oauth access token is novel in the batch mode because the access token is short-lived, requiring you to set a new one each time. Also, your workaround is interesting. If you were to set the password to any arbitrary string, not necessarily the value of access token, it will likely work (I haven't tried this myself). Given that only username/password based auth is officially supported in the batch mode, data loader code checks for password entry in process-conf.xml, which is why you are encountering this issue. We can look into relaxing this check by checking for either OAuth access token or password being set. However, we would like to get more details as to how you are obtaining OAuth access token that's passed on to data loader batch mode to make sure that there are no other side effects or considerations. |
Hi @ashitsalesforce , thank you for your reply. I understand. Because of the password policy, we need to change environment variables of each automation system. So that I don't have to do this, I am using bash script and JWT authentication to get access token like this:
|
Hi @norikoiwai , thanks for this clarification. I am attaching a patched version of data loader 53.0.2 that does not require password if sfdc.oauth.accesstoken is set. Let us know if that works. MD5 (dataloader_mac.zip) = ef69efdbe912cc3994170dc99b4f31a8 |
Hi @ashitsalesforce , thank you for the patch. Both dataloader_mac.zip and dataloader_win.zip above are working as expected. |
Hi @norikoiwai , thanks for confirming the fix. Will check it in shortly. |
Hi,
I've been using
sfdc.oauth.accesstoken
instead ofsfdc.password
in process-conf.xml. it was working just as I intended in the previous version . But after updating to v53.0.1, the following error came to occur.Now I'm tentatively setting both sfdc.oauth.access token and sfdx.password to the same value, like this:
It is working, but a little strange. So, if there is not a special reason, I'd like to you fix it.
Thanks.
The text was updated successfully, but these errors were encountered: