cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

ERROR - InvalidTemplate

Hello Microsoft Flow Community 👋,

 

I've been building a new flow. It's a simple reminder from my SharePoint Calendar. Which is, it is really helpful to remind me every events.

 

And right now I got an issue with my flow. Here is the screenshot:

ErikD_0-1604283972860.png

 

Error details: 

Unable to process template language expressions in action 'Set_CalendarEvents_Value' inputs at line '1' and column '17782': 'The template language function 'item' must not have any parameters.'.

 

Has anyone had a similar problem? or have any solutions to this? I don't know where to begin to fix this, because this MS Flow is a new thing for me.

 

Here is my current flow, in case you need to see in details:

ErikD_0-1604284598257.png

 

Inside "Apply to Each":

ErikD_1-1604284633587.png

 

Inside "Check if any event found":

ErikD_2-1604284756978.png

 

Thanks for your help in advance😀

 

Regards,

Erik.

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please show me the expression details of the formatDateTime?

Screenshot 2020-11-02 144818.jpg

The error says 'item' must not have any parameters.', so I guess you must enter an expression item('Apply_to_each')?['Date'] into it.

If so, please not do that, and use the items('Apply_to_each')?['Date'] or item()?['Date'], and try it again.

 

Best Regards,
Community Support Team _ Lin Tu
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

5 REPLIES 5
v-litu-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please show me the expression details of the formatDateTime?

Screenshot 2020-11-02 144818.jpg

The error says 'item' must not have any parameters.', so I guess you must enter an expression item('Apply_to_each')?['Date'] into it.

If so, please not do that, and use the items('Apply_to_each')?['Date'] or item()?['Date'], and try it again.

 

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

Anonymous
Not applicable

Hello @v-litu-msft 

 

Thank you for replying my post 😀

 

I've changed the expression for date column.

ErikD_0-1604303506116.png

 

And when I test it out, suddenly I got another Error:

ErikD_2-1604303814268.png

 

Error Details:

Unable to process template language expressions in action 'Set_CalendarEvents_Value' inputs at line '1' and column '17782': 'The template language expression 'body('Html_to_text')?['body']' cannot be evaluated because property 'body' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'.

 

Is there any solution for this? (Sorry for to much asking 😞)

 

Thank you very much 😀

 

Regards,

Erik

Hi @Anonymous,

 

The error is caused by the Description field, please use the expression instead:

outputs('Html_to_text')?['body']

Screenshot 2020-11-02 160458.jpg

 

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

Anonymous
Not applicable

Hi @v-litu-msft 

 

Thank you for your help sir. Right now my flow working properly. 

 

Thanks & have a nice day! 😀

 

Regards,

Erik

I've discovered I periodically get errors by dropping in the built-in output from an "Html to text" action in Power Automate. It can work many times, and then fail for no obvious reason with the error referenced in this post. At this time, the "Html to text" action is marked as "Preview," so I guess that would be the explanation - but it definitely feels like a beta component. So far, in my tests, your proposal to create a function for outputs() does work. Hopefully it will prove more robust than the built-in result. Thank you for this suggestion.

 

As an aside, I see that the output from "Html to text" can include unneeded carriage returns, so I also enclose it within a trim() function for good measure.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,777)