You need to sign in to do that
Don't have an account?

I have a flow that is kicking out a "Bind variables only allowed in Apex code" error. Does anyone understand what could be causing this?
I hae a flow that is returning this error after a pause. Can you help me understand why this would be occuring?
Error Occurred: This error occurred when the flow tried to look up records: Questionnaire_Number_of_Returns__c, Owner:User FROM Lead WHERE ((Id = '00Q1800000Bmhk1EAB')) ^ ERROR at Row:1:Column:52 unexpected token: ':' (Bind variables only allowed in Apex code).
Error Occurred: This error occurred when the flow tried to look up records: Questionnaire_Number_of_Returns__c, Owner:User FROM Lead WHERE ((Id = '00Q1800000Bmhk1EAB')) ^ ERROR at Row:1:Column:52 unexpected token: ':' (Bind variables only allowed in Apex code).
On other places just use = withouth the :
if it solves your issue, please mark this answer as correct, it may help others.
Good luck.
This appears to be syntax issue. Can you share a screenshot of your flow at the pause where it is throwing an error?
Related issues:
https://salesforce.stackexchange.com/questions/32451/bind-variables-only-allowed-in-apex-code
https://salesforce.stackexchange.com/questions/165029/bind-variables-only-allowed-in-apex-code-when-comparing-fields-from-two-differ
https://salesforce.stackexchange.com/questions/262391/getting-bind-variables-only-allowed-in-apex-code-when-attempting-this-query
Thanks
The solution is to use the field "OwnerID" which is a text field within the body of the Lead, instead of trying to navigate to Lead->Owner (User)->ID