Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Invalid Template Error For Switch Case

(0) ShareShare
ReportReport
Posted on by 2

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.
 
 
 
  • ATodd Profile Picture
    2 on at
    Re: Invalid Template Error For Switch Case

    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

  • GabrielStJohn Profile Picture
    on at
    Re: Invalid Template Error For Switch Case

    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

  • v-yuazh-msft Profile Picture
    on at
    Re: Invalid Template Error For Switch Case

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow