cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mhines
Advocate II
Advocate II

Flow triggers when Scanner first starts to send file to SharePoint - causes failed runs

We have had to go to scanning our incoming mail into a DropOff folder in Sharepoint which then distributes the scanned document based upon the filename as part of our closure due to COVID-19.  


This is somewhat working, but while the scanner is first sending the file over to SharePoint, the file has a filename that starts as ~tmp (which I am assuming means it's a temp file). We cannot change the behavior of how the scanner is sending the file to SharePoint. This file will Fail because it doesn't really exist. Then about 30 seconds to 1 minute later, the file is completed and no longer has the ~tmp in front of the file name and the Flow works fine.

Is there a way to ignore the files that are ~tmp?

 

Right now I'm required to track all of the failed and successful runs into an Excel document and we are getting false stats on this because of the time the file starts as a ~tmp file. We do want to add in more logic to what happens upon Failure,but until I can stop fails from happening during the file transport/creation, I cannot take those next steps we want to make.

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @mhines 

 

Use a delay after the trigger

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

3 REPLIES 3
abm
Super User
Super User

Hi @mhines 

 

Use a delay after the trigger

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

I'll give that a try, but I was hoping to not get the flow to trigger until the whole file was there.


Although I worry that maybe I"m cause the Excel document that I have too many entries. All I'm trying to do is to make an Excel Document that multiple people can look at to see if a document didn't move from the DropOff folder without having to go and view the Runs on my Flow.  Is there a best practice on how to allow multiple people to see the Run information without having access to the Flow?

Hi @mhines 

 

Thanks for your reply. The Run information is specific to flow UI so users need to login to see the progress unless. You could add an additional step in your flow send email notification to users.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (5,079)