You need to sign in to do that
Don't have an account?
krishnag
too many query rows 501
can anybody explain me what is this error.I am trying to deploy a contoller class and visualforce page into production and i am geting this error.
system.limit.exception: Too many query rows 501.
solved the problem i added the test.satrttest() and test.stoptes() and also instantiated the account object so that it took only the test data and deployed it succesfully.
All Answers
In my opinion, this error is coming due to the test method. Instead of using single test method, try using two test methods. It seems that the current test method is reaching the query limit.
Hope this helps.
Is your test data completely isolated from the existing, real data? I usually see this problem when I've not excluded the existing data and suddenly there are 20000 more accounts than in my dev sandbox!
u r right Bob thats what happening.I am facing this problem when i tried to deploy its having records more than sandbox
So you'll need to restructure your test to only use data that it has created. Can you post the code?
solved the problem i added the test.satrttest() and test.stoptes() and also instantiated the account object so that it took only the test data and deployed it succesfully.