You need to sign in to do that
Don't have an account?
Eric Blaxton
Process builder and Trigger firing out of sequence
Hi and thanks for your help in advance.
I am having what appears to be an Order of Sequence violation.
I am having what appears to be an Order of Sequence violation.
- This error happens intermittently and never happens when testing. Based on the Order of Execution it shouldn’t be happening.
- User enters a Registration Request
- Enters in required fields
- Hits save
- Before insert trigger which checks for duplicate records
- If duplicate found there should be an error message thrown. (happens frequently)
- Process builder which: (here is where I sometimes get the “Field Custom Validation Exception”)
- Looks for logged in user
- Looks for Account Team member of logged in user
- Assigns team member to variable x
- Writes x to Registration Request Record
- Saves original record
- Creates another record
Thanks for the suggestion. That was one of the first thing I checked hoping for something obvious, but all users are active. The error fires inconsistently. There are times when I will get the pretty Custom error field stating there is a duplicate and what to do next. Other times, I get the ugly "Field Custom Validation Exception" with no clue for the users on what to do next. I now the error is being caused by a duplicate record.
It's acting like the Process is running before the "Before" Trigger.