Share via

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

Anonymous
2025-01-13T22:07:59+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 | Install, redeem, activate | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-01-14T07:56:45+00:00

    Dear Dawid,

    Hello! Welcome to the Microsoft Community. I'm glad to be able to assist you. If I misunderstand your question, please let me know promptly.

    It looks like you're having some issues using the OneDrive API. I understand the frustration this issue is causing you.

    I really wish I could handle your issue, but, unfortunately, it is beyond the scope of community support. To me, you are the expert on this. It is more appropriate to post it on Microsoft Learn (English only), where there are more advanced forums and more users posting these issues, and you can click "Ask a Question" where experts can provide more professional solutions.

    Here is a link to the forum where you can come up with specific scenarios and share your ideas to help resolve the issue.

    OneDrive - Microsoft Q&A

    I'm sorry to have to direct you to another forum again. Sincerely hope that your issue will be properly handled after contacting the right department. Thank you for your understanding!

    Best Wishes

    Pyke.D | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments