Power Automate · Cloud flows: design-time errors

InvalidTemplate

Short answer

InvalidTemplate in a Power Automate cloud flow: The flow definition contains a syntax error in an expression or action configuration. The most likely fix is to fix expression syntax.

VerifiedLast verified

01Error text

Power Automate error
InvalidTemplate

02Likely causes

  • Unmatched parentheses or quotes in an expression
  • Referencing an action output that doesn't exist (typo in action name)
  • Using a function with the wrong number of arguments (for example, createArray() with no arguments)
  • Type mismatch in a constant expression (for example, int('abc') or div(100, 0)), the engine validates these at save time
  • Copy-pasting expressions from documentation that includes invisible Unicode characters

03How to fix it

  1. Open the action highlighted in red in the designer.
  2. Check the expression in the formula bar. Look for unmatched ( ) or ' characters.
  3. Verify action names in expressions match exactly (case-sensitive): outputs('Get_item') not outputs('Get Item').
  4. If the expression looks correct, delete it and retype it manually to remove hidden characters.

iNotes

Action names in expressions use underscores instead of spaces. If your action is named "Get item", the expression reference is outputs('Get_item').

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Power Automate work:Open Power Automate jobs

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.