cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gofunk1
Helper II
Helper II

Flow Error Handling

Hello

 

I'm in the middle of building a flow, and whilst the flow is doing what I want it to, it keeps flagging an error.

 

I have a condition that confirms a value is present in the SharePoint item, it passed a string to the condition if it is present the flow continues, however, if the field is empty, it passed a null value and errors out. How can I cleanly terminate this?

 

Gofunk1_0-1637224565499.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User
Super User

@Gofunk1 
I've implemented a simple TEst Flow that reads an item from a TEst List with an optional column called 'Date'
In order to avoid the error you are experiencing, I am using coalesce() expression to replace null by an empty string, and keep original column value if present

coalesce(outputs('Get_item_from_master_tracker')?['body/Date'],'')



efialttes_1-1637225778926.png

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

6 REPLIES 6
efialttes
Super User
Super User

@Gofunk1 
Can you share a screenshot with the details of your Condition action block rule design?
THanx! 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



I think you mean this?

 

Gofunk1_0-1637225570972.png

 

efialttes
Super User
Super User

@Gofunk1 
I've implemented a simple TEst Flow that reads an item from a TEst List with an optional column called 'Date'
In order to avoid the error you are experiencing, I am using coalesce() expression to replace null by an empty string, and keep original column value if present

coalesce(outputs('Get_item_from_master_tracker')?['body/Date'],'')



efialttes_1-1637225778926.png

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



thanks, can you share a screenshot on this, please? I'm still quite new to this and not sure how to implement your suggestion?

Hi!
I've edited my last response, you will find a screenshot there
Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@efialttes Thanks for the response, but how does this validate the start date column? I've tried replacing both start date entries but everything now passes as a false output regardless of if there is a date or not. I could be using the wrong value in the string function?

 

Gofunk1_0-1637569667710.png

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,273)