SalesforceFoundation / NPSP

The current version of the Salesforce.org Nonprofit Success Pack
http://www.salesforce.org/nonprofit/nonprofit-success-pack/
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

Validation Rule with same name as NPSP field is incorrectly triggered #2370

Closed judisohn closed 7 years ago

judisohn commented 8 years ago

Thread: https://powerofus.force.com/0D580000034bNqe

Validation Rule in customer org is:

(RecordType.Name="Membership Grant" || RecordType.Name="Non-Member Grant") && IsWon=True && (ISBLANK(Grant_Period_Start_Date__c) || ISBLANK(Grant_Period_End_Date__c))

The customer has custom fields for Grant Period Start/End Date, and it's those fields that are on the layout and populated, however the debug log shows that the code is looking at NPSP versions of those fields instead:

image

Error is not the actual Validation Rule firing (since it's not by the field - it's by NPSP).

Repeat by creating Date fields on Opportunity with Dev names of Grant_Period_Start_Date and Grant_Period_End_Date in clean test org using this validation rule:

(RecordType.Name="Grant") && IsWon=True && (ISBLANK(Grant_Period_Start_Date__c) || ISBLANK(Grant_Period_End_Date__c))

Workaround: Change dev name of custom fields.

judisohn commented 8 years ago

**lurch: add

LurchTheButler commented 8 years ago

Tracking W-016934

mpusto commented 7 years ago

Because this is a core bug, we have closed the issue. If SFDC fixes it and it remains, we can re-open. https://success.salesforce.com/issues_view?id=a1p30000000T2L3AAK