forcedotcom / salesforcedx-docker

The official Dockerfile for Salesforce DX
BSD 3-Clause "New" or "Revised" License
74 stars 25 forks source link

Scratch org creation fails while enabling order management features #32

Open vitapramdevputra opened 3 years ago

vitapramdevputra commented 3 years ago

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: