While trying to convert a Lead in Lightning view in Production, we are getting the “Too many SOQL queries: 101” error. Conversion works fine in Production in Classic. The issue doesn't occur or, is replicable in the lower environments or in Classic.
Below are the observations from troubleshooting:
1. The data is the same in all the environments (development, testing, production) and we are trying to convert, one lead at a time. In the sandbox, the number of SOQL executed is 87 and 94. In Production, 101 error occurs during the Lead after trigger execution.
2. We have verified/compared the flow between the Classic and Lightning, and found no diffrence. The issue is occurring only in Lightning.
3. Also have verified the SOQL thats executed inside loop, we didn’t notice any SOQL repeating in the loop.
Any help/suggestions are appreciated. TIA!
Did you try converting one object at a time e.g. Account only, then others......
Any debug log ?
Did you try enabling detailed log ?