You need to sign in to do that
Don't have an account?
Chiel de Graaf.
Validation rule problem in production
Hi All,
I've got this weird problem in one of my validation rules.
When setup and tested in the full sandbox environment the rule triggers as it should.
When the rule is moved to production the rule fails to trigger.
Here is the rule itself.
Anyone got an idea what is going wrong?
Regards
Chiel
I've got this weird problem in one of my validation rules.
When setup and tested in the full sandbox environment the rule triggers as it should.
When the rule is moved to production the rule fails to trigger.
Here is the rule itself.
(RecordType.DeveloperName = "Campaign_Delivery" || RecordType.DeveloperName = "Sales_Management" || RecordType.DeveloperName = "Year_Deal" || RecordType.DeveloperName = "Aanbieding" || RecordType.DeveloperName = "Order_Management") && (ISCHANGED(StageName)|| ISNEW() ) && (ISPICKVAL(PRIORVALUE(StageName ),"Booking") || ISPICKVAL(StageName , "Booking")) && OR($UserRole.Name ="Media Sales Manager", $UserRole.Name ="Media Account Manager", $UserRole.Name = "Account Management (National)", $UserRole.Name = "Head of Aanbieding", $UserRole.Name = "Account Management (City)", $UserRole.Name = "Automotive - Sales Support")
Anyone got an idea what is going wrong?
Regards
Chiel
I would double check whether the RecordType Names are same in the Production as it is in the SandBox. It mostly has to be a data related issue. Cross check the RecordType Names and picklist values with the values that you have in this formula.
This morning i changed the logic. I replaced with
I will deploy this to production next week and see what happens.
As for line 6, it is put in there so it only fires when that specific field is changed or entered if new.