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 / Passing null date valu...
Power Automate
Answered

Passing null date values from excel to SP list

(2) ShareShare
ReportReport
Posted on by

I'm using flow to import an excel table that has some null values in a date column. If values are null, I get the following error:

The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/ConversationCompletedDate' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.

 

I'm not sure how to test for null date values.

 

nvpc_0-1620246775609.pngnvpc_1-1620246831312.png

I have now edited the create Item with the following code

nvpc_0-1620251365281.pngnvpc_1-1620251397879.png

which works! but I wanted to leave the date blank if it was null. I tried using Coalese but could not get that to work, that would give me the same answer.

So I tried the following and it worked;

nvpc_0-1620252265132.png

if(empty(items('Apply_to_each')?['Assigned Date']),null,formatdatetime(items('Apply_to_each')?['Assigned Date'],'MM/dd/yyyy'))

Thanks!

 

Categories:
I have the same question (0)
  • deadmelgibson Profile Picture
    3 on at

    nvpc... I don't know how to thank you. After hours of misery this has solved it for me.  God bless you good sir!

  • Verified answer
    Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    Accepting this thread as solution so that other can take help from this post.

    Thanks @nvpc @deadmelgibson 

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.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

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 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard