You need to sign in to do that
Don't have an account?
verynewbie
Deploying code...
Hi
I have written a trigger in my sandbox .I am trying to deploy that to production along with my test class(100% code coverage)
I got error in validating.My package is saying too many soql queries.
I ran the test class indivually in sandbox ...all methods are passed with 87% code coverage.
When i run the same class in production its giving me error.What might be the reason?any suggestions?
weird but finally deployed it and reactivated my package.
All Answers
and run this test class in sandbox and setup debug log.
open the log after you run the test method and check the no of soql queries it should be near 100 ( close to limit)
Now you can remove/comment some code in your test method or split it into 2 test classes. this should help to resolve your issue
weird but finally deployed it and reactivated my package.