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
Elisheva DujovneElisheva Dujovne 

I am getting an error when running a flow: invalid cross reference id

Can someone help me understand the error?

This is the flow:

User-added imagethis is the first get records:

User-added image

and this is the error:

User-added imageUser-added image
AbhishekAbhishek (Salesforce Developers) 
https://salesforceoke.blogspot.com/2018/05/salesforce-api-invalid-cross-reference.html

Your query is answered above, try the suggestions.


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Elisheva DujovneElisheva Dujovne
I didn't understand anything in that link. I will try to explain better the issue: there is a PB triggering the flow when the customer makes a comment in the case. The flow is looking for the id of 2 custom fields: "Assignee" and "AE engineer". I check the user that started the flow (as described in the error) and he has no read rights to the custom field "AE engineer". So, I thought maybe that was the reason, but before and after we got that error, we made comments in the case after login as the same user and didn't receive the error. Seems to be a temporally Salesforce error. So, if you can please explain in simple words what is the error and why we got it I will really appreciate it. Thanks