Onedrive does not trigger on new files

Describe the problem/error/question

I’m trying to create a workflow that triggers when new files are added to an enterprise OneDrive folder. I’m primarily working with invoices, but the file type isn’t relevant to the issue. Whenever I attempt to “Fetch Test Event” in the Microsoft OneDrive Trigger node, I consistently receive the message “No Microsoft OneDrive data found.” To ensure there were files to detect, I’ve added both older and recent Word documents to the specified folder.

What’s particularly confusing is that I receive the same “No Microsoft OneDrive data found” message even when I enter an invalid Folder ID. I would expect an error message indicating an invalid ID in that case.

I’ve personally created the application within the Microsoft tenant and obtained the Folder ID using the Search node technique.

I’m using the Microsoft OneDrive Trigger node, configured to trigger on “File Created” and to look for the folder by its ID.

I’m at a loss as to how to troubleshoot this problem. I believe I’m performing a very basic task, which makes this issue quite frustrating.

What is the error message (if any)?

I’m not receiving any error messages. I also have no confirmation that the folder is being accessed at all.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • 1.80.5
  • SQLite
  • own, main
  • Running n8n via Docker
  • Linux

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Try to publish the workflow. I had issues with the test event also but it’s been reliable after publishing.

Once you get it to work even once just pin the execution data for easy testing.

Ps. Sometimes the polling takes a bit over a minute.

Thank you Tero for your answer. It did not work as every run had no data returned . I’ll just assum that the module is broken and that nobody can get it work. It was akeward to implement anyway.

Sincerely,

Dan

1 Like

I had the same problem. I just added ‘Poll Time’


1 Like

Thank you for the reply biotech-fourier. I could not make it work.

My eye cought sometime howerver. I noticed that there is a link to open the folder in Onedrive just in case that I had the wrong Folder ID, and to my surprise, the lonk brought me to live.com. I think that it tries to open the personnel OneDrive instead of going to the professionnel one.
image

I have no idea what to do with that information. My understanding was that I had to use folder ID to make it append. May be I should use the sharepoint nodes instead but to do so I will have to learn the sharepoint API. I am nowhere close enough to understant n8n to start to work with direct web request all by myself.

1 Like

Same observation on my own. It is impossible to trigger a OneDrive file or folder from a professional account using n8n OneDrive module. I’ve tryed selected file both using “By url” or “By Id”. Parameters has been checked twice, confirming it works with other ochestrator like make.com.

It is nevertheless possible to get files or folders using this module, with the same connection / credentials configuration.

So it appears there is a bug on the trigger function. Confirming as well the opening of live.com by clicking on refered icon, which is incorrect in my case.

I’ve also been trying to set up a OneDrive trigger but am unable to do so. I’ve tried using the folder ID as well as the URL and could get neither to work. After trying for a while I decided to check the forum and found this.

I don’t really understand the solution proposed by @biotech-fourier; what’s the point of polling every minute and every day?

Just want to add two alternatives both Box.com and Google Drive are stable and good. The box one works almost instanteous on triggers, with google having polling time, but working great.

I met the same issue but the OneDrive folder I was using belongs to another account. Once I copied that folder to my own OneDrive, and use the new ID instead, the node now works.

For those who come after.

Unfortunatley Box.com can’t monitor updated files.

Can you confirm if this was a “professional” onedrive account?

Having the same issue.

The various OneDrive “search” nodes work just fine and I can search files and folders in my professional onedrive account.

However, the “On File Created” and “On File Updated” tiggers do not work at all.

My instance of N8N is hosted on DigitalOcean. N8N version 1.88.0 (2 months old)

If anyone following this thread comes across a solution or if they find their version works then please update the thread. Thank you. :star_struck:

My workflow is built arround being able to update a Vector DB when either a file is created or updated in a specific folder.

The only stable solution has been to use the Google Drive triggers for now.

I am not quite sure what do you mean “professional onedrive account” here, but there were 2 onedrive accounts involved:

  1. The one with folder n8n couldn’t read: I am not sure. It’s from a customer, sorry!
  2. Mine, the working one: I am using OneDrive free.

I saw people posting their workflow in this forum. Maybe you can post yours, or at least one that can replicate said behaviours.