Overview:
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.
Root Cause:
The Apex Sharing Reason is not created on one of the following objects:
- Plan_Tactic_vod
- Account_Tactic_vod
- Call_Objective_vod
Also, the Organization-Wide Default is set to private.
When one of these objects is set to private, the sharing trigger tries to create a sharing record when the Team Member record is created.
Solution:
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.
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.