Loading

Unable to enable Pipeline Inspection while creating a scratch org.

Julkaisupäivä: Jan 23, 2025
Kuvaus

Learn how to enable Pipeline Inspection in the scratch org using the scratch org definition file.

As per the documentation we need to have below settings in the definition file to enable “Pipeline Inspection“.

"settings": {
    ...
    "opportunitySettings": {
      "enablePipelineInspectionFlow": true
    },
    ...
  }
  1. To create a scratch org we should have a definition file which includes above setting.
  2. Create a scratch org using below command in VS code after connecting the Dev Hub org 
    sf org create scratch —definition-file config/definition_file_name —alias scratch_org_alias —wait 10 —target-dev-hub devhub_org_username
  3. You may see the error like : ”A Scratch org was created with username testscratch@example.com , but the settings failed to deploy due to: [Error] Opportunity : There was a error enabling or disabling a setting“
Ratkaisu

In order to resolve the issue, we have to make some changes to the definition file as below,

"features": [---------,"PipelineInspection",**],
"settings":{
.....
.....
"OpportunitySettings”: {
"enableOpportunityTeam": true,
"enablePipelineInspection":true
}
...
}

Add “PipelineInspection” keyword to the “Features” and then use "enablePipelineInspection": true  in “Settings” of definition file.

Try creating the scratch org after making this changes to the definition file, This will enable the pipeline inspection in the scratch org and it will be successfully created.

Note: If we use “enablePipelineInspection” instead of “enablePipelineInspectionFlow” this enables the Pipeline Inspection feature in the Opportunity tab. Also enables historical trending for opportunities, if the org has the historical trending org perm.

 

 

Lisäresurssit
Knowledge-artikkelin numero

002718175

 
Ladataan
Salesforce Help | Article