douglascayers / sfdc-update-task-who-relations

Example Process Builder and Flow to update all Contacts / Leads related to a Task when activity logged.
https://douglascayers.com/2016/12/26/how-to-update-leads-or-contacts-when-shared-activities-logged/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Error deploying into production #4

Closed erinsnyder13 closed 4 years ago

erinsnyder13 commented 4 years ago

Deployment into Sandbox is successful. Attempts to deploy in production result in the below error.

_Deployment CompleteTest failure, method: GetEventWhoRelationSObjectsInvocableTest.test_get_contacts -- System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: [] stack Class.GetEventWhoRelationSObjectsInvocableTest.test_get_contacts: line 23, column 1

Test failure, method: GetTaskWhoRelationSObjectsInvocableTest.test_get_contacts -- System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: [] stack Class.GetTaskWhoRelationSObjectsInvocableTest.test_getcontacts: line 23, column 1

erinsnyder13 commented 4 years ago

This issue was happening because we did not have a default Contact record type associated to our profile.