+ Start a Discussion
Harsha S 2Harsha S 2 

Data Not Available error: while trying to access VF page

Hi All,

We are receiving "Data Not Available" error while trying to access a VF page with a standard controller and extension.

It is working fine in one sandbox and not in other.
Even in other sandbox, it is working fine for some users and not for some users.

Do we have data availability issues? How to resolve this error ?
Balaji BondarBalaji Bondar
Hi Harsha,

This will help : https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_keywords_sharing.htm
RamuRamu (Salesforce Developers) 
When you are using Standard controller with or without extention and use detail component, the page abides to user permissions. This might be the cause of the error. If this is the case, you would need to set the user profile permissions appropriately and try to access the VF page again.

Hope this helps !!
Harsha S 2Harsha S 2
Hi Ramu,

I tried changing the mode to mode = 'edit' and 'maindetail' and didn't worked :(

which permissions i need to exactly set? even for admin profile its not working. 
Harsha S 2Harsha S 2
Yes u r right!! I have standard contoller with extension and VF Page mode='detail'

do i need to give any other permission for the user on custom object on which this standard controller with extension is built?