cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Unity
Helper I
Helper I

Date Format Error (Condition requirement, greater than/less than/equals to)

Hi all,

 

I used to have a reoccurring workflow that would (through a condition) compare dates on my SharePoint list against the current date. It was a tracker that would compare the license expiry dates of users against the current date, and if the date was equal to or less than my current date and action would be triggered.

I noticed recently that my workflow hasn't been working anymore and was wondering if there have been recent changes in the Microsoft environment or if there's anything I can do to fix this?

The error I'm getting is:

 

Unable to process template language expressions for action 'Condition' at line '1' and column '2865': '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.'.


I'm using this expression for the date/condition:  formatDateTime(utcnow(), 'yyyy-MM-dd')

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @Unity ,

 

It seems that the End Date is empty, so the second condition is not met and display the error.

Please try to change the order of the first two conditions and see if the issue still exists.

Image reference:
200.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
efialttes
Super User III
Super User III

Hi! It sounds as if 'End date' did not have assigned value in your sharepoint item.
If so, I would suggest to use a coalesce() based expression to assign a date default value in such case
Hope it helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



v-bacao-msft
Community Support
Community Support

 

Hi @Unity ,

 

It seems that the End Date is empty, so the second condition is not met and display the error.

Please try to change the order of the first two conditions and see if the issue still exists.

Image reference:
200.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,209)