Loading

Error 'field integrity exception' when you migrate sharing rules with change sets

Udgivelsesdato: Oct 13, 2022
Beskrivelse

You may encounter an error when you attempt to validate or deploy a change set that contains roles.  Error: 

  • 'field integrity exception: unknown (Case access level below organization default)'
Løsning


This error occurs if the Organization-wide defaults grant different levels of access in the source and target environments. 

Opportunity and Case object level access for roles depend on the Organization-wide Defaults set under Sharing Settings. For example:

  • If the default sharing setting for Case is "Private", the role definition contains Case Access details to determine how users with that role can interact with Cases.
  • If the default sharing is set to "Public Read/Write/Transfer", the role definition does not contain any access level information and the access is controlled by the Sharing Settings.


When the source organization is set to Private and the target organization is set to Public Read/Write/Transfer, then the change set contains role detail information that cannot be added to the role in the target organization. The result is the error 'field integrity exception: unknown (Case access level below organization default)'.

To resolve this error, edit the Sharing Settings for the impacted object in the target organization to match the settings in the source organization. 

Classic: Setup | Security Controls | Sharing Settings
Lightning: Click the gear icon | Setup | Security | Sharing Settings

Vidensartikelnummer

000385879

 
Indlæser
Salesforce Help | Article