cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GAJames
New Member

InvalidTemplate

Hi All

 

I've built my first flow to move items from one list to another when Days Old is more than 14 days.

 

When I run the flow I get the following error;

 

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

 

My flow looks like this;

 

Flow.JPG

 

Any ideas?

 

Thanks

 

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

The field you are using on the leftside of the condition is a datetime string. You need to format that as a DAteTimeValue() and then replace the 30 on the other side with something like AddDays(UTCnow(),30) so you are comparing a datetime value with a date time value.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
GAJames
New Member

Thanks @Pstork1 that worked, however for some reason has pulled in data up to 7th December. Any ideas why that would be?

 

Use a Compose action to display the actual values being compared.  That will show you the actual dates being calculated.  Then you can adjust the formula as a appropriate.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,895)