Power Automate Flow run failed: Connection not configured for this service

Today I was battling with the Connection not configured for this service error.

Connection not configured for this service error.

Background

Iv’e got an app in Power Apps that manages documents. And the different levels of access to the documents I’m controlling using AD groups. One of my flows is run while the app is starting, and this flow will get the groups that the logged in user is part of.

Iv’e got 3 versions of the app. One app in a Development environment, one in a Test Environment and one in a Production environment. All within the single tenant.

I’ve got 3 accounts

  • Developer
  • Test
  • Service

My Developer account is used to develop the app and flows.

My Service account owns the solution containing my flows and apps in the Test and Production

And my Test account is just a normal account that I use to test my app.

Test results

When I run my app as my test user in the development environment I don’t get the Connection not configured for this service error. But when I run the app in Test or Production the same user account does get the error message.

My flow is quite simple. There is only really one action doing some work and the other steps just reshape my data.

The Send an HTTP Request action will collect the user’s groups that they are a member of and then the rest of the steps joins the group names together in a single string of text.

Power Automate Flow run failed: Connection not configured for this service Microsoft Office 365 image 4

Permissions to run flows

I quite quickly found the following post on the community forums: https://powerusers.microsoft.com/t5/Using-Connectors/connection-not-configured-for-this-service/td-p/891993

The answer given help if all your flows cannot be run.

  1. Navigate to Power Apps Admin Center
  2. Selected the Environment you are working. 
  3. Click on Settings on top bar.  
  4. Go to User + Permissions >> Security Roles  
  5. Under the Security Roles, find the Basic User role , click on  ellipses (…) >> Edit
  6. Under Customization tab >>  Select Process >> assign Read access to the Organization
Power Automate Flow run failed: Connection not configured for this service Microsoft Office 365 image 3

But these steps didn’t solve the problem. In my case there were other flows that were running perfectly fine.

In this case there is actually a different problem.

I even, as a test only, made my test user a co-owner of my flow, but still no luck. Running the app kept giving me that same error.

I restarted my browser. Cleared cache ( not that any of this could possibly be the cause of the problem). I even started using the Power Apps monitor, but this tool doesn’t give any information on failed flow calls inn Power Apps

Fixing Connection not configured for this service error

Time to fix the issue.

The solution is actually quite simple

In my case there is only one flow failing out of many flows within my app. So in development I removed the connection for the failing flow.

Then I re-added the connection to the failing flow. And finally redeployed my solution and magically everything was working again.

It’s is a bit of a pain that the same error is generated for two completely different issues.

Continue Reading Pieter Veenstra’s Article on their blog

Power Automate Flow run failed: Connection not configured for this service

Today I was battling with the Connection not configured for this service error. Iv’e got an app in Power Apps that manages documents. And the different levels of access to the documents I’m controlling using AD groups. One of my flows is run while the app is starting, and this flow will get the groups that the logged in user is part of.

Blog Syndicated with Pieter Veenstra’s Permission

Author: Pieter Veenstra

Share This Post On
Share via
Copy link
Powered by Social Snap