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 / Null calendar values a...
Power Automate
Suggested Answer

Null calendar values are giving errors

(1) ShareShare
ReportReport
Posted on by 2
Hi! I am building a flow to place answers off a complex branching MS Form, into my list on my SharePoint. The settings in the list for all date fields is not mandatory so it should be able to accept someone not entering a date. The exact verbiage for my date question is "Date the complaint was referred". So in my Power Automate flow under the "Create Item" action. I have the expression:
if(equals(triggerOutputs()?['body/Datethecomplaintwasreferred'], null), null, triggerOutputs()?['body/Datethecomplaintwasreferred'])
This is located to the right of the Dynamic Content.
Another expression I have tried:
 
if(empty(triggerOutputs()?['body/Datethecomplaintwasreferred']), null, triggerOutputs()?['body/Datethecomplaintwasreferred'])
 
When I run a test, it always fails and provides me with the following error:
 
"OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/Datethecomplaintwasreferred' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'."
 
Your help is GREATLY appreciated! I have attached the snippet of my settings for that date field.
Date the complaint was referred settings in my list.png
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Super User 2026 Season 2 on at
    Hi
     
    So in a normal If statement you have if(statement, true, false);
     
    But YOU do not want to do this, because you are returning a NULL which is not valid.
     
    Instead you want your expression to be this
     
    If(statement, true or false); and done
     
    So we need to re-write your stuff
     
    if(not(empty(triggerOutputs()?['body/Datethecomplaintwasreferred'])), triggerOutputs()?['body/Datethecomplaintwasreferred'])
     
    This way it ONLY tries to write data is its NOT empty, otherwise it passing NOTHIHNG.. not NULL, but nothing, so it ignores the column.
     
    As this should solve your problem if you can mark as the answer please.
     
     
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 282 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard