cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EDE
Level: Powered On

Issue with "When File is Created" Sharepoint Trigger

Hi, 

 

I have an issue when moving files form SharePoint.

 

here is the scenario :

 

  • A file is created in a Sharepoint Folder
  • If the filename matches whith a list of filenames then
    • copy the file to an on premise file server
    • archive the original file on another folder on SharePoint
  • else
    • send an email to the people who place the file on sharePoint
    • Delete the file

 

All works fine with small files (up to 600 ko) but fails for bigger files.

In fact the flow is executed while the file is not fully uploaded on SharePoint.

The result is empty files in archive, and on on-premise file server but execution report in Flow as Success

 

success.png 

 

Error messages are displayed to the people who places the files on Sharepoint .

 

Error.png

 

Any idea to prevent the flow to handle a file that is not fully uploaded?

 

Thanks in advance

2 REPLIES 2
Community Support Team
Community Support Team

Re: Issue with "When File is Created" Sharepoint Trigger

Hi @EDE,

 

What is the size of bigger file?

 

There is a limitation for 100 MB maximum for a single message/file. Please check this doc on Limits and configuration in Microsoft Flow for more details:

https://docs.microsoft.com/en-us/flow/limits-and-config

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
EDE
Level: Powered On

Re: Issue with "When File is Created" Sharepoint Trigger

Hi, @v-yamao-msft

 

The biggest file tested is 6 MB.

 

I found a work around :

  1. create a flow triggered by file add
    This flow create an element in a liste with the filename and a date-time (utcnow() + 10 minutes)
  2. Create a second flow Executed every 5 minutes
    Search the list items created by flow 1 where datetime is less or equal to utcnow()
    transfer the file
    remove element from the list

This works fine for all the files I have to manage for now, but I think that if 10 minutes is not enough to transfer the file to Sharepoint the issue will occur again.

 

From my point of view, this confirm that the trigger is fired as soon as a file is created even if the file is not transfered to sharepoint.

Do you know if there is a trigger fired when a file is fully uploaded to Sharepoint? 

 

Thanks for your help

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,900)