cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow not always triggering on moved files in Sharepoint

Hi. I have two relatively simple flows that watch folders for files, trigger an approval, move the file when approved and then triggers another approval.

 

The first flow works and moves the files as expected.

 

The second flow sometimes fires  and sometimes does not fire and I cannot figure out what is different: the files are generally Excel or PDFs, they are small in size and there doesn't appear to be anything different about which ones work and which ones do not work.  When the second flow fires it completes successfully. The second flow is not failing; it is not always firing. Any suggestions?

 

Flow 1 (works)

InkedCapture1_LI.jpg

 

Flow 2 (doesn't always fire)

Capture2.PNG

12 REPLIES 12
v-bacao-msft
Community Support
Community Support

Hi @Anonymous,

 

It seems that there is no difference between the two Flows in the configuration.

The first thing I can think of is the way the files are created.

Whether you upload the file directly or create a new file in the folder, this may affect the triggering of Flow.

The second possibility is that the Environment in which the two Flows are located is different, so there are some differences when monitoring whether new files are created.

In addition, it may be that the second Flow trigger waits for a long time, so the feeling is not triggered. You can check the run history to see if Flow is triggered whenever a new file is created, although it takes a long time. .

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi. To clarify, the primary difference is that files are being manually saved or copied to the folder that Flow 1 is monitoring, whereas the files are being moved by Flow 1 to the second folder being monitored by Flow 2; normally that is the only way files get to the second folder. Thus the question: why does Flow 2 trigger sometimes --- but not every time --- that Flow 1 moves a file?

Anonymous
Not applicable

I continue to observe instances of the second flow not firing. Perhaps I am missing something obvious: if the second flow is running every five minutes (like normal) and a file with a modify date of one week ago is moved from Flow 1 to the folder that Flow 2 is monitoring, should it fire?  Is the trigger looking at the date of the file or is it looking for new files in the folder since it last ran (i.e. five minutes previously)?

sacreberlingot
Frequent Visitor

Hello rsovitzky

 

More than 1 year later I just designed a similar circuit and met with the same problem:

manually drop file into a folder , then 1st approval flow is triggered to move the file into a designated folder; then the 2nd approval flow should be trigger...but it doesn't, while if the file is manually dropped into the 2nd folder, the flow is triggered.

 

Did you have a chance to find a cure for this? Or the process has to be redesigned?

 

Thank you!

 

 

One option for a redesign would be to have the first Flow triggering the second flow directly using an HTTP call:

 

https://flow.microsoft.com/en-us/blog/build-nested-flows/

 

This would make the second flow run 'active' rather than passive.

 

 

Anonymous
Not applicable

Thank you for the suggestion. I will give it a try.

Thank you for the suggestion.

For some reason I do not have the HTTP request connector. (sorry am extra newbie to this)

 

For some reason the 2 flows are working now (that is when the file is added into the folder by Flow A, Flow B is triggered).

I suspect the reason why it did not work at first is that: the approver in Flow A (an approval flow) was not signed into Office 365 when approving it. 

But for certain it works now when the approver approves in an 365 environment.

 

Thanks

 

 

Did you ever get a solution for this?  I am having a similar issue where moved files don't trigger my trigger, but newly created ones do.

Hi NotGreg, 

 

Yes my 2 flows are ok now.

I can't be sure of what has fixed it, but suspect it's one or both of the following:

(1) the folders need to have located in different libraries. I had to created a different library - folder for Flow 1; then when Flow 1 finishes running, the file is moved to another folder in a different library, where Flow 2 will pick up (by when files is created or modified)

 

(2) the approver in flow 1 has to be signed into Office 365.

 

Hope it works for you. Good luck.

@sacreberlingot hmm interesting...thanks for the feedback

 

My folders are all in the same folders.  So 4 subfolders and I guess power automate doesn't allow for that.

 

I'm not 100% sure how I will get the folders separated properly, but something to look into.

 

Thanks

sacreberlingot
Frequent Visitor

Hi, 

I think this problem can be fixed by modifying the last step of Flow-1 to "Create file". Since the trigger of  Flow-2 is "when file is created/modified", the file that is "moved" will not always trigger.

My Flow-2 has been triggering fine since i changed last step of Flow-1 to "create" from "Move"...maybe "update file" could work, too?

has this been ever resolved?

Helpful resources

Announcements

Power Platform Connections - Episode 7 | March 30, 2023

Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Dian Taylor, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.  

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.  Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik  Heartholme     AaronKnox  okeks      Matren   David_MA     Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma   drrickryp   GuidoPreite    If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Register now for the Business Applications Launch Event | Tuesday, April 4, 2023

Join us for an in-depth look into the latest updates across Microsoft Dynamics 365 and Microsoft Power Platform that are helping businesses overcome their biggest challenges today.   Find out about new features, capabilities, and best practices for connecting data to deliver exceptional customer experiences, collaborating, and creating using AI-powered capabilities, driving productivity with automation—and building towards future growth with today’s leading technology.   Microsoft leaders and experts will guide you through the full 2023 release wave 1 and how these advancements will help you: Expand visibility, reduce time, and enhance creativity in your departments and teams with unified, AI-powered capabilities.Empower your employees to focus on revenue-generating tasks while automating repetitive tasks.Connect people, data, and processes across your organization with modern collaboration tools.Innovate without limits using the latest in low-code development, including new GPT-powered capabilities.    Click Here to Register Today!    

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Users online (4,328)