Skip to main content

Notifications

Community site session details

Community site session details

Session Id : G5ymzGlwhbaaYcAiy/ZzBP
Power Automate - Building Flows
Answered

Error Populating Date Field in SharePoint List

Like (1) ShareShare
ReportReport
Posted on 21 Feb 2025 17:44:36 by 53
Hi,
 
I'm trying to create a flow where i output any new rows created in an excel table to sharepoint list - i keep getting an error regarding the date: 
OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/Date_x0020_of_x0020_Month' is required to be of type 'String/date'. The runtime value '"45658"' to be converted doesn't have the expected format 'String/date'.
 
the error is always repeating here in the create item part: 
 
The date formats are the same in both the list and the excel file.
 
any help would be appreciated
  • Verified answer
    David_MA Profile Picture
    10,858 Super User 2025 Season 1 on 21 Feb 2025 at 19:04:11
    Error When trying to create a flow from excel to sharepoint list
    SharePoint does not use the ISO8601 date format. It uses the region settings in the site. In North America you need to enter the date in this format: 'MM/dd/yyyy hh:mm tt'
     
    If you have time turned off in the list, then just use the date portion of the format. Here is an example  of the expression I use:
     
    convertTimeZone(triggerOutputs()?['body/Modified'], 'UTC''Eastern Standard Time''MM/dd/yyyy hh:mm tt')
     
    Although, your data is coming from Excel and I don't often create items from Excel data, it usually goes the other direction for me. So you might need to do some extra manipulation of the expression to get the date in this format. And of course, you don't need to convert the time zone either.
     
    Based on the fact the error message says the run time value was "45658", that would appear  to be an Excel serial date. If I calculated it correctly, 45658 would be January 1, 2025. If so, I believe this should work for you: addDays('1899-12-30', <your_serial_date>,  ' MM/dd/yyyy')
     
    You can read about the date format at Date format needs to be DD/MM/YYYY | Microsoft Community Hub         
  • Suggested answer
    Michael E. Gernaey Profile Picture
    42,027 Super User 2025 Season 1 on 21 Feb 2025 at 18:21:32
    Error When trying to create a flow from excel to sharepoint list
    Hi
     
    Please share the actual value during the runtime of a failed flow for that field. Cannot tell anything just from that property itself.
     
    Share that and should be able to help you. It's possible that it was being converted to the Excel format early on which would make it invalid there.
     
    Please share the run with the input of that field and we can help
     
    Cheers

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 79

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard