Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

OneDrive for Bussines "when file is created" triggers twice when uploading file via Desktop app

(0) ShareShare
ReportReport
Posted on by 12

Hello,

 

I have a problem with trigger "when file is created" for OneDrive for Bussiness.


Setting my task is very simple:
After creating new file -> Send an e-mail containing the name of this file.


When adding a file / files via the OneDrive web interface, the task is always performed only once like it should be.


The problem is that the task is run twice for each new file in a situation when I add files through the OneDrive folder on my Windows 10 computer.


I have the impression that this is a bug in the functioning of the trigger, and not the result of an incorrect configuration, since configuration of this trigger is so simple.


I need any solution that will allow me to send only one notification per file, regardless of how the file was added. It can be any filter, schedule or if / so, but after spending a few hours searching for a solution I found nothing like this myself.

 

 

  • Hermes Profile Picture
    Hermes 12 on at
    Re: OneDrive for Bussines "when file is created" triggers twice when uploading file via De

    That might just work. Could You please help me with configuation of Get Files action and filtering it to get names created in last hour? It would be tremendous help!

  • ScottShearer Profile Picture
    ScottShearer 25,150 on at
    Re: OneDrive for Bussines "when file is created" triggers twice when uploading file via De

    @Hermes:

     

    You colud use a Recurrence trigger to peridoically start a Flow (horuly if you would like).  The Flow could use a Get Files action where you could evaluate the items returned for a created date/time that was within the last hour.

     

    Scott

  • Hermes Profile Picture
    Hermes 12 on at
    Re: OneDrive for Bussines "when file is created" triggers twice when uploading file via De

    Anyone can help? 

    Second trigger can happen even few hours after uploading file, so I have no clue how and why its triggered...

  • Hermes Profile Picture
    Hermes 12 on at
    Re: OneDrive for Bussines "when file is created" triggers twice when uploading file via De

    Unfortunatny this false trigger keeps happening.

     

    Is there any way to set up trigger to check for event like "new file created" lets say once in an hour and check this trigger only for files currently present in folder?

  • Hermes Profile Picture
    Hermes 12 on at
    Re: OneDrive for Bussines "when file is created" triggers twice when uploading file via De

    1.jpg

    You will find screen of task above.

     

    It is very simple task, yet it behave in weird way.

     

    I believe it has something to do with OneDrive uploading via folder in Windows File Exploler. I would guess that maybe when I upload file via Desktop app file is created twice - first as "placeholder" and few second later, when upload is finished as proper file, but I could not weryfie it in any way.

     

    I did try to get raports with another flow with same trigger raporting new file name, file id and timestamp of upload to excel, and only timespamps were diffrent with few second difference, but this issue happen no matter if this "log" is active or not.

  • ScottShearer Profile Picture
    ScottShearer 25,150 on at
    Re: OneDrive for Bussines "when file is created" triggers twice when uploading file via De

    @Hermes:

     

    I have been unable to replicate your issue.  Can you post a screen shot of your Flow please?

     

    Scott

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard