Open JamesHaugheySlalom opened 2 weeks ago
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 :wave: It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json
for the CLI you're using (sf
or sfdx
).
A few more things to check:
rc
or nightly
versions. (docs)doctor
command to diagnose common issues.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 2.66.5
release. I don't see any changes that would obviously have that affect. It's still requiring the same minimum node version (18). I'll keep looking 💪 , just wanted to post an update
It looks like there was a major node upgrade in the Docker image from v20 to v22 right when the bug got introduced so that might be a possible cause?
maybe, you can use the -slim
docker build to get only the CLI, and not node, so you can play around with the different node versions
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. Runningsfdx 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