function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Custom Setting record deleted on Package Upgrade


Our client's have been using different versions of our package from app exchange. But after summer 13 release, their package upgrades have caused our custom setting record in their orgs to be deleted automatically.

Prior to summer 13 release their package upgrades and installations all were working fine. They never faced this problem but after summer 13 our client's a re facing this issue.

What could be the reason for this unexpected behavior?


Raj SFcloudsRaj SFclouds

Apex managed sharing is a type of "Programatic Sharing" which allows you to define a custom sharing reason to associate with your programatic share. Standard Salesforce objects support "Programatic Sharing" while custom objects support Apex managed sharing. More specifically, object shares can be written to both standard and custom objects, however custom sharing reasons can only be defined for shares written to custom objects.


Apex managed sharing provides developers with the ability to support an application’s particular sharing requirements programmatically via Apex code.


Transform your Nonprofits Organization with Salesforce CRM for *free. Contact us SFclouds Technologies Pvt Ltd. Authorized Salesforce Consulting - Web:


Hi Raj,


There is no apex sharing reason in our package. In our scenario, there is no relation with Sharing reasons/sharing rules.