Skip to main content
We have a field called "ID/Status" which is where we denote in Salesforce in individuals (contacts) are Clients, Prospects, Employees, Terminated, etc. This field used to be a text field, but I recently changed it to a picklist (so nobody accidently types in "cleint").

 

We used to have a trigger that automatically created a 30, 60, and 90 day new client check in task when the field was updated to or changed to Client. Now, using the picklist when we update a record to Client we get the following result:

 

Error:Apex trigger FSTR.ContactTrigger caused an unexpected exception, contact your administrator: FSTR.ContactTrigger: execution of AfterUpdate caused by: System.DmlException: Insert failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, Record Type ID: this ID value isn't valid for the user: 012E0000000VcstIAC: [RecordTypeId]: (FSTR)

 

We get no such error when we change the picklist to any other choice. I tried deleting and recreating the trigger but nothing seems to work. Any insight or suggestions would be GREATLY appreciated!

 

Regards,

 

Lars Phillips
1 risposta
  1. 5 feb 2015, 18:56
    This is not related to the picklist, but instead to the record type of the records being manipulated.  Check to make sure that your FSTR record type (the ID is the 012 number) is configured for use by your Users.