Forum Discussion
List query column lookup threshold error
- Aug 30, 2023
Hi SunVolt ,
in that case i would rewrite the mapping module to take in multiple lists with different properties and merge them together in a custom object and pass that to your API. The CSOM entities are lazily loaded and I don't think that you can instantiate them manually.
But perhaps you can get around all of that. You only seem to be loading two elements. If you only need a few items it might be easier to fetch them by IDList myList = context.Web.Lists.GetByTitle("Listtitle"); ListItem listItem1 = myList.GetItemById(21); ListItem listItem2 = myList.GetItemById(25); context.ExecuteQuery();
Try that. You might get arround the view limitation like that. A view and fetching an item directly behave differently.
Best Regards,
Sven
If I have 10 lookup / person fields - NO issues.
After adding the 11th lookup / person field - there are issues with getting data in Power Apps.
With in the SharePoint list - NO issues, working fine having ALL the fields in any Views.
NOTE (as I understood): The limit is 12 like lookup / person fields (10 + 2 system ones - "Created by", "Modified by")
Found - "Another option is to use indexed columns and filtering to keep the view size for the list to 5,000 items or less."
If you have MORE then 12 like lookup / person fields (10 + 2 system ones - "Created by", "Modified by"), INDEXING doesn't help ! - verified.
SO, the only way to avoid errors in Power platform - to have LESS than 12 like lookup / person fields (10 + 2 system ones - "Created by", "Modified by").