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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Date field throwing er...
Power Automate
Unanswered

Date field throwing error if I try to pass a null expression - Power Automate

(1) ShareShare
ReportReport
Posted on by 14

According to previous forums, (https://powerusers.microsoft.com/t5/Building-Flows/Date-field-throwing-error-if-blank-Power-Automate/td-p/1251407) I should be able to pass a null expression to a Date field to keep it empty. However, I get this error message every time. I don't know what I could be doing wrong, I also tried expressions like this:

if(equals(outputs('Get_response_details')?['body/ra66dc3ce64ec4c63af091d4ced99b95c'],''),null,outputs('Get_response_details')?['body/ra66dc3ce64ec4c63af091d4ced99b95c']) 

but I get the same error message.

jandresp11_2-1700833415731.png

 

jandresp11_1-1700833347558.png

 

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @jandresp11 

     

    Error says you are getting "" (two double quotes) from the response. So try the below.

     

    if(equals(outputs('Get_response_details')?['body/ra66dc3ce64ec4c63af091d4ced99b95c'],'""'),null,outputs('Get_response_details')?['body/ra66dc3ce64ec4c63af091d4ced99b95c']) 

  • jandresp11 Profile Picture
    14 on at

    I get the same error.

    I also get the error when I just try to pass null expression directly, so I don't think it is the problem with the if statement. It is just not accepting null as an acceptable input... 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @jandresp11 

     

    Are you trying the null values as text or using the expression? Try the expression.

  • jandresp11 Profile Picture
    14 on at

    I believe I am already using the expression.

     

    jandresp11_0-1701079683814.png

     

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @jandresp11 

     

    Thanks for the screenshot. Let me get back to you soon.

     

     

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @jandresp11 

     

    I did tested this and worked for me

     

    Try the below.

     

    if(empty(outputs('Get_response_details')?['body/ra66dc3ce64ec4c63af091d4ced99b95c']),null,outputs('Get_response_details')?['body/ra66dc3ce64ec4c63af091d4ced99b95c'])

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @jandresp11 

     

    I made a video out of this

     

    https://youtu.be/7I4b2vgG8y8

     

    I believe there is a bug with the new designer.

     

    Thanks

  • jandresp11 Profile Picture
    14 on at

    Switching to the classic designer worked!

    Thank you!

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @jandresp11 

     

    Yes its a bug. Glad that all working well for you. Thanks for your reply.

  • PobleteD Profile Picture
    on at

    Can confirm new designer has a bug when putting a formula to pass null value to date field. Switching to original designer and making sure to update the field (just formula - click update) solved the issue. Seems that PA has some sort of compilation happening behind the scenes when putting expressions, no idea. New Designer brought me some headache until I found this thread! Couldn't find a bug report option but if someone has a link happy to fill it in.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard