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

Too many SOQL queries : 101
Hi All,
I know this is likely to be a two tier question, but looking first of all for some guidence on how i can find out what is causing the problem here.
Many thanks in advance:
This is the trigger that is causing my problem - im trying to activate it and its throwing the errors above. but i NEED this trigger!!
Hi ,
Made few changes to your trigger.
Hope this help!!
-Sam
Hi,
Many thanks for your assistance, I am getting the following upon deploy:
This is the other trigger referenced in that screenshot:
Any reason you're doing this on an after update trigger rather than before update trigger?
I'm supprised you're not hitting 'Maximum trigger depth exceeded' exception. Your trigger looks like it will be stuck in an infiniate loop.
Hi Alex,
The SARefreshSI trigger is written on Service_Agreement__c object but the for loop is based on another object Service_implementation__c object, so you cannot have trigger.new in the for loop.
-Sam
Effectivty, what I am trying to acheive here is when the Parent object is updated in anyway (Service_Agreement__c) that the Child record (Service_Implementation__c) which there will only ever be one of (enforced by validation) is updated in some way.
You are right, I was just crosseyed yesterday. Can't believe I made that mistake, but it happens =)
I'll poke at your other trigger later today if time allows.
It's probable, given that the error is happening during test class execution, that the sum of the queries in your test classes is greater than 100. If this is the case, are you using test.startTest() and test.stopTest() to limit the execution scope to an individual test method?
I mean, it is possible that there's something wrong with your code - but if there were, it would probably show up during regular testing in your org, right?
Hope this helps,
Hi,
These are the tests referenced in the error:
MasterTestClass
TestTopTrigger
Hi - does anyone have any ideas on this?