cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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!



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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (24,326)