Open ninoish opened 1 year ago
Hello @ninoish :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!
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 @ninoish :wave: None of the versions of sf
you shared match the latest release.
Shared: 2.1.7
Latest: 2.5.8
Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc
and nightly
releases! (docs)
After updating, share the full output of sf version --verbose --json
Hello @ninoish :wave: None of the versions of sf
you shared match the latest release.
Shared: 2.5.7
Latest: 2.5.8
Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc
and nightly
releases! (docs)
After updating, share the full output of sf version --verbose --json
Call saitama
Started the creation with english
then, while the sandbox was beeing created, I changed my user language to Japonese (easter egg)
and finally tried to get its status again, which gave me the error mentioned above
then I changed my language to english once again and the issue was gone
finally I changed it to spanish and verified the same issue happens, proving it is not a problem with japonese, but with all other languages different than english.
This is a problem with the sandbox creation api and not with the cli. The API return responses with i18n (daf) and the CLI expects english only.
I would not fix or improve this because:
1 - it does not break the sandbox creation.
2 - it would be necessary to invest some effort to enable i18n
@ninoish (saitama) just use english and stop training because you are already too OP
Thank you @AllanOricil for kind repro steps! I would go with switching user language before Sandbox creation in my automation process.
To fetch instance url, access token and user id
sfdx force:user:display --json -o SANDBOX_TARGET_ORG
to change use language
curl --location --request PATCH 'https://{INSTANCE_URL}/services/data/v58.0/sobjects/User/{USER_ID}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {ACCESS_TOKEN}' \
--data '{
"LanguageLocaleKey": "en_US"
}'
sf org create sandbox -o SANDBOX_TARGET_ORG -l Developer -n test202308 --no-prompt --async
Then run
sf org resume sandbox --name test202308
Then switch the source org language back.
curl --location --request PATCH 'https://{INSTANCE_URL}/services/data/v58.0/sobjects/User/{USER_ID}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {ACCESS_TOKEN}' \
--data '{
"LanguageLocaleKey": "ja"
}'
Of course Saitama wouldn't take such a workaround, he just smash it for sure.
@ninoish u are a hero 👏 Saitama would be proud of u
This issue has been linked to a new work item: W-14085156
I'm calling this a bug and am going to ask the Sandbox team to have their API follow the docs and only return the enumerated values for Status
which are all in English
https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_sandboxprocess.htm
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on.
Summary
sf org resume sandbox
command always returns error if the target sandbox language is in Japanese (in non-English languages) regardless of the sandbox status.Steps To Reproduce
sf org create sandbox -o devhub@username -l Developer -n test202308 --no-prompt --async
sf org resume sandbox --name test202308
Error (1): The sandbox test202308 cannot resume with status of 処理中.
.Error (1): The sandbox test202308 cannot resume with status of 有効化中.
after a while. "有効化中" is "Activating" in Japanese.Error (1): The sandbox test202308 cannot resume with status of 完了.
after a while. "完了" is "Completed" in Japanese.Expected result
Check the status of a sandbox creation, and log in to it if it's ready without error.
Actual result
Error (1): The sandbox test202308 cannot resume with status of 完了.
System Information
sf version --verbose --json