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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard