Debug works fine, flow however doesn't run - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
I. S.I. S. 

Debug works fine, flow however doesn't run

Ahoy wise people of answers.

I have a flow and it should run, it runs fine in debug.
Once the user who needs to run the flow opens it, he sees this:

The flow couldn't find the "Get_sObject" resource.

Anyone any advice where to look?
In debug it's fine...
Best Answer chosen by I. S.
I. S.I. S.
The issue was unknow.
Recreated the flow from scratch and issue is gone.

All Answers

Shubham GuptaShubham Gupta
Hi,

How can a UserId be equal to AccountId? Can you debug what exactly Id is getting populated in {!UserContactIDVar} ?
I. S.I. S.
Old screenshot, it is equal now to Contact ID.

I get Null value. 
The community user has contactId field however the flow gets an empty result
I. S.I. S.
User-added image
I. S.I. S.
FAST LOOKUP: Get_Contact
Find all Contact records where:
Id Equals {!UserContactIDVar} (null)
Shubham GuptaShubham Gupta
On the flow, are you sure you're passing the recordId in the variable {!UserContactIDVar}?
User-added image

Since the flow works fine in the debugs so I suspect the recordId is not getting passed.
I. S.I. S.
My flow is in the Community I do not have such option as you do
 
I. S.I. S.
User-added image

here it is the variable that should get the ID
I. S.I. S.
The issue was unknow.
Recreated the flow from scratch and issue is gone.
This was selected as the best answer