Loading
PHP 취약성 모니터링 현황에 대해더 많이 읽기

Salesforce Platform: Uninstall Managed Package with Hidden Sharing Rules

게시 일자: Sep 5, 2026
상세 설명

Uninstalling a managed package in Salesforce sometimes fails with an error referencing a sharing rule that can't be found - even though the sharing rule doesn't appear anywhere in the Salesforce UI. This happens because Salesforce can leave behind sharing rule metadata that's no longer visible or editable through the standard interface, but still blocks the uninstall process. Tools like the Metadata API and the ANT Migration Tool can surface and remove this hidden metadata.

Key Definitions

  • UI (User Interface) - the standard Salesforce interface used for day-to-day configuration.

  • Metadata API - the API used to deploy and retrieve configuration changes, including metadata not visible in the UI.

  • ANT Migration Tool - a Java/Apache Ant-based command-line tool used to deploy and retrieve metadata via the Metadata API.

Error Symptoms

Users see an error message like the one below when uninstalling a managed package, even though the referenced sharing rule cannot be found in the UI:

SBQQ__Quote__c.xxxxxxxxxxxxxx Entity of type 'SharingOwnerRule' named 'SBQQ__Quote__c.xxxxxxxxxxx' cannot be found

Root Causes

There are two reasons this can occur:

  1. The package and/or package license has expired.

  2. The sharing rule is invalid and therefore does not appear in the UI.

솔루션

This article explains how to resolve an uninstall error caused by a hidden or invalid sharing rule left behind by a managed package in Salesforce, using the Metadata API to find and remove it.

Resolution Steps

  1. Ensure the package is in an active state and the associated licenses are active.

  2. Use metadata retrieve to get the info on invalid sharing rules. For example, you can use the ANT Migration Tool to deploy/retrieve metadata.

  3. Use the destructive change Metadata API deployment process to remove the invalid sharing rules.

  4. Try to uninstall the package again.

Knowledge 기사 번호

000974908

 
로드 중
Salesforce Help | Article