Visual Flow Error: The flow failed to access the value for [example] because it hasn't been set or assigned.
Last updated 2015-09-03 ·Reference W-2342806 ·Reported By 122 users
Summary
Visual Flow Error: The flow failed to access the value for [your value here] because it hasn't been set or assigned.
This is usually due to a Formula Field being referenced in a Fast Lookup.
Repro
1. Create a formula field on a SObject. i.e. Account
Name + " Copy", API name as "Copy_Name__c"
2. Create a Flow and activate it
Two components: Fast Lookup and Assignment, set Fast Lookup as start element
Create a SObject variable: InputObject, input and output.
Fast Lookup setup:
Lookup: Account
Field: id equals {!InputObject.id}
Variable: {!InputObject}
Fields: Copy_Name__c
Assignment setup:
create new variable: Formulafield
Assignments:
{!Formulafield equals {!InputObject.Copy_Name__c}
3. Create Flow trigger
Object: Account
Flow Parameters: InputObject = {!this}
4. Create workflow rule
Object: Account
Evaluation Criteria: Evaluate the rule when a record is created, and every time it’s edited
Rule Criteria: true
Adding above flow trigger as immediate workflow action
5. Create a Account
Example Error:
The flow failed to access the value for InputObject.Copy_Name__c because it hasn't been set or assigned.
Workaround
a). Use a Record Lookup instead of a Fast Lookup
b). Remove Formula fields from Fast Lookup Variable section.
Note: This can also occur with the standard Lead field "Name". In that case another workaround is to use the First Name and Last Name fields instead.
Reported By (122)

































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.