A user receives the following error when the Account Team Member record is saved:
Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger VOD_ACCOUNT_TEAM_MEMBER_AFTER_INSERT_UPDATE caused an unexpected exception, contact your administrator: VOD_ACCOUNT_TEAM_MEMBER_AFTER_INSERT_UPDATE: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 3; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Row Cause: bad value for restricted picklist field: Veeva_Account_Plan_Sharing_vod__c: [RowCause]: Trigger.VOD_ACCOUNT_TEAM_MEMBER_AFTER_INSERT_UPDATE: line 226, column 1
The Account Plan Sharing feature is enabled in the org.
The Apex Sharing Reason is not created on one of the following objects:
Also, the Organization-Wide Default is set to private.
When one of these objects are set to private, the sharing trigger tries to create a sharing record when the Team Member record is created.
The private object(s) must be set to another Organization Wide Defaults (Example: Public Read-Only) or an Apex Sharing Reason must be created to those objects.
CRM Help Documentation: Account Plan Sharing
Send us your feedback: We are always looking for feedback to help improve our Knowledge Base! Please let us know if this article is helpful or provide feedback on how we can improve your experience by clicking here.