4

I am observing a weird behaviour on scratch org, When I tried to delete the custom object it throw an "Insufficient Privileges" error, but this is happening when only financial service cloud package installed to your scratch org.

enter image description here

Steps to reproduce.

Step 1: Create a new scratch org.

Step 2: Now you're able to create custom object in salesforce and you can delete it also successfully 

Step 3: install financial cloud service package  
`sfdx force:package:install --wait 100 --publishwait 100  --package 04t1E000000jb9R   --noprompt `

Step 4: Now your able create custom object in salesforce but not able to delete it , You get above error.

One more interesting fact is, i have created new trail org form Financial Services Cloud Trailhead but i didn't observed this behaviour in that org.

Updated:

project-scratch-def.json file

{
  "orgName": "Company Name",
  "edition": "Developer",
  "features": [
    "EnableSetPasswordInApi",
    "Sites",
    "Communities",
    "FinancialServicesUser:5",
    "ContactsToMultipleAccounts",
    "PersonAccounts"
  ],
  "hasSampleData": true,
  "settings": {
    "lightningExperienceSettings": {
      "enableS1DesktopEnabled": true
    },
    "mobileSettings": {
      "enableS1EncryptedStoragePref2": false
    },
    "experienceBundleSettings": {
      "enableExperienceBundleMetadata": true
    },
    "communitiesSettings": {
      "enableNetworksEnabled": true
    }
  }
}

Any help can be appreciated.

4
  • 1
    what's in your project-scratch-def.json? Commented Jul 10, 2021 at 14:01
  • 1
    @kris-goncalves Updated project-scratch-def.json
    – NITHESH K
    Commented Jul 10, 2021 at 14:03
  • 1
    Happening for me too, in a sandbox with source tracking turned on. Was able to delete the object directly in production with no issue
    – MoDiggity
    Commented Aug 9, 2021 at 19:48
  • @MoDiggity Thanks... Its an weird thing...
    – NITHESH K
    Commented Aug 10, 2021 at 7:39

1 Answer 1

6

I found this article which solved the problem for me: https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8yovSAB

After enabling language translation, deleting custom objects started working for me.

Go salesforce!

2
  • This is hilarious! Commented Feb 24, 2023 at 14:01
  • Three years later, today, I faced the same issue and it worked for me too! :) Its still hilarious! Commented Feb 5 at 14:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .