-
Notifications
You must be signed in to change notification settings - Fork 78
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
Javascript await error from sfdx force:data:bulk:upsert --serial
#3112
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @JamesHaugheySlalom 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
Hi @JamesHaugheySlalom - I've been testing this with the same version of the CLI/plugin/node and have yet to reproduce it ➜ sf version --verbose
CLI Version:
@salesforce/cli/2.68.0 published 0 days ago (Wed Nov 13 2024) (latest is 2.66.7)
Architecture:
darwin-arm64
Node Version:
node-v22.10.0
Plugin Version:
data 3.11.3 (core)
OS and Version:
Darwin 23.6.0
Shell:
zsh
Root Path:
/Users/william.ruemmele/.nvm/versions/node/v22.10.0/lib/node_modules/@salesforce/cli
➜ dreamhouse-lwc git:(main) ✗ hub:(GLOBAL - DevHub) scratch:(test-xvbapsbkzfgy@example.com)
➜ sf force data bulk upsert --file account.csv --sobject Account --external-id Id --wait 30 --target-org target --serial
Will poll the batch statuses every 5 seconds.
To fetch the status on your own, press CTRL+C and use the command:
... Even looking at the |
maybe, you can use the |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Summary
As per https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_mig_bulk_data.htm we are continuing to use the
sfdx
commands to upsert file serially.Running
sfdx force:data:bulk:upsert --file $1 --sobject $2 --external-id ExternalId__c --target-org $targetOrg --serial --wait 60
- this command now gives the javascript error belowThis is running in the latest container version of
docker.io/salesforce/cli:2.68.0-full
but seems to have been introduced in the2.66.5
version as the2.66.4
version does not error.Steps To Reproduce
Run
sfdx force:data:bulk:upsert --file $file --sobject $sobject --external-id $external_id --target-org $target_org --serial --wait 60
in the Salesforce cli containerdocker.io/salesforce/cli:2.68.0-full
Expected result
sfdx cli should have uploaded a file serially to Salesforce
Actual result
Javascript errored on a unsettled await command
System Information
The text was updated successfully, but these errors were encountered: