Forum Discussion

atlangley's avatar
atlangley
Copper Contributor
Jan 03, 2024
Solved

Field Skipped When Multiple SharePoint Tasks Requested

I have encountered some unexpected behavior when using Microsoft Graph to request data from SharePoint task lists. I discovered this using MS Graph in C# and I have reproduced it in https://developer.microsoft.com/en-us/graph/graph-explorer

 

Here is an example of a query for one specific task (Id: 61) requesting fields: 'Title', 'Milestone', and 'Area' ('Milestone' and 'Area' are custom managed metadata fields). In this case, all columns are returned properly.

 

 

The next query is identical except, instead of requesting only one task, I am requesting all of the tasks in the list. This time the 'Milestone' field is not included in the result for item 61.

 

This happens with every task in the list. If I request an individual task by id I can retrieve all fields correctly but if I request multiple tasks I cannot retrieve the 'Milestone' field.  What could be causing this behavior?

 

Thank you!

  • This bug is fixed now. Microsoft created a new header to handle this scenario.
    Prefer: TryReturnSelectedFieldsInLargeListWarningMayThrottle
    With the header set this way I am receiving the correct data for all the fields I request.

4 Replies

  • atlangley's avatar
    atlangley
    Copper Contributor

    This bug is fixed now. Microsoft created a new header to handle this scenario.
    Prefer: TryReturnSelectedFieldsInLargeListWarningMayThrottle
    With the header set this way I am receiving the correct data for all the fields I request.

  • atlangley's avatar
    atlangley
    Copper Contributor
    Microsoft's original ETA for this fix was February 2024. We are now in May 2024 and the bug still is not fixed.
  • atlangley's avatar
    atlangley
    Copper Contributor
    Microsoft has confirmed that this is a bug and say the fix will be rolled out by the end of February 2024.

Resources