web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Deploying solution wit...
Power Automate
Suggested Answer

Deploying solution with pipelines

(1) ShareShare
ReportReport
Posted on by 11
I have a solution with 2 apps, 6 flows and 2 connection references and when I try to deploy using pipelines from DEV to TST, the connections are not there, and neither is any user the apps are shared with. The flows are always off and I get:
Turn on failed. Flow client error returned with status code "Forbidden" and details "{"error":{"code":"ConnectionAuthorizationFailed","message":"The caller object id is '4d679c53-ca50-410d-9c65-74b148b8c224'. Connection 'citram_sharedsharepointonline_3e569' to 'shared_sharepointonline' cannot be used to activate this flow, either because this is not a valid connection or because it is not a connection you have access permission for. Either replace the connection with a valid connection you can access or have the connection owner activate the flow, so the connection is shared with you in the context of this flow."}}".
 
I deleted the solution in TST and exported/imported it back and now I get:
Turn on failed. Flow client error returned with status code "BadRequest" and details "{"error":{"code":"InvalidOpenApiFlow","message":"Flow save failed with code 'MultipleErrorsOccurred' and message 'The dynamic operation request to API 'sharepointonline' operation 'GetTable' failed with status code 'NotFound'. This may indicate invalid input parameters. Error response: {\r\n \"status\": 404,\r\n \"message\": \"List not found\\r\\nclientRequestId: d3add3c3-9585-434c-bd2d-6d5032c99dc1\\r\\nserviceRequestId: 5d1918a2-7045-d000-57cc-2eda05300fcf\"\r\n};The dynamic operation request to API 'sharepointonline' operation 'GetTable' failed with status code 'NotFound'. This may indicate invalid input parameters. Error response: {\r\n \"status\": 404,\r\n \"message\": \"List not found\\r\\nclientRequestId: d3add3c3-9585-434c-bd2d-6d5032c99dc1\\r\\nserviceRequestId: 5d1918a2-5046-d000-57cc-284b8c0e4f5e\"\r\n}'."}}".
 
I have no clue why the connections are not coming through. I have updated all the environment variables and made sure the connections are checked green before I deploy, but still nothing. I do not want update anything through the default environment since I don't want unmanaged layers. Is there something I need to do that I have not? 
Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    2,509 on at
    Your issue is not caused by pipelines themselves — it’s caused by:
    • connection references not being rebound to valid TST connections,
    • SharePoint list metadata/GUID mismatches,
    • and expected Power Platform ALM behavior where connections and sharing permissions do not migrate automatically.
    The clean enterprise approach is:
    • One logical connection reference per connector
    • Environment variables for URLs/list names
    • Precreated resources in each environment
    • Rebind connections during deployment
    • Never edit managed flows after import to avoid unmanaged layers
  • Suggested answer
    RaghavMishra Profile Picture
    72 on at

    Hi,

    Both errors are classic post-pipeline symptoms, and the fix is on the target environment side, not the solution itself. Working through them:

    Error 1 — ConnectionAuthorizationFailed when turning on the flow

    The green check in the pipeline UI confirms a connection of that connector type exists in TEST — it does not confirm the deploying identity is the owner of that connection or has it shared in the "context of this flow." When the pipeline service activates the flow, it activates it as the deploying user, and that user must own (or be granted use of) the connection that the connection reference is bound to.

    1. In TEST, sign in as the same identity that runs the pipeline.
    2. Go to Power Automate → Data → Connections and confirm a SharePoint connection exists, owned by that identity.
    3. Open the solution in TEST → the SharePoint connection reference → ensure it's bound to that connection, not to one owned by someone else.
    4. Re-run "Turn on" on the flow. Reference: Manage connections in pipelines and Use connection references and environment variables in pipelines.

    Error 2 — InvalidOpenApiFlow / "List not found" (404)

    This means at least one of the flows still has the DEV SharePoint Site Address and/or List ID hard-coded in its action JSON. Connection references swap the authentication, but they don't rewrite a hard-coded list GUID — that's what environment variables are for.

    1. In DEV, create two environment variables in the solution: one of type SharePoint Site (Data source) and one of type SharePoint List (Data source). Microsoft added these data-source types specifically for this scenario. See Manage SharePoint sites and lists with environment variables.
    2. Open each flow's SharePoint action and re-pick Site Address → Enter custom value → select the environment variable. Do the same for List Name.
    3. Re-export, re-import via the pipeline, and supply the TEST site/list values during deploy (or set them as Current Value in TEST after import — but ideally at deploy-time so there's no unmanaged layer).
    4. Reference: Environment variables overview.

    What pipelines do not carry across — re-apply per environment

    Avoiding unmanaged layers

    The supported way to set TEST-specific values without creating an unmanaged layer is to set Current Value on environment variables during the pipeline deploy step (the pipeline prompts for them), or use a Deployment Settings file committed alongside the solution. Editing the imported managed solution components directly in TEST is what produces unmanaged layers — avoid that. Reference: Pre-populate connection references and environment variables for automated deployments.

    Run order I'd suggest: (1) fix the connection ownership in TEST and re-turn-on one flow to confirm Error 1 clears, (2) parameterize the SharePoint site/list with environment variables in DEV, (3) re-deploy with the deployment settings populated for TEST.

    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav Mishra — LinkedIn | PowerAI Labs

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 464

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 323 Super User 2026 Season 1

Last 30 days Overall leaderboard