Graph client query using filter on folder name stopped working (as from 11 feb 2025)

Marc Van Camp 0 Reputation points
2025-02-25T14:34:25.0566667+00:00

Using a graph client query to get a SharePoint folder information by folder name stopped working. It has been working for months until February 11, 2025. (code block below)

It returned the error:
Microsoft.Graph.Models.ODataErrors.ODataError: Filtering non-fields properties other than parentReference/id eq {value} is not supported.

Updating Microsoft Graph nuget package to the latest stable did not solve this issue.

How to solve this?

            folderSearch = await _graphClient.Drives[driveId]
                                             .Items
                                             .GetAsync(requestConfig => requestConfig.QueryParameters.Filter = $"Name eq '{folderName}'");
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,263 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.