I have a code which retrieves and displays the results in the VF page from REST Web-Service.
In one sandbox , it's working fine. But in other sandbox it returns following error:
Limit Exception Too many query rows: 50001 An unexpected error has occurred. Your solution provider has been notified. (Database).
Could any one of you tell me the cause of this error?