cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

connection not configured for this service

Hi All,

 

Background Info

 

  • Using Power Apps and Power Automate with back end as Dataverse.
  • All Artefacts are under a Solution with maker.powerapps.com for ease to move to environments at later stage.   
  • We need to generate PDF via OneDrive (no premium connector)  and send email to end user when workflow completes.

What Works:

 

  • As flow owners for that workflow and has following connections

    aaroh_bits_0-1618457635286.png

     



  • Once workflow kicks in a success message in Power Apps is shown asaaroh_bits_6-1618457780193.png

     

  • Submit button action in Power Apps is as follows:

 

 

If(
   Not(IsSubmitError),
    IfError(
        PurchaseRequestApprovalSubmission.Run(Text(HelpDeskWorkflow)),
        UpdateContext({IsSubmitError: true});
        Notify(
            "The workflow was failed to start. Message: " & ErrorInfo.Message & "& Error Kind" & ErrorKind,
            Error
        ),
        UpdateContext({IsSubmitError: false})
    )
);

 

 

What does not work

Other non- flow owners do not trigger the workflow

 


  • User Alex as following connection and OneDrive connected for Alex’s account.
    aaroh_bits_2-1618457635295.png
  • But when I clicks on Submit  workflow, he gets this error

     

    aaroh_bits_3-1618457635296.png

  • Tried may other options such as
  • We removed the OneDrive action inside flow, then re-add back. Then updating the connection reference inside the app.
  • We ensured there’s no other dummy connection inside the flow. Then updating the connection reference inside the app.
  • We Deleted the OneDrive connection that connects to the flow, then re-add back. Then updating the connection reference inside the app.
  • We created another dummy app, trigger the workflow, then the error message shows up as: “HelpDeskWorkflow.Run failed: connection not configured for this service”.
  • We created another dummy app, create another dummy flow, both are outside the solution, the workflow triggers just fine.
  • We Exported the flow package (.zip), then import back to the environment.
  • With the imported flow package (.zip), we created another dummy app and trigger the workflow, it works as per normal again. The flow was imported outside the solution and can’t be added into the solution.

 

Stumbled into a quite a few of issues in the community forum

PowerApps Flow Error : "Connection not configured for this service", when its in included in the Managed Solution and deployed

https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerApps-Flow-Error-quot-Connection-not-con...
My experience with connector/connection problems, and multiple connections to same connector  
https://powerusers.microsoft.com/t5/Connecting-To-Data/My-experience-with-connector-connection-probl...

Connection not configured for this service (with Microsoft Support ticket details )

https://powerusers.microsoft.com/t5/Building-Power-Apps/Connection-not-configured-for-this-service/m...

Any suggestions or pointer will be greatly appreciated.

@martinav @CFernandes  @jinivthakkar  @Pstork1  @v-xida-msft 

115 REPLIES 115

This didn't work for me, in my case it was happening in the DEV environment. 

The fix I found was to simply remove the flow inside the canvas app and add it back again. 

The error went away. 😉

No, other permissions should not be required - only Read at Organization level. Those were just the default settings in my environment.

lyndzhang
Frequent Visitor

Raised a ticket with Microsoft Support. This is how we solved it (hopefully it stays solved!):

 

1. Go to Power Platform Admin

2. Go into the environment and then Settings - Security Roles

3. Make a copy of "Basic User" role, e.g., call it "Basic User 2" (This is because the "Basic User" role is read-only!)

4. Go into "Basic User 2" and change the "Read" permission for "Process" to "Organization"

2023-09-19 11_56_34-Power Platform admin center — Mozilla Firefox.png

 

5. Assign this new role "Basic User 2" to your users.

 

2023-09-19 12_03_47-Security roles _ Power Platform admin center — Mozilla Firefox.png

That's right, guys! God works in mysterious ways. I had the same problem, I added the person to the environment as "Environment Creator" and "Basic User", it didn't work, but when I REMOVED it, it started to work.

No this work around will work only for that person but not for all the people that have to use your flow in the app

Unfortunately, yes, however, it solves the problem, albeit harshly. Has a solution been found for all users? I tried the suggestions in the post but nothing worked.

have you tried removing the flow inside the canvas app and adding it back?

Sadly yes... But I will continue to try the alternatives.

The fix for all this is to build both the Power App and the flow inside a Solution. Then configure the connection references and Run only user settings. Then the flow will be recognized as long as the user has at least Basic User role in the environment.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

This worked for me, thank you!

JeremyHancock
Frequent Visitor

After many hours of trying to make this work, I found that if I deploy through the UI, they only way I could get others to be able to run the flow, was to create an unmanaged layer and re-add the connection in the flow.

 

However, that isn't really a good solution. So I worked out how to deploy the solution using the pac cli.

 

Something like this:

#package from dev
pac auth select --index 2
pac solution publish
pac solution export --path c:\temp\solutionfilename.zip --name SolutionName --managed true --overwrite

#Deploy to test
pac auth select --index 3
pac solution import --path c:\temp\solutionfilename.zip -pc --settings-file c:\temp\SolutionNameDeploymentSettingsDev.json

#Deploy to prod
pac auth select --index 4
pac solution import --path c:\temp\solutionfilename.zip -pc --settings-file c:\temp\SolutionNameDeploymentSettingsProd.json
 
I had to generate the settings file and then work out how to populate the values. I have a number of environment variables pointing to SharePoint lists. The trick was to use the GUID list id for the values.
 
The settings file looks something like this:
{
  "EnvironmentVariables": [
    {
      "SchemaName": "jem_ErrorRecipient",
      "Value": "email@address.com"
    },
    {
      "SchemaName": "jem_shared_sharepointonline_<guid>",
      "Value": "<list guid>"
    },
    {
      "SchemaName": "jem_shared_sharepointonline_<guid>",
      "Value": "<list guid>"
    },
    {
      "SchemaName": "jem_shared_sharepointonline_<guid>",
      "Value": "https://<tenant>.sharepoint.com/sites/<sitename>"
    }
  ],
  "ConnectionReferences": [
    {
      "LogicalName": "jem_SiteConnection",
      "ConnectionId": "<connection id guid>",
      "ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
    },
    {
      "LogicalName": "jem_sharedoffice365",
      "ConnectionId": "<connection id guid>",
      "ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_office365"
    }
  ]
}
 
Once deployed, I had to share the app with my security enabled M365 group as a user and then add the group as 'Run only users' for the flow using the service account for the connections.
 
Then I found my test user could access the app and run the flow without the 'connection not configured for this service' error.
 

 

jeeva1
Frequent Visitor

Great Functions 

I have a DEV, TEST and PROD environment.
In DEV and TEST environment I don't have the problem. Only in the PROD environment.

We fixed it by assigning the "App Opener" security role to the default org team via the Power Platform Admin Center.
 
Environments > Your Target Environment > Settings > Teams
  1. Look for your default business unit team
  2. Manage Security Roles 
  3. Add the App Opener security role
 
The App opener security role has "Organization level" read access to the "Process" table/entity (Dataverse system table) which is somehow required in the target environment, for normal users to trigger flows from power apps. Strangely, this is not required in the source environment.

 

 

Hi,

 

5. Under the Security Roles, find the Basic User role , click on  ellipses (...) >> Edit

 

This step is not doable because 

sbroud_0-1699628246308.png

Also, I tried to copy this role and assign organization to Read (Process). Nthing changed. the problem persists.

 

Please assist

 

jeeva1
Frequent Visitor

Run text are all clear and it's amazing that the units are quarterly managed by a version of programs by employees 

The issue was resolved by addressing a situation where the App and flows were initially created separately outside of the Solution. These flows were then integrated into the App, and both were added to a Solution in the Development environment for eventual export to the Production environment as a Managed Solution.

Resolution Steps:

  1. In the Development (Source) environment solution:

    • Remove the associated flows from the App.
    • Re-add the flows to the App.
    • Publish the customizations.
    • Export the solution as a managed solution.
  2. In the Production (Target) environment:

    • Import the solution again as an update (assuming the solution was previously added but not functioning).

There appears to be a bug where, despite the flows continuing to work in the Source environment, a simple refresh of the flow from within the App in the solution triggers an error in the Source environment. However, if the flows are not refreshed, they continue to function without any errors.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,186)