Rule failure

  • 12 January 2023
  • 1 reply

Badge +1

Does anyone know why I am receiving this Gainsight rule failure message for Salesforce 'Salesforce Error ::FIELD_CUSTOM_VALIDATION_EXCEPTION:Won Opportunities are locked.  To unlock, reach out to your manager.:StageName ----' . 

1 reply

Userlevel 6
Badge +5

That’s likely happening when attempting to update an Opportunity record that has a validation rule for Won Opportunities. So it can’t update that record or records which will cause the rule to fail completely. 

I would troubleshoot by cloning the rule, filtering the query for one opportunity that is still in an Open state, and re-running. If that still fails, then probably looking at the validation rule in Salesforce to determine what it is using.