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
Chetna SrivastavaChetna Srivastava 

Process builder issue: Time scheduled action fails to trigger because user who initiated the flow is no longer active

I have built a Process Builder and email alert is triggered after 20 days of record creation but in some scenarios the user who created the record is deactivated within those 20 days which leads to the error: Error Occurred During Flow "Flow Name": Inactive User 
"Every waiting flow interview has an associated user — the person who caused the interview to start waiting. If that user is inactive, the interviews can't resume."
Is there any way to fix this issue except keeping the user active? because due to certain requirements or new users coming in we have to deactivate the old users and can't keep them active only for automation to trigger. 
SandhyaSandhya (Salesforce Developers) 
Hi,

It isn't possible to change the owner/user for a "waiting" flow interview. The best (and only, I believe) way to handle this is to re-activate and then "freeze" the user. Once all the flow interviews related to the user are complete, you can deactivate the user's account.
There is an open feature request to allow flows to function when the associated user is inactive, but it's still under the point threshold:

https://help.salesforce.com/articleView?id=000230556&type=1

https://success.salesforce.com/ideaView?id=0873A000000cM8AQAU
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
Chetna SrivastavaChetna Srivastava
Thanks for your response Sandhya. I did notice that article but freezing would not allow to re-use the license.