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 / Import Empty Date Fiel...
Power Automate
Answered

Import Empty Date Fields from Excel to SharePoint

(0) ShareShare
ReportReport
Posted on by 6
I have a flow that imports the data from an Excel worksheet into a SharePoint list. If a date field is left blank, we get an error importing. Is there a formula I can use to either leave the field blank in SharePoint or enter a date that users will know isn't correct, like 1/1/1900?
 
The error is:
 
Action 'Create_item' failed: The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/DateField' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.
Categories:
I have the same question (0)
  • FF-16012350-0 Profile Picture
    6 on at
    I have created this formula that doesn't fail, but it isn't importing the expected results. Any thoughts on how to update this formula to work correctly?
     
    if(equals(item()?['Effective Date'], ''), parseDateTime('1/1/1900'), item()?['Effective Date'])
  • Verified answer
    creativeopinion Profile Picture
    10,508 Moderator on at
    @FF-16012350-0 Use a Compose action to store an expression. The expression will first check to see if the dynamic content is empty. If so, it'll output a null value, if not—it'll output the date.
     
    if(empty([insert your date dynamic content]), null, [insert your date dynamic content])
     
    Insert the output of the Compose action into the appropriate field of the Create Item action.
     
     
    You may be interested in this YT Tutorial:
     
    Are you easily stumped when working with Dates in Power Automate? In this Power Automate tutorial, I’ll show you how to compose an expression that will return a future date, a past date, how to count the number of days between two dates, how to check for a birthdate and anniversary date as well as tips and tricks when working with dates in Power Automate. I’ll cover some common use cases and concepts that can help you to build better Power Automate flows.
    Feel free to skip ahead using the timestamps listed below. I’ve also linked a few other tutorials that you might be interested in as well.
     
    IN THIS VIDEO:
    ✓ 4 Date Functions You Need to Know
    ✓ How to use the Convert Time Zone Action
    ✓ How to Get a Future Date
    ✓ How to Get a Past Date
    ✓ How to Return SharePoint Items Due in a Number of Days
    ✓ How to Return SharePoint Items Due within a Date Range
    ✓ How to write a Filter Query for SharePoint Items Due in 30, 60 and 90 Days
    ✓ How to Calculate the Number of Days between Two Dates
    ✓ How to Check for a Birthdate and Anniversary Date
    ✓ How to work with Dates and Times in Excel
    ✓ How to use a Manual Trigger with Date Input
    ✓ How to Output Dynamic Text with an Expression
    ✓ How to Check if a Date Falls on a Weekend
     
     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
     
     
  • FF-16012350-0 Profile Picture
    6 on at
    @creativeopinion - Thanks so much, that worked!

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
Haque Profile Picture

Haque 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard