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 / The runtime value to b...
Power Automate
Answered

The runtime value to be converted doesnt have expected format

(0) ShareShare
ReportReport
Posted on by 7,044 Most Valuable Professional

Hi Folks, 

 

          I have  the Power Automate flow which converts Excel to SharePoint list. In my Excel File, few columns are date fields. In my flow the following error has been thrown . Doesn't have the expected format date. I can confirm that it is a date field in Excel. I did search many posts but clearly I am not getting output. 

 

ragavanrajan_0-1601010931398.png

 

I have tried many flow expressions including formatdatetimevalue but no luck

Please help 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @ragavanrajan 

     

    Hey Mate, Have a look at https://www.bythedevs.com/post/working-with-date-time-data-of-excel-in-power-automate 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @CFernandes , Thanks for the link. Still I am facing the following error. 

     

    I have used the formatdatetime function.

     

    ragavanrajan_0-1601238813505.png

    Please help 

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

    Hi @ragavanrajan ,

     

    Could you please share the screenshot of the configuration of your flow so we could better help you and provide the proper workaround?

    You could take a try with the expression as below:

     

    addDays('1900-01-01',add(int(43873),-2))

     

    formatDateTime(addDays('1900-01-01',add(int(43873),-2)),'yyyy-MM-dd')

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @ragavanrajan As @v-alzhan-msft  mentioned the screenshot of your configuration will help us understand your requirement better.

     

    43873 is the number of days between 30-12-1899 to the current date, this is how format Excel stores values added to cells of 'Date' format. 

     

    To work around the problem, you will need to apply the formula below.

     

    addDays('1899–12–30T00:00:00Z',int(item()?['YourDateColumnName']))

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard