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
j-ferj-fer 

Case function for picklist field in Process Builder

I am trying to see if the contact field is blank on a case record, but I am getting the error of a variable not being set or assigned.  Even though the check for the blank Contact field is the first criteria.  I read the below, but am not sure how I can get my formula to work with the Case funtion.

Note:: As mentioned in Known Issue W-2763830, this formula syntax does not work when using Formula-Based Criteria and making a cross-object reference to a Picklist field (specifically when using the TEXT or ISPICKVAL functions with the spanning reference to that picklist). If you need to make cross-object reference to a picklist field in Process Builder Criteria, use Condition-Based criteria. If you must use formula-based criteria, use the CASE function when making cross-object references to picklists.

AND(
NOT(ISBLANK([Case].ContactId)),
CONTAINS([Case].RecordType.Name, "FRR"),
NOT(ISPICKVAL($User.User_Type__c, "Customer Community User")),
[Case].Contact.FirstName <> "On behalf of",
NOT(CONTAINS([Case].Contact.Account.Name, "WKFS")),
NOT(ISBLANK([Case].Contact.Email)),
NOT(ISBLANK([Case].Contact.FirstName)),
ISPICKVAL([Case].Contact.Status__c, "Active"),
ISCHANGED([Case].of_Times_Reopened__c),
[Case].of_Times_Reopened__c > 0)
j-ferj-fer
Here is my error
Error element myDecision (FlowDecision).
The flow failed to access the value for myVariable_current.Contact.Status__c because it hasn't been set or assigned.

Flow Details
Flow API Name: FRR_Global_Support_Customer_Contact_Case_Notifications
Type: Record Change Process
Version: 9
Status: Active
Org: Wolters Kluwer Financial Services (00D210000009rbs)
Flow Interview Details
Interview Label: FRR_Global_Support_Customer_Contact_Case_Notifications-9_InterviewLabel
Current User: Jen DeGray (00550000002Tjg0)
Start time: 1/28/2019 1:47 PM
Duration: 0 seconds
How the Interview Started
Jen DeGray (00550000002Tjg0) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = Case (50021000004Q1w9AAC)
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!$Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "1/28/2019 1:47 PM"

Salesforce Error ID: 577884578-80547 (932121485)