This error message is thrown when other users trigger the flow. It runs fine for me (my account is the owner).
This is a flow that is triggered from a power app, and the error is on the second action that retrieves a SharePoint list item based on an ID passed from the app. Following is the full error message:
Unable to process template language expressions in action 'Get_item' inputs at line '1' and column '2181': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline']['connectionId']' cannot be evaluated because property 'shared_sharepointonline' doesn't exist, available properties are 'shared_approvals, shared_sharepointonline_1, shared_office365'.
When I do a peek on the Get Item action, it has the following:
Did you tried deleting the 'shared_sharepointonline' connection and recreate it. Attach it back to PowerApp again.
I've done a save-as of the flow, attached the new copy to power apps. Same error. I added a new connection to the existing flow, and got the same error. (though, this is difficult to test, as it always works for me. Adding a new connection and rerunning previous executions that failed are still failing, but perhaps that's due to the data that's part of the previous run?)
I have exported the flow, imported the flow (creating a new flow), shared it with another user to make it a team flow, and rewired it to the powerapp. Same error message.
I think I figured this out. When importing a powerapp/flow from a package, you are prompted to select each connection. The tricky part is that PowerApps allows you to have multiple connections with the same account. This means that the dropdown list seems to have duplicate entries, as they are the same type (sharepoint), and they both have the same email address. However, they are NOT the same, and they have different internal names. So, build a powerapp that calls a flow, and each uses sharepointconnection1. Export, then import, but if you pick sharepointconnection2, the power app will have a different connection than the flow, and this error will surface. Again, there is nothing in the GUI to alert you of this.
Read the announcement for more information!
Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
The top training and networking event across the globe for Microsoft Business Applications