SOQL Limit 21 and 301 Message

  • 1
  • Question
  • Updated 4 years ago
  • (Edited)
I have conditions set on two different models and when I inspect the element I get SOLQL Limits 21 and SOQL Limits 301. Does anyone know what it means?

  1. soql: "SELECT OpportunityId,Opportunity.Name,Name,TeamMemberRole,OpportunityAccessLevel,UserId,User.Name,User.SmallPhotoUrl,Opportunity.OwnerId,Opportunity.Owner.Name,Opportunity.Owner.Id,User.Id,Id FROM OpportunityTeamMember LIMIT 21"
Photo of Tami Lust

Tami Lust

  • 5,456 Points 5k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,026 Points 5k badge 2x thumb
Check your model definition.  I suspect you are limiting it to 20 records per query.