Error messages › Saving and importing
Flow template invalid
Seen when saving a flow · Updated 8 November 2026
The message
Flow save failed with code 'InvalidTemplate' and message 'The template validation failed…'
What it means
Something in the flow's definition doesn't pass Power Automate's checks: an expression, a step reference, a run-after setting, or an empty loop.
How to fix it
- Read the rest of the message: it names the action and often quotes the expression.
- Paste that expression into AutomateAlong's Expressions checker.
- Check every step name used in expressions still matches a step.
Not quite your message? Paste the whole thing into the Flow Doctor. It reads the step, property and expression out of your exact wording and, for the stubborn ones, the AI reads the flow it happened in.
How to find the full error in Power Automate
- Open the flow and look at 28-day run history.
- Select the failed run (red cross), then the step with the red cross.
- The error is in that step's box; some are under Show raw outputs. Copy the whole thing, including the code at the start.
Other Saving and importing errors
- Required box empty or wrong type
- Empty Apply to each in an imported flow
- Pagination threshold above your licence's limit
- Blocked by your organisation's DLP policy
AutomateAlong is independent and isn't affiliated with Microsoft. Microsoft and Power Automate are trademarks of the Microsoft group of companies.