cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aKnowledgeWorke
Frequent Visitor

Dynamics 365 (CE) - Flows Failing in restored environment

Hi,

We have Dynamics 365 CE (current ver 9.2.x).  Our solution has 16 "cloud flows" (Power Automate flows).  

 

I recently restored Production back into our Training environment, and all flows were "off".  Turning them back on generated an error ("unexpected error").  If I look at the individual flows, they show as having no connection references.  Editing the Dataverse connection step with a known good account and trying to save it generates:

 

Request to XRM API failed with error: 'Message: An unexpected error occurred. Code: 0x80040216 InnerError: '.

 

The account and credentials are definitely correct.  I have tried swapping credentials to another sys admin account and trying to save - no success there either.  My understanding is that all the dataverse (and legacy Common Data Service) connections referenced the current environment by default, so I don't understand what's going on.  There are multiple connection references in the Default Solution for the same (service) account, but this doesn't seem to have caused issues previously in other environments.

 

Can anyone help?

 

cheers,

Steve.

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @aKnowledgeWorke ,

 

Based on the thread below, you may be able to get the flow to run after enable the administration mode of this environment:

https://powerusers.microsoft.com/t5/Using-Flows/Power-Automate-Flow-Triggers-not-working-Common-Data...

 

According to this blog:

https://crmtipoftheday.com/1351/flows-not-triggering-after-an-environment-copy/

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-jefferni
Community Support
Community Support

Hi @aKnowledgeWorke ,

 

Based on the thread below, you may be able to get the flow to run after enable the administration mode of this environment:

https://powerusers.microsoft.com/t5/Using-Flows/Power-Automate-Flow-Triggers-not-working-Common-Data...

 

According to this blog:

https://crmtipoftheday.com/1351/flows-not-triggering-after-an-environment-copy/

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

aKnowledgeWorke
Frequent Visitor

thank you!.  I also found that Publishing All Customizations worked.  I suspect both actions generate some kind of reset for the environment...

Steve.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,883)