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 Apps / Solution Flows Turned ...
Power Apps
Answered

Solution Flows Turned Off after Import

(0) ShareShare
ReportReport
Posted on by 112

Hi folks,

 

I have a solution with about 25 cloud flows. After import, a majority of these flows that have Child Flows are turned off and return the dreaded "ChildFlowNeverPublished" error after I try to turn them on. 

 

I should note that some of my child flows make circular references (i.e. Child Flow A references Child Flow B, which can also reference Child Flow A.), which I suspect might be contributing here.

 

I have tried:

  • Recreating every flow directly within the solution
  • Ensuring all Connection References are owned by the same user who owns the flows and other solution objects
  • Editing each flow that has child flow(s), switching the Run a Child Flow action(s) to use an already-activated flow, saving the flow, and turning it on
    • This works, but is extremely tedious, adds unmanaged layers, and defeats the purpose of automating things in the first place.

Anyone have any ideas? Thank you in advance! 

I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,424 Most Valuable Professional on at

    Hi @ell10706,

     

    How are you deploying the solution flows? Are you using a service principal or service account to deploy?

     

    If using a service account, you need to ensure that the account owns all Connections in the target environment associated with the Connection References used by the flow.

     

    If deploying using a service principal, then the Connections in the target environment must be shared with the service principal.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • ell10706 Profile Picture
    112 on at

    @ChrisPiasecki 
    I am using a service account. 

    Yes, the service account owns all solution objects, including Connection References.

  • Verified answer
    Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @ell10706 The "ChildFlowNeverPublished" is a problem I've also experienced. I believe the problem is that the Flow activation logic within the solution import algorithm is internally unable to determine the correct sequence in which the Cloud Flows should be activated to avoid this error.

     

    I would firstly suggest that you resolve your circular dependencies between flows, even if that means rebuilding the logic of your Cloud Flows.

     

    Are you using source control and automated builds and deployments using either Azure DevOps or GitHub? If so, I would suggest setting up deployment settings file to automatically wire up connection references from your solutions to the corresponding connections in each target environment: https://learn.microsoft.com/en-us/power-platform/alm/conn-ref-env-variables-build-tools. Note that you will need to manually created your Connections for each unique connector you're each in each target environment using the Service Account.

     

    Finally, and this is something I think I need to look into for my project too, I would suggest you build your own custom deployment logic to turn on the Cloud Flows flows in the correct sequence - Child Flows first and then all other Flows. This can be a script that is executed after you import/upgrade/update the managed solutions in each target envrironment

  • ell10706 Profile Picture
    112 on at

    Thanks for the detailed feedback, @parvezghumra. This topic is sparsely detailed on the web 😞

     

    I did end up removing the circular logic, which allowed me to turn on all my flows. I did have to note down the proper order in which to turn them on (curious, why are some of them still off? I can turn on every flow without issue now), which I'll take your suggestion for and turn this into a script that I can run after every import.

     

    I'm not using any CI/CD pipelines yet but I'm moving in that direction, so I'll keep this in mind. 

     

    Thanks again!

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @ell10706 I guess the only remaining issue potentially causing your Cloud Flows to be turned off would be the lack of Connection Reference resolution to connections. The approach I suggested in my previous comment with deployment settings files, will resolve this I believe

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard