web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Instant flows fail whe...
Power Automate
Unanswered

Instant flows fail when you don't fill out all fields including Optional fields. Why?

(0) ShareShare
ReportReport
Posted on by 164

I created an instant flow on a SharePoint list.  I made some fields not mandatory.  The flow failed when a user did not fill out ALL fields.  What is going wrong?  I intentionally did not fill out the column called "Number" that's why the data in that field doesn't exist.  Its not a mandatory field. 

SharonS_2-1719263398353.png

When all fields are filled out, then the flow runs successfully.

Categories:
I have the same question (0)
  • WillPage Profile Picture
    2,329 Super User 2026 Season 1 on at

    Put a question mark in your expression to make it nullable e.g triggerBody()?['number']

    When a property is null it's often omitted from the JSON object so doing this will make the value null whether it exists with a null value or it's simply not there.

  • SharonS Profile Picture
    164 on at

    Here is the expression that I am using for a text field.  

     

    if(empty(triggerBody()['text'],'',triggerBody()['text']))
     
    Its an if then statement.   
     
    Do I put the question mark here (see below)?
    if(empty(triggerBody()?['text'],'',triggerBody()['text']))
  • WillPage Profile Picture
    2,329 Super User 2026 Season 1 on at

    Yes, but you can refine the expression using the coalese() function:

    coalesce(triggerBody()?['text'],'')

    This will convert the null value of triggerBody()?['text'] to an empty string otherwise leave triggerBody()?['text'] as is if it's not null

  • SharonS Profile Picture
    164 on at

    @WillPage  Thank you.  I will try that.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard