User gets a 'Flow failed to access the value' error
Last updated 2022-02-10 ·Reference W-3658749 ·Reported By 3 users
Summary
Users may get a 'flow failed to access the value' if a record passed into a Process operates on fields that are null.
Repro
1. Login as a System Admin
2. Create a new picklist on the Account object with the following properties:
Values: 1, 2, 3
Required: unchecked
Restrict Picklist: unchecked
3. Create an Invokable process on the Account object with the following properties:
Define Criteria for this Action Group
------------------------------------------------
Criteria for Executing Actions: No criteria—just execute the actions!
Immediate Actions
------------------------------------------------
Record: Update record that started the process
Criteria for Updating Records: No criteria—just update the records!
Field: Account Name, Type: Formula, Value: if(isblank(text([Account].my_picklist__c )), 'blank', 'not blank')
4. Activate the process
5. Create a new process on the Contact object with the following properties:
Define Criteria for this Action Group
------------------------------------------------
Criteria for Executing Actions: Conditions are met
Field: [Contact].FirstName, Operator: equals, Type: String, Value: invoke
Immediate Actions
------------------------------------------------
Process: the invokable process you created in step 3
Process Variable: SObject, Type: Reference, Value: [Contact].Acccount
6. Activate the process
7. Edit an existing Contact record with a Parent Account and set the first name to: invoke
8. Save the record
Actual Results:
===============
System Admin receives the following error:
Error element myRule_1_A1 (FlowRecordUpdate).
This error occurred when the flow tried to update records: The flow failed to access the value for SObject.my_picklist__c because it hasn't been set or assigned.
Expected Results:
=================
The record is saved
Workaround
No workarounds at this time.
Reported By (3)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.