+ Start a Discussion
Stefano AmentaStefano Amenta 

Visual Flow: Insufficient access on cross reference entity

Hi!

I have built a visual flow and hosted it on a public Force site (guest user is called "Teacher Profile").

The guest user has CREATE, READ and EDIT access to the custom object referred by the flow.

The guest user also has read and edit access to any field of the custom object.

When I run the flow, I keep getting the following error and I can't figure out why:

Error element Migrate_form_to_SF (FlowRecordCreate).
This error occurred when the flow tried to create records: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: insufficient access rights on cross-reference id.


I understand this is about permissions, but again the guest user has permissions to all the fields listed in "Migrate form to SF".

thank for your help.
Stefano
Best Answer chosen by Stefano Amenta
Stefano AmentaStefano Amenta
Finally, I found the issue.

The master-detail field in the custom object was set to "Read/Write: Allows users with at least Read/Write access to the Master record to create, edit, or delete related Detail records."

After switching to Read Only, the flow worked.

All Answers

Sampath SuranjiSampath Suranji
Hi,
As I see you are going to access a lookup field or master detail field which the user doesn't has sufficient access rights. Please double check the fields which are referencing in the flow.

regards
Sampath
Stefano AmentaStefano Amenta
Hi Sampath,

thanks for the reply.

The guest already has read and edit access to the lookup field referenced in the flow.
Stefano AmentaStefano Amenta
Finally, I found the issue.

The master-detail field in the custom object was set to "Read/Write: Allows users with at least Read/Write access to the Master record to create, edit, or delete related Detail records."

After switching to Read Only, the flow worked.
This was selected as the best answer
AthiSachiAthiSachi
hello Stefano Amenta,
Can you explain further? where did you change to "read only" ?
Raji MRaji M
Hi AthiSachi,

You need to change the Sharing Settings from Read/Write to Read Only on the field not on the OWD.
I hope this helps.

Thanks,
Raji M