Showing results for 
Search instead for 
Did you mean: 
Continued Contributor
Continued Contributor

Flow started to fail after no changes.


I build a flow that was running fine for months. But I received an email last night saying my flow was turned off due to it failing too many times. 



InvalidTemplate. Unable to process template language expressions in action 'Get_item' inputs at line '1' and column '2515': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline_2']['connectionId']' cannot be evaluated because property 'shared_sharepointonline_2' doesn't exist, available properties are 'shared_sharepointonline_1, shared_sharepointonline, shared_office365'. Please see for usage details.'.






Nothing was changed, and the connectors are all fine, as you can see I was using the above and it worked. Is there a way to prevent this from happening? 


Hello @FoDelement ,


Could you please try to:


Disassociate and then re-associate the connections in Power Apps (as below steps):

1. Open PowerApp with the App edit mode,
2. Navigate to View > Datasource, selected the control on which the flow is associated and removed the sharepoint connections and re-added back again .

The above did not resolve the issue.
- Export the Flow , import again in the same environment. Then re-established the connection of sharepoint inside power apps.


You can also check similar threads below: 


Best regards,

Tiago Ribeiro | Power Platform Support Engineer

Continued Contributor
Continued Contributor

This flow is connected to multiple apps, (65 to be specific) it would require way too much time to do both of these.
Do we not know what is the cause of this error? I am the owner of the flow, and can confirm nothing was changed. 

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,342)