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 / Input parameter is req...
Power Automate
Answered

Input parameter is required to be of type 'String/date

(1) ShareShare
ReportReport
Posted on by 57

Hello Everyone

 

I am getting this error, Input parameter 'item/PlannedStartDate' is required to be of type 'String/date'. The runtime value '"44869"' to be converted doesn't have the expected format 'String/date'.

 

PlannedStartDate  is coming from an Excel file as a Date which i have placed in the SharePoint library. In Sharepoint the column is set up as a date. Below is the screen shot of the errored record

 

Error.PNG

 

 

Below is the flow screenshot.

 

error_record.PNG

The Flow is capturing the date as "44869" as value. I am not sure how the actual date is converted to this format.

 

Note :- This is only happening when I am doing the Copy paste on excel. I have also cross checked the source sheet from where i am copying has also the Date format column.

 

 

Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    HI @RGB5 ï¼Œ

    Please set  DateTime Format: ISO8601

    vchengfenmsft_1-1670571393388.png

     

    Here is a test :

    vchengfenmsft_3-1670571657455.png

     

     

     

    Best Regards

    Cheng Feng

  • RGB5 Profile Picture
    57 on at

    @v-chengfen-msft , Thank you for the quick replay.

     

    This has been already set at the time of building the flow.

     

    DateFormat.PNG

     

    I have total 4 Date columns in the sheet. This error coming up randomly on any of the column.

  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @RGB5 ,

    Sorry,

    This may also be a BUG.


    To avoid this problem,


    You can use formulas all over to get the time. (This may be a relatively inefficient method, but it can solve the random occurrence of this format time)




    Here is a link explaining how to convert, for your reference:

    Excel Date changes in Power Automate - Power Platform Community (microsoft.com)

     

    Best Regards

    Cheng Feng

  • RGB5 Profile Picture
    57 on at

    @v-chengfen-msft ,

     

    Can you please suggest exactly where I need to chip in the below formula.

     

    Coalesce(formatdatetime(Exceldate,"MM-DD-YYYY"), " ")

     

    Currently I am using the below expression in the Date fields.

     

    if(equals(item()?['Planned Start Date'],''),null,item()?['Planned Start Date'])

     

  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @RGB5 ,

    I mean:
    Not using IOS8601,
    Then all dates will be numbers
    Then convert all date in number format to date by formula

     

    if(empty(item()?['Timesheet Completed Date']),null,addDays('1899-12-30',int(item()?['Timesheet Completed Date']),'yyyy-MM-dd'))

    vchengfenmsft_1-1670576862264.png

     

     

    Here is result:

    vchengfenmsft_0-1670576645557.png

     

    Here is a link for your reference:

    Working with Date & Time data of Excel in Power Automate (bythedevs.com)

     

    Best Regards

    Cheng Feng

     

  • RGB5 Profile Picture
    57 on at

    @v-chengfen-msft ,

     

    Thank you it worked as expected.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard