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
SATHEESH P 4SATHEESH P 4 

Workflow Action Failed to Trigger Flow

I have tried Creating New Position I got following error and mail.Can any one help to Resolve the Problem

The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID XXXXXX. Contact your administrator for help. 

An error occurred at element myPreWaitDecision_myWait_myRule_1 (FlowDecision).
The flow failed to access the value for myVariable_current.CreatedBy.UserRole.Name because it hasn't been set or assigned.

This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.

Flow Details
Flow Name: Assign_Position_to_Recruiter
Type: Workflow
Version: 1
Status: Active

Flow Interview Details
Interview Label: Assign_Position_to_Recruiter-1_Position__c
Current User: SATHEESH P (00528000002XqSP)
Start time: 3/16/2016 11:42 PM
Duration: 0 seconds

How the Interview Started
SATHEESH P (00528000002XqSP) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = a0628000005Xlz2AAC

ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "3/16/2016 11:42 PM"

 
Carlos Campillo GallegoCarlos Campillo Gallego
Hi Satheesh,

Can you check if the user that triggered the flow has a role assigned? I believe it is the cause as the error message says myVariable_current.CreatedBy.UserRole.Name because it hasn't been set or assigned.​

Regards
Swapnil GuravSwapnil Gurav
I faced similar issue. I assigned role to the user and then it worked.
Thanks.