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 / The function was invok...
Power Automate
Answered

The function was invoked with values of type 'Null' and 'String' that do not match.'.

(0) ShareShare
ReportReport
Posted on by 920 Super User 2024 Season 1

Hi,

 

I am trying to compare my date with todays date. but I am getting the error :

 

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

 

wonka1234_2-1694458174524.png

wonka1234_1-1694458107520.png

 

update item if successful - 

wonka1234_3-1694458190604.png

 

 

how can i fix this?

 

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,312 Super User 2026 Season 1 on at

    Conditions require the date to be formatted in ISO 8601 format. You can use this expression to convert the current UTC time to this format:

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

    The error also indicates your date field is null, so you may need to add an additional condition where the field is not empty.

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @David_MA

     

    im trying both 

     

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

    and my list format is this - 

    wonka1234_1-1694468346534.png

     

     

    my error is -

     

    Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'In function 'formatDateTime', the value provided for date time string 'ConclusionDate' was not valid. The datetime string must match ISO 8601 format.'.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @wonka1234,

    There is no need to format ConclusionDate.

    I think you should configure your condition as below:

    vqiaqimsft_0-1694486797141.png

     

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @v-qiaqi-msft  getting error on a true result - 

     

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

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @wonka1234,

    Do you have null value in this date field?

    If so, you need to modify your expression as below:

     if(equals(item()?['ConclusionDate'],null),'N/A',item()?['ConclusionDate'])

    Note that this expression should be on the left part of the condition to replace with the previous ConclusionDate dynamic content.

     

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
Vish WR Profile Picture

Vish WR 484

#2
Valantis Profile Picture

Valantis 477

#3
Haque Profile Picture

Haque 456

Last 30 days Overall leaderboard