for Microsoft Power Automate and Azure logic apps

Fix the “Request to Azure Resource Manager failed with error:” in Power Automate

By Jay Goodison

24th October 2020

Fix the “Request to Azure Resource Manager failed with error:” in Power Automate

If you use Flow a lot you will undoubtedly have encountered this error message when updating an existing Flow: InvalidTemplate. Unable to process template language expressions in action

We have previously published this post on how to fix this issue: Fix the “InvalidTemplate. Unable to process template language expressions in action” error in Power Automate

There is now a new variation of this error message! Again, this issue is not specific to the Encodian connector, it affects all connectors in Power Automate:

Request to Azure Resource Manager failed with error: '{"error":{"code":"InvokerConnectionOverrideFailed","message":"Could not find any valid connection for connection reference name 'shared_onedriveforbusiness' in APIM tokens header."}}'.
Request to Azure Resource Manager failed with error: '{"error":{"code":"InvokerConnectionOverrideFailed","message":"Could not find any valid connection for connection reference name 'shared_encodiandocumentmanager_1' in APIM tokens header."}}'.

And for completeness a screen shot:

This error is not caused by an issue with the action or the configuration of the action… and there are two super quick approaches to resolve:

Option 1 – ‘Use new Test Data’

This issue typically occurs whilst you are building flow solutions and is typically caused by re-using previous run data. Just simply try using new data to test your flow!

If this quick fix doesn’t work, try option 2.

Option 2 – ‘Save As’ a new Flow

Use the ‘Save As’ feature to save your corrupt Flow as a new Flow, this process should fix any broken connections.

If this issue is affecting a PowerApp connected Flow then you may wish to simply disassociate and then re-associate the Flow which typically fixes the issue without needing to create a new flow using the ‘Save As‘ feature.

We hope this helps solve your issue 🙂

5 Comments

  1. Surya Suhas says:

    It saved my Day

  2. Ajay says:

    Amazing!

  3. Will Smith says:

    Thanks!

  4. Tivani Mushwana says:

    Thank you

  5. Roger Berggren says:

    Thanks Jay!!!

Leave a comment

Your email address will not be published. Required fields are marked *