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
PamSalesforcePamSalesforce 

Flow error

Hi,

 

When I run the flow in the desktop flow designer it works fine but when i run the same flow from SFDC UI (Flows->run) i get this error

"An unhandled fault has occurred in this flow. An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information."

 

Has anyone else faced this issue. Can anyone provide some help to overcome this issue.

 

Thanks,

markross__cmarkross__c

You should receive an email after getting this error onscreen, and the email will contain more details about the error. Check that and see if it offers any clues about the problem. If you still are stumped, post it here and we'll have a collective gander at it and see what we can come up with! :D

PamSalesforcePamSalesforce

I haven't recieved any email for the FLow error. 

markross__cmarkross__c

I know I receive one every time I get an Unhandled Fault error from a Flow. Perhaps it only goes to a certain person or role?

 

@Rajaram, who should be getting those Unhandled Fault error emails?

shawshankshawshank

When troubleshooting, I have found it helpful to create variable screens in between the elements where I believe the error is occuring.  I have also created fault screens off of each record lookup, record update, or record create element.  

 

However, my most common error when rolling out a new flow is related to user profiles.  Make sure all of the correct profiles have access to your page and that each user profile can access the fields and objects referenced within the flow.

PamSalesforcePamSalesforce

Thanks everyone. I was able to find out the cause.

 

The issue was because the name of the queue was updated in the SFDC org but the flow was still using the old name to search for the owner record.

 

I still don't know why i didn't recieve email with the error details.

 

 

soxbonkerssoxbonkers
The person who receives the unhandled fault email is the person who last modified the flow. If that is you and you haven't received them you need to raise this to pemier support as a fault.I have and I have discovered that they have summarised the reasoning behind the flow errors so that you will only get an email once every 10 hours for similar faults- this is useless for development, you can create fault connectors to a plugin but some of my flows have hundreds of elements so this solution is not practical

 

Anita BhanarkarAnita Bhanarkar
@PamSalesforce, you can add yourself in Apex exception email recipient list:
Setup->Administration Setup->Email Administration->Apex Exception Email->Add Salesforce User 
NSK000NSK000
Hi guys.
Can you help me with this error.


Error element myWaitEvent_myWait_myRule_4_event_0_SA1 (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 3017A0000004X7T. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.. For details, see API Exceptions.

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: PO_Status_is_Closed_Issued_to_Vendor
Type: Workflow
Version: 3
Status: Inactive

Flow Interview Details
Interview Label: PO_Status_is_Closed_Issued_to_Vendor-3_InterviewLabel
Current User: Siva Kishore Nandyala (0057A000001aFk1)
Start time: 5/24/2017 8:59 AM
Duration: 86,460 seconds

How the Interview Started
Siva Kishore Nandyala (0057A000001aFk1) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = a4R7A000000S75dUAC
myVariable_current = a4R7A000000S75dUAC

ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "5/24/2017 8:59 AM"

DECISION: myPreWaitDecision_myWait_myRule_7

ASSIGNMENT: myWaitAssignment_myWait_myRule_7
{!cancelWaits} Add myWait_myRule_7
Result
{!cancelWaits} = "[myWait_myRule_7]"

DECISION: myPreWaitDecision_myWait_myRule_4
Executed this outcome: myPreWaitRule_myWait_myRule_4
Outcome conditions: and
1. {!myVariable_current.Advance_Payment_Required__c} (false) Equals false
2. {!myVariable_current.Status__c} (Closed - Issued to Vendor) Equals Closed - Issued to Vendor
3. {!myVariable_current.PO_Final__c} (false) Equals false
4. {!myVariable_current.Invoice_Included__c} (false) Equals false
5. {!myVariable_current.Employee_Reimbursement__c} (false) Equals false
Logic: All conditions must be true (AND)

DECISION: myDecision

DECISION: myDecision3
Executed this outcome: myRule_4
Outcome conditions: and
1. {!myVariable_current.Advance_Payment_Required__c} (false) Equals false
2. {!myVariable_current.Status__c} (Closed - Issued to Vendor) Equals Closed - Issued to Vendor
3. {!myVariable_current.PO_Final__c} (false) Equals false
4. {!myVariable_current.Invoice_Included__c} (false) Equals false
5. {!myVariable_current.Employee_Reimbursement__c} (false) Equals false
Logic: All conditions must be true (AND)

DECISION: myRule_4_pmetdec

WAIT: myWait_myRule_4
The waiting conditions for the following wait events were met.
Wait Event: myWaitEvent_myWait_myRule_4_event_0
Waiting Conditions:
1. {!myWaitEvent_myWait_myRule_4_event_0_postActionExecutionVariable} (false) Equals false
Logic: All conditions must be true (AND)

Event Type: Alarm: Absolute Time
Base Time = {!myVariable_waitStartTimeVariable} (5/24/2017 8:59 AM)
Offset Unit = Days
Offset Number = 1
Result
Started waiting at 5/24/2017 8:59 AM.

The interview started waiting at 5/24/2017 8:59 AM.

The interview was resumed at 5/25/2017 9:00 AM by Siva Kishore Nandyala (0057A000001aFk1).

WAIT: myWait_myRule_4
Wait event myWaitEvent_myWait_myRule_4_event_0 occurred.
The following values from the event were assigned to flow variables.
None.

RECORD UPDATE: myWaitEvent_myWait_myRule_4_event_0_SA1
Find all Purchase_Order__c records where:
Id Equals {!myVariable_current.Id} (a4R7A000000S75dUAC)
Update the records’ field values.
PO_Final__c = true
Result
Failed to update records that meet the filter criteria.

Error Occurred: The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 3017A0000004X7T. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.. For details, see API Exceptions.
udaykumar kudaykumar k
Is this error solved ?
KAUSIK ERANKIKAUSIK ERANKI
I am trying to Close the Cases automatically while the opportunity is being closed.

For this I have a process builder on opportunity which updates the Case status to Closed when the Opportunity is being closed.

I have another validation rule on Cases that which will check if these cases are being closed manually by user and the Case owner should not be assined to a Queue. 

I am getting this Flow error which I am not able to rectify, please let me know if you have any inputs on this.

Validation rule on Case:
AND(
 ISPICKVAL(Status, "Closed"),
 LEFT(OwnerId, 3)  <> '005',
 ISCHANGED(Status),
 Opportunity__r.Case_Status_Check__c=false
)

Flow Error:

Flow Details
Flow Name: Changing_Record_types_and_updating_the_Subject_on_Cases
Type: Record Change Process
Version: 4
Status: Active

Flow Interview Details
Interview Label: Changing_Record_types_and_updating_the_Subject_on_Cases-4_InterviewLabel
Current User: (0050U000000J8MY)
Start time: 1/8/2018 12:14 PM
Duration: 0 seconds

How the Interview Started
eranki (0050U000000J8MY) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = 0060U000002uNsLQAU
myVariable_current = 0060U000002uNsLQAU

ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "1/8/2018 12:14 PM"

DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions: and
1. {!formula_myRule_1} (true) Equals true
Logic: All conditions must be true (AND)

RECORD UPDATE: myRule_1_A1
Find all Opportunity records where:
Id Equals {!myVariable_current.Id} (0060U000002uNsLQAU)
Update the records’ field values.
RecordTypeId = {!formula_2_myRule_1_A1_7465875561} (0124100000131hM)
Result
All records that meet the filter criteria are ready to be updated when the next Screen or Wait element is executed or when the interview finishes.

RECORD UPDATE: myRule_1_A2
Find all Case records where:
Status Does not equal Closed
Opportunity__c Equals {!myVariable_current.Id} (0060U000002uNsLQAU)
Opportunity_Stage__c Equals Closed Lost
Update the records’ field values.
Status = Closed
Result
Failed to update records that meet the filter criteria.

Error Occurred: The flow tried to update these records: 5000U000001WiocQAC. This error occurred: ALL_OR_NONE_OPERATION_ROLLED_BACK: . For details, see API Exceptions.---The flow tried to update these records: 5000U000001WiohQAC. This error occurred: ALL_OR_NONE_OPERATION_ROLLED_BACK: . For details, see API Exceptions.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Please assign ownership of the case before updating to Closed status.. For details, see API Exceptions.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Please assign ownership of the case before updating to Closed status.. For details, see API Exceptions.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Please assign ownership of the case before updating to Closed status.. For details, see API Exceptions.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Please assign ownership of the case before updating to Closed status.. For details, see API Exceptions.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Please assign ownership of the case before updating to Closed status.. For details, see API Exceptions.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Please assign ownership of the case before updating to Closed status.. For details, see API Exceptions.