cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Julien2 Post Prodigy
Post Prodigy

Flow fails on empty optional fields

Hello everyone!

 

I have created a flow for a mobile app to trigger the user’s location, the current time based on “checked in/checked out” values, and I have added 3 optional fields to type the client’s name, file content, and comments.
When they submit, a new item will be created in SharePoint list.
The flow fails when they keep the client name, file content, comments empty. It is not necessary to make these fields required because it is an option that on “checked in” the user might not add remarks and maybe he might add some information. However on “checked out” they most probably will.

Here are screenshots of the failing flow:

CLient-Remarks.PNG

File Content null.PNG

 

So how can I deal with this issue if the fields are empty ? Any help would be appreciated.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Flow fails on empty optional fields

Hey @Julien2 

 

I have recently published a blog on how to overcome exactly issues like this over here. Please take a look and check if that resolves your issue. 

https://www.bythedevs.com/post/how-to-pass-a-null-value-as-an-input-while-using-a-manual-trigger-in-...

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: Flow fails on empty optional fields

Hey @Julien2 

 

I have recently published a blog on how to overcome exactly issues like this over here. Please take a look and check if that resolves your issue. 

https://www.bythedevs.com/post/how-to-pass-a-null-value-as-an-input-while-using-a-manual-trigger-in-...

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Julien2 Post Prodigy
Post Prodigy

Re: Flow fails on empty optional fields

@yashag2255 

Thanks it's good variety of information in this blog.
I tried also checking for null values by using the null expression.

Capture.PNG

Dual Super User
Dual Super User

Re: Flow fails on empty optional fields

Hey @Julien2 

 

You will not have to check the value for null if you have the '?' in the expression form as mentioned in my blog. Else, this might fail as the input property is readable only when the user provides an input or else that key is not present and it will make the flow to fail. Makes sense? 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Julien2 Post Prodigy
Post Prodigy

Re: Flow fails on empty optional fields

@yashag2255 

 

Thank you for sharing this helpful blog!

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,282)