Recently, while working on Power Automate(formerly known as Flow), we got an issue saying “The template validation failed: ‘The repetition action(s) referenced by ‘inputs’ in action are not defined in the template.”
We were trying to use Set Variable action at 2 places inside a loop based on certain condition as shown below:
To save time and effort we tried to copy Set Variable action using Copy to my clipboard(preview) and pasted it as shown below:
After pasting, when we tried to save the Power Automate, we got the error message mentioned above.
To fix this issue, we followed the below steps:
- Close the Power Automate(Since saving is not working you’ll lose all the changes done after the most recent save)
- Open the previously saved Power Automate and do the same changes.
- Instead of copying/pasting the action, we created the actions separately at 2 places where we needed.
Hope it helps !!