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
BMT-DavidBMT-David 

FLOW_ELEMENT_ERROR|INSERT --- INSERT FAILED --- ERRORS : (INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY) insufficient access rights on cross-reference id, |FlowRecordCreate|RC_Student_Class_Association

FLOW_ELEMENT_ERROR|INSERT --- INSERT FAILED --- ERRORS : (INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY) insufficient access rights on cross-reference id, |FlowRecordCreate|RC_Student_Class_Association
Visual Flow issue in force.com site

We have created flow "Student Subscription" force.com site in the sandbox
Which combines the use of a Force.com Site and a Force.com Visual Flow 
Within a Public "Guest User" page.

The student subscribes throught the wizard and then it is redirected to check out (Credit Card processor interface)
All features were tested separately, but suddenly stopped working.

Flow was working when contact inserted then flow execution entered into Rollup helper (rh2) managed package and rollback the inserted contact.

So, when we tried to insert Student_Class_Association__c records from force.com site then we are getting following error.

Error : 
INSERT --- INSERT FAILED --- ERRORS : (INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY) insufficient access rights on cross-reference id, |FlowRecordCreate|RC_Student_Class_Association

We have checked field level security and object permission for site user profile. We have set everything properly in sandbox. Still we are getting this issue.

You can check issue in debug log while executing flow from below site url.

https://devpro-mofetpayment.cs18.force.com/

Steps to Reproduce - Hebrew Student Subscription Force.com Site URL:
https://devpro-mofetpayment.cs18.force.com/
You have to go through the subscription wizard as follows:
Screen 1: Choose: אשדוד + Press Next
Screen 2: Choose: Test Institute + Press Next
Screen 3: Choose: Test Qualification + Press Next
Screen 4: Choose: fill in mandatory fields: 
   "Firstname
    Lastname
    Idnumber< 9 digits
    Gender<set to default
    Birthday: dd/mm/yyyy
    Home phone: 0000000000
    Student email 
    - <not mandatory>
    - <not mandatory>
    - <not mandatory>
    - <not mandatory>
    Parent email
    - <not mandatory>
    - <not mandatory>
    - <not mandatory>" + Press Next
Screen 5: display student summary + Press Next
Screen 6: Press Next
Redirected to ERROR MESSAGE Force.com Site Maintenance Screen

Browser Type: Chrome & Internet Explorer (same problem)
Carlos Campillo GallegoCarlos Campillo Gallego
Hi David,

By the error message you are getting it seems that the problem is in record access, Have you checked the OWD of all the objects that get affected while creating these records? My bet is that the problem is there, at least is the best I can imagine without debugging and so on...

Regards,