Unable to activate Salesforce Data Event in Journey Builder on specific objects
Last updated 2020-08-04 ·Reference W-7482931 ·Reported By 9 users
It is possible to get errors activating Journeys that use Salesforce Data Events on a specific object. The error would be a variation of the below.
Flow Creation failed. Unable to activate the Journey, the Sales Cloud user may not have correct permissions. Activating a Journey requires Author Apex permissions. The operation timed out.
UNABLE_TO_LOCK_ROW;unable to obtain exclusive access to this record;;Flow Save failed. Unable to activate the Journey, the Sales Cloud user may not have correct permissions. Activating a Journey requires the Run Flow and Manage Force.com Flow permissions.
The first error would happen because the Journey Publish times out before the flow activation completes. The second error is generally observed on the second attempt to activate because the process has not completely finished on the Sales Cloud side from the first activation and Journey Builder is unable to obtain access to the flow record.
This is not easily reproducible.
Delete old inactive flow versions for whatever object you're trying to activate. For example, if you cannot activate a journey based on the Lead object, you will want to delete the inactive versions for the flow called JBSystemFlow_Lead.
-Setup > Build > Create > Workflow & Approvals > Flows
-Click on JBSystemFlow_Lead
-Click "Del" on any inactive versions
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.