1 respuesta
HI Shraddha,I'm afraid you will need to loop in a member of the development team to make changes in the code. Basically,you need to modify the trigger by enabling the debug logs and check where the SOQL limits are being consumed and try reducing the count to avoid the error.Sample debug statement: System.debug('Total Number of SOQL Queries allowed in this Apex code context: ' + Limits.getLimitQueries());Details on how to debug this error are mentioned in this post- https://salesforce.stackexchange.com/questions/21752/system-exception-too-many-soql-queries-101 which should help you get startedBest practices to be followed are:-Avoid SOQL queries that are inside FOR loops.-Make sure you don't have a recursive loop calling a SOQL.-Do not do any DML/CRUD inside a for loop.-Avoid more than one DML on single object in single transaction - because each DML invokes trigger of related object can cause addition of SOQL count.-Avoid too many field updates in process builders in different conditional branches. Each branch runs a DML and initiate trigger execution.-If there are lot of business processes and logic in your trigger then design and isolate processes with help of future and batch if needed.-Recursion Handling - To ensure a trigger is not running recursively.Minimize the No.of SOQLs by merging the queriesRelated: https://help.salesforce.com/articleView?id=000331875&type=1&mode=1 If this information helps, please mark the answer as best.Thank you