SalesforceLabs / survey-force

88 stars 63 forks source link

Unable to Save Survey "Error: Some error occured while saving response" (post Summer 20 release) #73

Closed Walterchase25 closed 4 years ago

Walterchase25 commented 4 years ago

Unable to Save Survey "Error: Some error occurred while saving response"

Debug Log: 15:37:52.0 (42463835)|USER_DEBUG|[270]|DEBUG|Here 2 15:37:52.0 (42757646)|METHOD_ENTRY|[327]|01p1E000000ufTQ|ViewSurveyController.AddSurveyTaker() 15:37:52.0 (44030331)|DML_BEGIN|[389]|Op:Insert|Type:SurveyTaker__c|Rows:1 15:37:52.0 (60673707)|DML_END|[389] 15:37:52.0 (61008416)|EXCEPTION_THROWN|[389]|System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: 5001E00001OhcAD: [] 15:37:52.0 (61456153)|METHOD_EXIT|[327]|01p1E000000ufTQ|ViewSurveyController.AddSurveyTaker() 15:37:52.0 (61695485)|USER_DEBUG|[342]|DEBUG|Exception: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: 5001E00001OhcAD: [] 15:37:52.0 (62092831)|VF_PAGE_MESSAGE|Some error occured while saving response 15:37:52.0 (62122857)|SYSTEM_MODE_EXIT|false

MicrosoftTeams-image (3)

jrattanpal commented 4 years ago

Following is the error as per the log: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: 5001E00001OhcAD: []

It means the survey user doesn't have rights to Case object (500). Please check your permissions for the Case object for Site Guest user. You need Read access as it's simply updating lookup field (not editing case).

Please check https://github.com/SalesforceLabs/survey-force for more information on permissions for Case and Contact objects.

On Tue, Jul 21, 2020 at 12:27 PM Walterchase25 notifications@github.com wrote:

Unable to Save Survey "Error: Some error occurred while saving response"

Debug Log: 15:37:52.0 (42463835)|USER_DEBUG|[270]|DEBUG|Here 2 15:37:52.0 (42757646)|METHOD_ENTRY|[327]|01p1E000000ufTQ|ViewSurveyController.AddSurveyTaker() 15:37:52.0 (44030331)|DML_BEGIN|[389]|Op:Insert|Type:SurveyTaker__c|Rows:1 15:37:52.0 (60673707)|DML_END|[389] 15:37:52.0 (61008416)|EXCEPTION_THROWN|[389]|System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: 5001E00001OhcAD: [] 15:37:52.0 (61456153)|METHOD_EXIT|[327]|01p1E000000ufTQ|ViewSurveyController.AddSurveyTaker() 15:37:52.0 (61695485)|USER_DEBUG|[342]|DEBUG|Exception: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: 5001E00001OhcAD: [] 15:37:52.0 (62092831)|VF_PAGE_MESSAGE|Some error occured while saving response 15:37:52.0 (62122857)|SYSTEM_MODE_EXIT|false

[image: MicrosoftTeams-image (3)] https://user-images.githubusercontent.com/68604949/88080707-06790d80-cb45-11ea-8045-cf4db11ea162.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/survey-force/issues/73, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV6HLHZ5FAQPX6VKB3V3R3R4W6YNANCNFSM4PDYXCTQ .