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 / Less than equal to dat...
Power Automate
Unanswered

Less than equal to date comparison not working

(0) ShareShare
ReportReport
Posted on by 40

Hi, 

 

I'm trying to retrieve a list of records where the go live date is less than utcnow() -14 days but i am getting the follow error message 

Unable to process template language expressions for action 'Condition' at line '1' and column '9668': 'The template language function 'lessOrEquals' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'.

 

all records have a date in them I've tried with formateddate and just utcnow() but have not been able to resolve any help greatly appreciated.

 

Thanks,
Seb

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @sebgedge,

     

    It sounds like one of the fields is empty to be honest.  Presumably you are doing something like

    columnname le 'formatdatetime(adddays(utcnow(),-14),'yyyy-MM-dd')' 

     

    If you remove the filter and then check the history from a previous run, you should be able to see the field and result that you are comparing against to see what you are playing with.  You can also check your date -14 expression in a compose to give you a feel for what is going wrong.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien

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 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard