SOQL Limit 21 and 301 Message

  • 1
  • Question
  • Updated 3 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?

Example:
  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,280 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Irvin Waldman

Irvin Waldman, Champion

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