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 🙂
6 Comments
It saved my Day
Amazing!
Thanks!
Thank you
Thanks Jay!!!
You’re so amazing AND charitable, Jay! Thanks for saving from pulling my hair out!