I wish that Mark did not mark "recreating the Flow" as the answer for this post because this bug still persists.
The closest way I've been able to recreate this issue on a consistent basis is to create a flow with a given set of connectors (SharePoint, OneDrive, etc.). The Flow can work flawlessly and seem great. Then, if I go back and now want to add an additional connector (custom or OOTB such as Outlook) I will get an error that the given connector is not available. It'll read like the following:
Unable to process template language expressions in action 'Send_an_email_notification_2' inputs at line '1' and column '2505': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sendmail']['connectionId']' cannot be evaluated because property 'shared_sendmail' doesn't exist, available properties are 'shared_excelonlinebusiness, shared_onedriveforbusiness, shared_sharepointonline'. Please see https://aka.ms/logicexpressions for usage details.'.
The Flow originally was created with SharePoint, Excel Online, and OneDrive (as seen in the available properties listed in the error). Then once I went to add the Send Mail connector a week later to just send a simple notification email, it reports that it "cannot be evaluated..." because the property / connector doesn't exist....
BUT I JUST ADDED THE CONNECTOR RIGHT TO THE FLOW. HOW IS IT NOT AVAILABLE?!?
Flow absolutely has a bug handling connectors (seems to be consistently related to OneDrive for Business associated Flows if that helps narrow it down). Please don't tell me to just re-create it.
Also to note, if I go to the Connectors page of the Flow. I get an error reading "Cannot read property 'properties' of undefined, however doesn't show me what is undefined?
What’s your current situation?
How did you add other connectors to an existing flow?
Did you try to add an action in the flow?
Could you share more details to help reproduce this issue?
Hello @v-yamao-msft, I've been able to narrow it down more. It looks like the Flow has to be created with a PowerApp Trigger and a given amount of connectors. Once I save, and then re-open the Flow and try to add an additional (new) connector, this is when the error pops up.
The workaround is to export the Flow, then re-import it as new. I found the workaround here when I encountered the same issue myself: https://powerusers.microsoft.com/t5/Building-Flows/property-shared-office365-doesn-t-exist/m-p/12984....
Recently discovered an easier workaround, though not as reliable: Test Flow with manual trigger.
After clicking the "Test Flow" and selecting "I'll perform the trigger action", a dialog appears that will map connections.
This has worked for me once.
I came across the same issue and I think I found the reason due to this is happening. If you add a new connection in the flow after creating it and use the test cases which are running on the previous connection configuration then it will generate this error.
Because in the previous run it doesn't have access to the newly added connections.
Solution:- Don't use the previous test case for testing it. Trigger the flow manually or perform the action which triggers the flow.
If this answer helps you please give a thumbs up.
@Naveen_772 that was the answer I have been looking for for two days!!!! Once I started the Flow from scratch it worked perfectly. THX a 1000 times 😊
Awesome, thanks. I did edit the flow after I had assigned the flow run to the button and got the same error. I had to remove flow run function and add it back and it worked.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us on June 28 for our monthly User Group leader call!
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!