Onedrive 'Search' node in a error

Describe the problem/error/question


I am experiencing an issue with the “Search” operation in the “n8n-nodes-base.microsoftOneDrive” node.

While other operations such as “Get Children” and “Create file” work perfectly, the “Search a folder” node returns the error:

I am using n8n version 2.4.8, and the version of the node where the issue occurs is 1.1.

Hi @wookji.yoon Since “Get Children” works for you, you can filter the results:

  1. Use Microsoft OneDrive node with “Get Children” operation

  2. Add a Filter node after it

  3. Set filter conditions to match what you’re searching for (name contains, file type, etc.)

This gives you similar functionality to search.

Hope this helps!

2 Likes

Hi @wookji.yoon, welcome to the n8n community :sparkles:. In my opinion, the most powerful and reliable solution is to work around the OneDrive node bug by using direct API calls with HTTP node. Before doing that though, it could be a good idea to check for updates to see if this has been resolved in a newer release.

1 Like

I was able to solve the issue thanks to your suggestion.

For others, one additional note:
to use the “Get Children” operation, you still need the OneDrive root folder ID.

You can obtain the root folder ID by creating a new folder using the “Create” operation.

When you create a folder in the root directory, the parent folder(in this case, root folder) ID appears in the output.

From there, you can use the “Get Children” operation starting from the root folder to navigate to the desired folder.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.