Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

  • MrNigel Profile Picture
    192 on at
    Re: ODfB 'When a file is created' error message

    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

  • Verified answer
    shyamsu Profile Picture
    on at
    Re: ODfB 'When a file is created' error message

    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
    Re: ODfB 'When a file is created' error message

    Error RunID 08587266452334157510337700768

     

     

  • shyamsu Profile Picture
    on at
    Re: ODfB 'When a file is created' error message

    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
    Re: ODfB 'When a file is created' error message
    The trigger is on my OneDrive for Business account. I do not use ordinary OneDrive
  • Verified answer
    telu Profile Picture
    Microsoft Employee on at
    Re: ODfB 'When a file is created' error message

    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

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1