web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ODfB 'When a file is c...
Power Automate
Answered

ODfB 'When a file is created' error message

(0) ShareShare
ReportReport
Posted on by 192

When I save a new document into the 'trigger' ODfB directory I always get the error below.  As there is nothing to configure (other than choose the folder) how can this be resolved?

 

ODfBerror3.PNG

Categories:
  • Verified answer
    telu Profile Picture
    Microsoft Employee on at

    Hi MrNigel,

     

    There seems a issue with our onedrive trigger, from the oberservation, the trigger have been triggered for a long time result in this timeout error. But there are some other issues when I use the onedrive trigger. Do you have one drive for business account so that you can also try to use that as the trigger?

     

    Thanks,

    Teng

     

  • MrNigel Profile Picture
    192 on at
    The trigger is on my OneDrive for Business account. I do not use ordinary OneDrive
  • shyamsu Profile Picture
    Microsoft Employee on at

    Hi MrNigel,

     

    It appears to be a timout issue in the trigger trying to detect creation of a file. That call took more than 2 minutes which led to this timeout. For detailed investigation i would need the flow run id. Can you please reply back with the runid of this failed run? You can find runid in the URL of the failed run e.g. in the url below 0858796913446486783235687716 is the runid

     

    https://flow.microsoft.com/manage/flows/728ad8f9-f2b1-48ee-9c89-7a5adf8a2b34/runs/0858796913446486783235687716

     

  • MrNigel Profile Picture
    192 on at

    Error RunID 08587266452334157510337700768

     

     

  • Verified answer
    shyamsu Profile Picture
    Microsoft Employee on at

    Hi MrNigel,

     

    I investigated this and it appears that there are large number of files in the OneDrive for Business that you are using. Currently there is a limitation in the API exposed by OneDrive for Business for getting files in a directory.

    It only allows fetching files from the root folder of the one drive. Which in this case is returning large number of files and iterating through files and directories to detect the creation of new file is taking more than 2 minutes (reason behind the failure you are seeing).

     

    We are working with OneDrive for Business team to remove this limitation but until that is fixed, if possible, as a workaround if you use normal OneDrive (not OneDrive for Business) you wont see this issue as normal OneDrive allows directly fetching files/changes from the child folder you specify in the trigger condition.

  • MrNigel Profile Picture
    192 on at

    OK, I understand. The issue is that you cannot pick a sub folder, it only allows you to write a file to the root folder. Can you not implement it in the same way as for SharePoint lists where you enter a site URL then choose a list from the drop down?

     

    Nigel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard