You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Similar to the issue mentioned over here: jamessimone/apex-dml-mocking#2 (which has been fixed by @jamessimone ) I discover the same issue also in this framework (which is pretty cool by the way)
So, in my scenario I do a query on account team member by providing a huge list of account ids
I've created a small Repository which has a single method:
Error on line 126, column 1: System.QueryException: invalid ID field: ...
Class.QueryBuilder.executeQuery: line 126, column 1
Class.QueryBuilder.doGetQueryResults: line 97, column 1
Class.SObjectQueryBuilder.getQueryResults: line 210, column 1
When I debug the query right before execution we can clearly see, that the last "entry" is just some dots, and most of the Ids are missing
Fun fact: when I change the parameter from Set to List it works smoothly.
public with sharing classAccountTeamMemberRepositoryextendsSObjectRepository {
publicoverrideSObjectTypegetSObjectType() {
returnSchema.AccountTeamMember.SObjectType;
}
//changed from Set to ListpublicList<AccountTeamMember> getAccountTeamMembersByAccountIds(List<Id> accountIds) {
returnnewSObjectQueryBuilder(this.getSObjectType())
.addAllFields()
.filterBy(newQueryFilter().filterByField(newQueryField(Schema.AccountTeamMember.AccountId), QueryOperator.IS_IN, accountIds))
.getQueryResults();
}
}
Hi @jongpie and @jamessimone
Similar to the issue mentioned over here: jamessimone/apex-dml-mocking#2 (which has been fixed by @jamessimone ) I discover the same issue also in this framework (which is pretty cool by the way)
So, in my scenario I do a query on account team member by providing a huge list of account ids
I've created a small Repository which has a single method:
When I run this in Anonymous Apex with a set of more than 12 account Ids, I get an error
When I debug the query right before execution we can clearly see, that the last "entry" is just some dots, and most of the Ids are missing
mhh... ?! :-(
The text was updated successfully, but these errors were encountered: