Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Date Conversion error - worked fine yesterday?

(0) ShareShare
ReportReport
Posted on by 251

Hi all, i have a flow that is taking a date from an excel file, comparing it today's date in a conditional and then, if they match, do some stuff.

 

yesterday - this worked fine. today, it fails with the error:
Unable to process template language expressions in action 'Compose' inputs at line '1' and column '2885': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.


so here are the expressions i'm using to convert the date from the excel file to be the same for comparison purposes:

 

first - the excel input (using the "value - list of items" dynamic content:

formatDateTime(addDays('1900-01-01', add(int(items('Applytoeach')?['Date Conversion']), -2)), 'MM-dd-yyyy')

[Date Conversion] is my excel date column. my input looks like this once read out:
2021-01-13T00:00:00.000Z

 

next, i have an expression to get today's date for comparison:

formatDateTime(utcNow(), 'MM-dd-yyyy')

 

which is where the flow fails and i get the above error.

 

note, i have hundreds of dates in here, and they all fail, not just particular dates.

 

 

 

 

 

  • Verified answer
    Seuadr Profile Picture
    251 on at
    Re: Date Conversion error - worked fine yesterday?

    so just to close the loop on this - they switched it back. you know, after i changed a couple dozen flows 😛 (at least it was only a couple dozen)

    https://www.dontpapanic.com/blog/?p=681

     

  • Seuadr Profile Picture
    251 on at
    Re: Date Conversion error - worked fine yesterday?

    right you are! thanks! i didn't even think to look for a change to the connector...

  • Verified answer
    v-duann-msft Profile Picture
    on at
    Re: Date Conversion error - worked fine yesterday?

    Hi @Seuadr 

     

    Thanks for your posting.

     

    According to your description, your flow got broken suddenly and error message related to date and time. Actually, it’s a known update for “List Rows action in the Excel Online (Business) connector” around January 15, 2021. Date format has been changed and we don’t need to do date conversion.

    v-duann-msft_0-1611215116929.png

     

     

    For detailed announcement, please kindly refer below link:

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

     

    Hope the content above may help you.

     

    Thanks.

    Anna

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow