web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / InvalidTemplate. Unabl...
Power Automate
Answered

InvalidTemplate. Unable to process template language expressions in action 'Set_variable_3' inputs at line '0' and column '0':

(0) ShareShare
ReportReport
Posted on by 9

Had a flow running where it is getting a Reservation request for a new reservation from a MS form.   The flow checks for current existence of a certain piece of info (phone number integer) for the customer.   If it doesn't find it, I create a new customer, and try to capture that new record ID.   That's when I'm getting the error.   What's weird is that this was working up to 4 days ago.    Error:    InvalidTemplate. Unable to process template language expressions in action 'Set_variable_3' inputs at line '0' and column '0': 'The template language expression 'outputs('Create_item_3')?['body/ID']' cannot be evaluated because property 'body/ID' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.     Not sure what changed or where.   Nothing is making sense right now.

Categories:
  • Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    Hi @SLHSLM ,

     

    Please share your flow and the details of the set variable action.

     

    Ellis

  • Verified answer
    SLHSLM Profile Picture
    9 on at

    Worked on this issue this afternoon.   At some point the "Create Item" got an "Apply to Each" wrapped around it unintentionally.   I've seen MS add these in automatically, not sure what triggers them.  At any rate.   Dragged the Create Item out of the Apply to Each loop, deleted the loop.   Had to re-create the Create Item because now all the field assignments inside just got disconnected, even though they still showed the correct field in the assignment boxes.   After all that it started functioning in that part of the flow.   Then it started failing later in the flow where we had an 'addhours' function that quit working because evidently in the past few days, MS did some kind of update, where when a date comes in from a MS form, you can't add hours to it until you add some default hours to the string that comes in from MS Forms that is time-less.  Flow seems to be working now with tests, waiting on "real" data to flow tomorrow.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard