While testing a cloud flow in Power Automate, for one of the actions, we got the below error
Unable to process template language expressions in action ‘Update_a_row’ inputs at line ‘0’ and column ‘0’: ‘Template language expression cannot be evaluated: the template action ‘Do_until’ is not defined at current scope.’.
We were getting the error because we were referring Current Iteration Index of Do Until control, which was inside Scope 1, in the Update a Row action of Scope 2, i.e. outside the scope of Do Until control.
Scopes – https://nishantrana.me/2022/05/10/d365-implement-try-catch-finally-in-powerautomate/
The way we resolved it was to initialize a variable, setting it inside the Do Until action with the current iteration index and then referring it inside Scope 2.
Do Until – https://nishantrana.me/2022/01/19/how-to-use-do-until-and-delay-in-power-automate/
Hope it helps..
2 thoughts on “Fixed – Invalid template. Unable to process template language expressions in action. Template language expression cannot be evaluated: the template action is not defined in the current scope (Power Automate)”