+ Start a Discussion
Med Usa1Med Usa1 

Pb during the deployment of a trigger



I try to deploy my trigger and its test class in production but I have this error :

Failure Message: "System.LimitException: Too many query rows: 50001", Failure Stack Trace:...


The code coverage of this trigger is 100%.


I think the pb is due to another test class for another trigger but the both (the 2 triggers and the 2 test classes) are on the same object (Opportunity).

The other trigger is already deployed.


I don't understand why the other Test Class is executed and for the wrong trigger ? Why don't it take the good test class ?

Could you explain to me and give me a solution for this pb ?


Thank you.