I am currently trying to update a set of data, but I am receiving the error "Too Many SOQL Queries: 101". From what I have seen while searching around, this is normally an error that occurs while querying inside a loop, but that is not the case for what I wrote. Any ideas for why I'm getting the error?
List<object1__c> objectList = [SELECT Id, checkboxField__c FROM Interest__c WHERE Id in (SELECT Object1_Id__c FROM object2__c)];
for (object1__c a: objectList)
{
a.checkboxField__c = true;
}
update objectList;
object2__c is a custom object that has a custom field on it called Object1_Id__c which is a lookup to to object1__c.