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
kim_lebiczkim_lebicz 

Validation Rule Problem

Hello All

I have created two new record types for the case object that have custom fields that the standard case object does not. These record types have only been assigned to my sys admin profile for testing. I have also created multiple validation rules specific to the new record types. Here is my problem.

If a Support Profile (have not been assigned the new record types) creates a standard case they do not have any problems.

If a different Support Profile (have not been assigned the new record types) creates a standard case they receive the following error:

Error: Invalid Data.
Review all error messages below to correct your data.

* Validation Formula "Missing_SN_Alert_2" Invalid (Could not access the following field: P_N_2__c. Contact your administrator.)

* Validation Formula "Missing_SN_Alert_3" Invalid (Could not access the following field: P_N_3__c. Contact your administrator.)

* Validation Formula "Missing_SN_Alert_4" Invalid (Could not access the following field: P_N_4__c. Contact your administrator.)

* Validation Formula "Quantity_Field_Error_2" Invalid (Could not access the following field: P_N_2__c. Contact your administrator.)

* Validation Formula "Quantity_Field_Error_3" Invalid (Could not access the following field: P_N_3__c. Contact your administrator.)

* Validation Formula "Quantity_Field_Error_4" Invalid (Could not access the following field: P_N_4__c. Contact your administrator.)

I have checked the field security and it is editable to all users and I can't seem to find any difference in the two profiles. Any guidance would be appreciated.
 
Here is an example of one of the validation rules.
AND( ISPICKVAL(Reason_for_Missing_SN2__c , ""), LEN(DEF_S_N2__c ) = 0, LEN( P_N_2__c ) >0, $RecordType.Name = "RMA")
 
Any guidance would be appreciated.
Thanks in advance
Kim