function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ekta Gupta 23Ekta Gupta 23 

Need help with Validation error

There is a validation message which has been written on Account object
Validation Rule:

Rule NameProspect_Status_InactiveActive
Error Condition FormulaAND(
NOT( $Setup.Bypass_Validation_Rules__c.Prospect_Status_Inactive__c),
OR(RecordType.DeveloperName = 'Prospect_Corporate_Trust',
RecordType.DeveloperName = 'Prospect_Individual'),
ISPICKVAL(Prospect_Status__c, 'Inactive'),
NOT(ISCHANGED(Prospect_Status__c))

)
Error MessageCannot edit Prospect in Inactive Status

This message is working fine on Account object but when I am trying to update any of the associated object, it gives below message for each activity action, can somebody please help me to understand this
User-added image
Thanks in Advance
RituSharmaRituSharma
If there is any rollup field on Account based on your associated objects, rollup will be calculated. To calculate rollups, SF updates accounts and fires the validation.
Ekta Gupta 23Ekta Gupta 23
@Ritu: Thanks Ritu for your inputs, can you suggest me how can I modify this validation to deal with the issue happening.