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
Chandra Kanth 10Chandra Kanth 10 

Inserting AccountShare Record with RowCause as 'TerritoryManual' is throwing error.

HI,

When trying to insert AccountShare record with RowCause 'TerritoryManual', we are getting the following error. What is the problem and how to resolve it. Urgent help required.Thank you.

Field Integrity Exception: RowCause (Cannot insert sharing rows with this cause).

If we comment rowcause and insert then it works fine.
shashi lad 4shashi lad 4
You may have to change the Territory group settings for Account Access to atleast "Users in this territory can view and edit accounts assigned to this territory."

thanks
shashi