function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Med Usa1Med Usa1 

Pb during the deployment of a trigger

Hello,

 

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.