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

Invalid Template Error For Switch Case

Hello,

 

I am attempting to run a flow and it is failing. The flow is for document changes and risk assessment. The flow is: When an item is created> Send an email > Update item switch case (based on email response) > Send an email.

 

The flow runs fine if the first condition in the switch case is satisfied. If 2, 3, or 4 are selected, I get the following error in the next send email step:

InvalidTemplate. Unable to process template language expressions in action 'Send_email_with_options_2' inputs at line '1' and column '2562': 'The template language expression 'body('Update_item')['Title']' cannot be evaluated because property 'Title' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'
 
Any help is appreciated.
 
 
 
3 REPLIES 3
v-yuazh-msft
Community Support
Community Support

Hi @ATodd,

 

Could you please share a screenshot of the configuration of your flow?

 

The error message told that the template language expression 'body('Update_item')['Title']' cannot be evaluated because property 'Title' cannot be selected.

 

Please share more details so we would try to provide a proper workaround for you.

 

Best regards,

Alice

GabrielStJohn
Community Champion
Community Champion

Hey, @ATodd!

 

Thank you for posting on the Flow Community Forum! It appears as though @v-yuazh-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

 

Thank you for being an active member of the Flow Community!

 

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



HI,

 

Sorry for the late reply. Thanks for giving this attention. Here is a screen grab. An email is sent with options when an item is created. Recipient can select 'Level 1' 'Level 2' or 'Level 3.' If 'Level 1' is selected, the flow continues, but any other option will cause it to fail. If I rebuild the flow it works at first, then I get the same error after some time. 

 

Flow2.png

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (46,148)