Share via

OneDrive API - image property in filter query string parameter returns Bad Request

Dawid 0 Reputation points
2025-01-14T11:59:31.1233333+00:00

The following request

https://graph.microsoft.com/v1.0/me/drive/root:/{path}:/children?filter=folder ne null or image ne null

returns Bad Request (code: "notSupported", message: "Operation not supported").

This is strange because my application was working for a very long time and suddenly it throws an error only for one OneDrive account. For other OneDrive accounts the same query works correctly.

The problem here is "image ne null", because the query

https://graph.microsoft.com/v1.0/me/drive/root:/{path}:/children?filter=folder ne null

works correctly.

OneDrive account type is personal.

What happened that suddenly the filter 'image' stopped working only for one account?

Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft Security | Microsoft Graph

Your answer

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