salesforcedx-docker
salesforcedx-docker copied to clipboard
Scratch org creation fails while enabling order management features
Summary
Error while creating scratch org with order management feature enabled.
Background
I am using docker file in GitHub Actions, to facilitate continues deployment. GitHub actions workflow runs on [self hosted, linux, x64]
Steps To Reproduce:
- Creating scratch org with following features & settings
"features": ["Communities", "B2BCommerce", "OrderManagement", "PersonAccounts"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"experienceBundleSettings": {
"enableExperienceBundleMetadata": true
},
"communitiesSettings": {
"enableNetworksEnabled": true
},
"orderManagementSettings": {
"enableOrderManagement": true
},
"orderSettings": {
"enableOrders": true,
"enableEnhancedCommerceOrders": true,
"enableOptionalPricebook": true
}
}
1. sfdx-project.json has version 48 as shown below:
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "48.0"
}
Expected result
Scratch org should be created without any errors. It is, when we run the same command for the same repository without docker file.
Actual result
Gives error as below (Property 'enableEnhancedCommerceOrders' not valid in version 47.0
)
Additional information
- If I remove docker image, and install salesforce cli on self-hosted vm, then it is running successfully.
- It is giving same error while using
'sourceOrg'
in definition file.
Again, docker file is running absolutely fine for two other repositories, where we are not enabling these many features.
Running on github action with self hosted, Linux, x64 VM: