salesforcedx-docker icon indicating copy to clipboard operation
salesforcedx-docker copied to clipboard

Scratch org creation fails while enabling order management features

Open vitapramdevputra opened this issue 2 years ago • 0 comments

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:

  1. 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) image

Additional information

  1. If I remove docker image, and install salesforce cli on self-hosted vm, then it is running successfully.
  2. 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:

vitapramdevputra avatar Aug 02 '21 12:08 vitapramdevputra