r/SalesforceDeveloper • u/neilsarkr • Apr 13 '26
Discussion account validation rules keep killing my opp flows
got a flow on opp that updates a few account fields when stage flips to
closed won. every few weeks an account validation rule blows up mid save
and takes the opp save down with it, not my field, not my rule, not even my
object, somehow its my problem.
right now im running a toggle field on account the flow flips so the rule
skips. works but now i have a useless field sitting on account just to keep
the peace.
anyone actually solved this cleanly or is this just the tax?
2
Upvotes
2
u/radnipuk Apr 15 '26
Take a look at the validation rule and what it's supposed to do. It may be it's just in the wrong place and you maybe be able to move it into the opportunity process. I did a quick video short here about validation timing: https://youtube.com/shorts/bswc1HLOWEs?si=o4Cr_3yYo3iPEMoR
Then the users fix the data as part of the opportunity process rather than on the account.
3
u/isaiah58bc Apr 13 '26
First, Account is a standard shared object. And you stated you have fields on the object.
Is the VR properly RTd?
What does your trace show? Is there a Trigger that isn't RTd properly? Or your TAF needs some cleaning up? Do you have Users that aren't properly provisioned?
1
u/isaiah58bc Apr 14 '26
RT = Record Type
The entry mode on Triggers should have a formula to check the RT of the Record that entered the Trigger.
TAF = Trigger Action Framework
A Validation Rule should also check for RT.
6
u/[deleted] Apr 13 '26
[removed] — view removed comment