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

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,454)