You need to sign in to do that
Don't have an account?
Authorization Required displays after successful insert
Hello,
I create a new Site and Visualforce page form to collect survey data from a public site and insert a record into a custom object. All the records are there with complete data. The problem is that the Authorization Required displays after saving the form. Debug Log only shows which VF pages are being accessed and no error. I viewed as Admin and the authorization error referenced the ID of the record that was successfully created. I've tried every permission from Read Create to Read, Create, Edit, and Delete but same result; records are created but the error page displays.
I haven't tried to redirect from the form after completion, although rerender didn't help. I am using standardController with my custom object. Maybe I'm missing some Apex and need to write a controller? Any assistance is appreciated.
I create a new Site and Visualforce page form to collect survey data from a public site and insert a record into a custom object. All the records are there with complete data. The problem is that the Authorization Required displays after saving the form. Debug Log only shows which VF pages are being accessed and no error. I viewed as Admin and the authorization error referenced the ID of the record that was successfully created. I've tried every permission from Read Create to Read, Create, Edit, and Delete but same result; records are created but the error page displays.
I haven't tried to redirect from the form after completion, although rerender didn't help. I am using standardController with my custom object. Maybe I'm missing some Apex and need to write a controller? Any assistance is appreciated.
https://developer.salesforce.com/forums/?id=906F00000008z46IAA
All Answers
No, not Communities. It's an embedded form (or will be) on a website. I set up a new Site in Force.com Sites, created a Visualforce page for the form, and set up the Site Guest User to have permissions on the VF page and the custom object (which does not reference any other object). As I said, records are created just fine. Of course, there is no error when the form is used within Salesforce.
https://developer.salesforce.com/forums/?id=906F00000008z46IAA