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
Abhishek_NewAbhishek_New 

Data is not Saving while saving via Site but getting Saved while by Pages.

I have created a customer registration form on Customer object(custom).I am able to save data while using pages...but while using sites  data is not getting saved..

 

Error :Authorization Required

You must first log in or register before accessing this page.                 
If you have forgotten your password, click Forgot Password to reset it.   

 

In Debug log:

25.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
06:56:56.184 (184988000)|EXECUTION_STARTED
06:56:56.185 (185028000)|CODE_UNIT_STARTED|[EXTERNAL]|06690000001XVeY|VF: /apex/Unauthorized
06:56:56.067 (200281000)|CUMULATIVE_LIMIT_USAGE
06:56:56.067|CUMULATIVE_LIMIT_USAGE_END

06:56:56.200 (200306000)|CODE_UNIT_FINISHED|VF: /apex/Unauthorized
06:56:56.200 (200320000)|EXECUTION_FINISHED

 

I have given permission in candidate object.

 

in public Access Settings-->perticular profile-->Custom Object Permissions-->read/create/edit/delete/view all/modify all to the candidate object.all access I have given.Still getting the authorisation error while saving data..

              

Ankit AroraAnkit Arora

Is this log a Guest Profile Log?

 

Please check the field visibility for site profile (as you have already checked the object permissions).

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page