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 / Adding Excel Dates fro...
Power Automate
Unanswered

Adding Excel Dates from Sharepoint Lists using Power Automate

(0) ShareShare
ReportReport
Posted on by 18

Hi There. 

 

I have a Flow that Updates a Sharepoint List from an Excel file with a Condition in. (If the item already exists, update item, if not, create item).

I have tried to add dates in and my date columns in Excel are 'Start Date' and 'End Date' but I keep getting the same error, and I have read and watched numerous resources. 

 

Error message: 

InvalidTemplate. Unable to process template language expressions in action 'Update_item' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

 

Expressions I'm  using: 

addDays('1899-12-30',int(items('Apply_to_each')?['Start Date']),'yyyy-MM-dd')
addDays('1899-12-30',int(items('Apply_to_each')?['End Date']),'yyyy-MM-dd')

 

Here is my Flow:

PowerAutomate1.PNGPowerAutomate2.PNG

Appreciate your help. 

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

    Hi @MelB10 

     

    Set the date format to ISO8601 in the List row present in a table so that you don't have to use the addDays function.

    vliweimsft_0-1669773574254.png

     


    After setting the format, just use the formatDateTime function to convert it to the 'yyyy-MM-dd' format.

    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

     

    Best Regards,

    Levi

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard