Skip to content

Commit

Permalink
Merge pull request #430 from SalesforceLabs/429-when-load-the-app-for…
Browse files Browse the repository at this point in the history
…-the-first-time-i-have-the-error-exceeded_id_limit-entitydefinition-does-not-support-querymore-use-limit-to-restrict-the-results-to-a-single-batch

fix: add a limit to the query and filtering with the sharing table an…
  • Loading branch information
VinceFINET authored Jul 26, 2024
2 parents aa26802 + c78d92f commit 1a3820f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export class OrgCheckDatasetObjects extends OrgCheckDataset {
'FROM EntityDefinition ' +
`WHERE PublisherId IN ('System', '<local>', '${localNamespace}') ` +
'AND keyPrefix <> null '+
'AND DeveloperName <> null '
'AND DeveloperName <> null '+
`AND (NOT(keyPrefix IN ('00a', '017', '0D5', '02c', '01j', '0jE','0Jf','0Ob','00I','0aA'))) `+ // filtering the feed, share, history, ...
'LIMIT 2000 ' // Just to make sure we are not throwing EXCEEDED_ID_LIMIT and still got the first 2000 rows
}])
])

Expand Down

0 comments on commit 1a3820f

Please sign in to comment.