cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
Community Support
Community Support

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.
Highlighted
Regular Visitor

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
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (3,597)