web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard