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
Fahad Ali Khan 4Fahad Ali Khan 4 

Email alert action fails in process builder when related user value is null or empty.

Getting the following exception on email alert action when related user value is used as Email recipient.  
"The record couldn’t be saved because it failed to trigger a flow"
Fabio PalladinoFabio Palladino
Hi Fahad,
In case of error the creator of the process builder receives an email, please post error details contained in this email that you would have received.

Let me know
 
Fahad Ali Khan 4Fahad Ali Khan 4
Thanks Fabio.

Below is the error we got in the email:

An error occurred at element myRule_3_A1 (FlowActionCall).
Probably Limit Exceeded or 0 recipients

This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange (https://success.salesforce.com/ideaSearch).
Flow Details
Flow Name: Portal_Case_Comment_Changed
Type: Workflow
Version: 4
Status: Active
Flow Interview Details
Interview Label: Portal_Case_Comment_Changed-4_Case
Current User: Harry Potter (00590000004MW5k)
Start time: 8/11/2016 10:43 PM
Duration: 0 seconds
How the Interview Started
Harry Potter (00590000004MW5k) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = 500O000000A23hVIAR
myVariable_current = 500O000000A23hVIAR
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "8/11/2016 10:43 PM"
DECISION: myDecision
DECISION: myDecision2
Executed this outcome: myRule_3
Outcome conditions: and
1. {!formula_myRule_3} (true) Equals true
Logic: All conditions must be true (AND)
DECISION: myRule_3_pmetdec
CASE.SEND_EMAIL_ALERT_UPON_NEW_PORTAL_USER_CASE_COMMENT (EMAIL ALERTS): myRule_3_A1
Inputs:
SObjectRowId = {!myVariable_current.Id} (500O000000A23hVIAR)

Error Occurred: Probably Limit Exceeded or 0 recipients
 
Fabio PalladinoFabio Palladino
Hi Fahad,
I think the problem is in the Email Alert configuration that you use in this process builder.
Please check Email Alert configuration specialy recipient configuration.
If you want post the Email Alert configuration here and I'll try to help you.

Regards
Fahad Ali Khan 4Fahad Ali Khan 4
Kindly help me out about email alert configuration. 
Alex Gomez 19Alex Gomez 19
This solved my issue:

https://help.salesforce.com/articleView?id=000272512&language=en_US&type=1