cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Flow Failure

I have a flow that triggers on excel file changes. It works on the whole library but I use a condition to limit the flow to a sub-section of the files ( we have a strict naming convention so I can identify the relevant files ). I have a condition that, if true, leads to some actions ( updating an Excel file ) and if false , terminates the flow. The flow is recorded as failing. I don't want any further action if the file isn't a relevant file. Terminating the flow for a non-relevant file is exactly what I want it to do. I'm very new to PowerAutomate so don't know whether it's acceptable to have a flow that fails 3000 times a day ( whilst doing exactly what I want )

2 REPLIES 2

Hi @P1g5purt 

 

There are 2 options

1. Since you have used Terminate flow action at No branch of the condition - so remove it so that flow does not appear failed in Run History 

 

2. instead of building condition action, use the trigger condition within the trigger where we can write the expression if we need to trigger the process if modified file is having name equal to. Refer this article for more details on trigger condition and how you can use them -

https://www.spguides.com/power-automate-trigger-conditions/

 

In this way using trigger condition- flow won't trigger until trigger condition turns out to be True.

 

Thanks & Regards,

Nived N 🚀

LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel
Blog: Nived Nambiar's Blogs

🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌

 

Hi Nived,

 

Thanks for the detailed reply. I applied a trigger condition ( I've used the condition I applied further down the flow )

This what I've used @contains(triggerBody()?['{Name}'],'Qtrly @'). I've changed a file that contains 'Qtrly @" but it doesn't trigger. I'm also getting an error message 

InvalidTemplate. Unable to process template language expressions for trigger 'When_an_item_or_a_file_is_modified' at line '1' and column '68548': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.

 

looking at "Raw Outputs" 

"{Name}""AWRP Mgmt Accts June 24 (IRIS) - Draft",
which doesn't appear Null?
 
What have I done wrong?
 
Regards,
Ian

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.

Users online (941)