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.
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.
Switching to the classic designer worked!
Thank you!
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'])
I believe I am already using the expression.
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...
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'])
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional