Closed DineshARIA closed 3 years ago
I see following error 15:50:22.0 (73693692)|FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject
That means one of the following:
Those are the only 2 things I can think of
I see following error 15:50:22.0 (73693692)|FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject
That means one of the following:
- Guest user doesn't have View access on Survey object
- Sharing rule is not properly setup for Guest user on survey object
Those are the only 2 things I can think of
I am able to access surveys but not able to submit them. I have given access to all related 4 objects along with access to Cases, Contacts, Users. But, still I face the issue of 'INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []'. I have also made them 'Public Read Only' for external users. Can you please help me in fixing this. I can also connect regarding this issue.
You sent the debug logs for visualforce. I will need Apex part to see what's going on. Having said that, you may have an older version. Please make sure to get the latest code.
If you check https://github.com/SalesforceLabs/survey-force/blob/master/force-app/main/default/classes/ViewSurveyController.cls, Your code on line# 402 should match
I am able to fix the issue by updating the latest code.
Thanks, Dinesh
It was working fine for few years now. However, I am now facing 'Authorization required' now. I have followed all the steps required for installation and have the latest Survey Force app. I have also created the sharing rule required since Salesforce tightened security. I also checked all the permissions required for guest user. However, it is not working. Can you help me with this?
Thanks, Dinesh