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 / Conditional Expression...
Power Automate
Unanswered

Conditional Expression "AddHours" Error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have created a flow that pulls from a planner daily to check for any 'overdue' tasks. An overdue task is a task that has not been marked completed by 48hours.

 

I have the flow check daily at 5am for any uncompleted task, and then a condition that does a comparison to an Array CreatedDateTime. This CreatedDateTime is what I am "greater than or equal" to addHours.

 

I do not work with expressions often. This is the error message I got:

InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '2938': 'The template language function 'addHours' expects a timestamp as the first parameter, the number of hours to add as the second parameter, and an optional format string as the third parameter. The function was invoked with '1' parameter(s). Please see https://aka.ms/logicexpressions#addhours for usage details.
 
Any assistance, in correcting this would be greatly appreciated... please see flow below.
 
FLow.JPG

 

 

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    Can you share the details from your current addHours() expression?

    Please also note in your Filter array you added what seems to be a WDL expression on the right side of your condition rule as a regular text, meaning Power Automate will not consider it an WDL expression.

    If you are unfamiliar with WDL expressions, please follow these steps to add them:

    https://youtu.be/LPZ-WZoWwp4

    Thanx!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    My current addHours expression is 47. As, I just want it to add 47hrs to the date-time created. But as I play with the expression, I realized thats not how it worked and then broke it.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard