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 / Error converting date ...
Power Automate
Suggested Answer

Error converting date from excel file.

(0) ShareShare
ReportReport
Posted on by
 
Hello,
 
I have a power automate flow that runs on a recurrence (every 3 hours). It goes out to a series of Excel files, checks if there are any new items added to them, then if so exports the data to SharePoint list. The issue I am having is that I am getting a failure at my SharePoint "create item step when trying to create a date.
 
"OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/SubmittedDate' is required to be of type 'String/date'. The runtime value '"45628"' to be converted doesn't have the expected format 'String/date'."
 
I am only getting this error with one of my 5 files that I am cycling through. The users inputting the data are located in Japan (not sure if this has any effect on the error). I have watched user input the data and it is no different from how I enter the data in the US. All 5 of the excel files started as exact copies.
 
If I try to resubmit the failed run, it will fail again. Any ideas on how I can resolve this error? From the Excel side, everything looks correct. I cannot figure out why I am getting this error only with one version of the file.
 
Thank you!
Categories:
  • Suggested answer
    Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at
     
    As this is getting issue with some of your files only then you can put a condition saying that the value of the date is Integer or not for that write below expression
     
    mod(int(triggerOutputs()?['body/yourInputField']), 1) is equal to 0
     
    If that is Yes then the value is an integer, for this to convert to datetime, you can check below link to have a valid date time
     
     
     
    If I have answered your question, please mark it as the Answered. If you like my response, please give it a Like.
     
    Regards,
    Srini
     

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard