cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Unity
Frequent Visitor

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
Community Support
Community Support

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

 

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
Dual Super User
Dual Super User

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

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!



Community Support
Community Support

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

 

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
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,121)