You need to sign in to do that
Don't have an account?

Too Many SOQL Queries: 101
I am currently working on getting test cases to work so I can start to alter the main code, however whenever I try to run my test cases they fail and I get the following error "too many SOQL queries: 101." When I check to see where this error is occuring it points to the top of the program at "@isTest(SeeAllData=true)." What does this mean , and how would I go about fixing the problem?
Check out SFDC best practices under SOQL and bulkification - there are dozens of articles on this topic
It is possible this is not the issue and you simply have a too complex testmethod and need to break it into multiple methods.
So, We should always create our test data in test class and never rely on the org's data.
Hope this helps!