Skip to main content
Hi everyone,

I am hitting this error in a Unit Test on an org where I am converting multiple leads in bulk. The same Unit Test passes correctly if I only convert 1 Lead. But when I try to convert 50 at once, the test method does not pass and in the debug logs I found this error:

FATAL_ERROR | System.LimitException: Too many SOQL queries across namespaces: 1101

I have googled and searched but either noone has posted about this issue or my googlefu skills are lacking. I did find a lot of hits of a similar error of just hitting the limit, but this "across namespaces: 1101" is what's making me think this is another case.

If anyone has a clue what it could be or where I could look at, I'd appreciate it.

Thanks,

Nahuel

 
5 Antworten
  1. 30. Dez. 2017, 18:55
    about your statement - "...we are doing 1 Lead Insert operation and 1 Lead Convert operation..." can you share your code sample here (just the part that invokes Database.convertLead)?

    Database.convertLead is overloaded, one accepts one lead only, and the other accepts a list of leads to convert. Inorder for you to make bulk calls you'd have to be invoking the later. There is a good chance you already know this, but in case you missed.

    -Rajiv
0/9000