I have created a site.com and in the site I have added some fields from my custom object to get display on the site.com. In the preview it is working fine but after i publish the site.com i am not able to view the records i am getting an error.

Error We're unable to retrieve your data due to an error.

Please guide me what is the issue.


Depending if your are accessing your published page as an authenticated or unauthenticated user, you have to make sure the user has the appropriate access to the custom object. Unauthenticated users use the site's guest user profile to access custom objects. Remember to modify FLS as well if you have any custom fields. See the Data Repeater and Guest User Profile help sections for more info.

Preview is using your currently logged in user which is why it works differently.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.