cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LinnZawWin
Level: Powered On

Common Data Service Action steps become "Invalid Connection" everytime the Flow is imported as a Solution

My Flow contains the Action steps with Common Data Service Action steps. (For testing purpose, I used both Common Data Service and Common Data Service (current environment) connectors in the screenshots)

The issue is that whenever the Flow is deployed from my Dev environment to the other environment with the solution package, the steps with CDS connector become "Invalid Connection" (as in the screenshot below) and I have to select an existing connection for each and every step to resolve the problem. It happens for 

  • Common Data Service connector with (current) Environment
  • Common Data Service connector with specified Environment
  • Common Data Service (current environment) connector

Am I missing out anything?

Invalid.png

 

This is the screenshot of the Flow after resolving the invalid connections.

Valid.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: Common Data Service Action steps become "Invalid Connection" everytime the Flow is imported as a Solution

Hi @LinnZawWin ,

 

Since the flow is deployed from the Dev environment to the other environment, the connection would be different and you need to choose the corresponding connection for the special environment.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

LinnZawWin
Level: Powered On

Re: Common Data Service Action steps become "Invalid Connection" everytime the Flow is imported as a Solution

@v-alzhan-msft 

Thanks for your response, Alice.

But I thought the purpose of the solution-aware Flow is for automatically setting the corresponding CDS connection for the special environment.

Imagine there are 10 CDS Connector actions in a single flow, there will be x10 manual connection update every time the solution is deployed to the other environment. And automatic deployment would not be possible in building DevOps pipeline too.

I don't think Flow is still not ready to replace Dynamics 365 native workflow at this stage.

 

I found in Oct '18 Release Notes that

 

For each flow that you have imported, you need to wire up connections for your triggers and actions


 

I hope Microsoft will improve ALM for flows more by automatically wiring up the CDS connections to the target CDS for (Current Environment) connector.

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Common Data Service Action steps become "Invalid Connection" everytime the Flow is imported as a Solution

Hi @LinnZawWin ,

 

Since the flow is deployed from the Dev environment to the other environment, the connection would be different and you need to choose the corresponding connection for the special environment.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

LinnZawWin
Level: Powered On

Re: Common Data Service Action steps become "Invalid Connection" everytime the Flow is imported as a Solution

@v-alzhan-msft 

Thanks for your response, Alice.

But I thought the purpose of the solution-aware Flow is for automatically setting the corresponding CDS connection for the special environment.

Imagine there are 10 CDS Connector actions in a single flow, there will be x10 manual connection update every time the solution is deployed to the other environment. And automatic deployment would not be possible in building DevOps pipeline too.

I don't think Flow is still not ready to replace Dynamics 365 native workflow at this stage.

 

I found in Oct '18 Release Notes that

 

For each flow that you have imported, you need to wire up connections for your triggers and actions


 

I hope Microsoft will improve ALM for flows more by automatically wiring up the CDS connections to the target CDS for (Current Environment) connector.

View solution in original post

Highlighted
Helpful2
Level: Powered On

Re: Common Data Service Action steps become "Invalid Connection" everytime the Flow is imported as a Solution

No, it's not expected that you go into fix connections.  @v-alzhan-msft, take a look here:  https://docs.microsoft.com/en-us/flow/import-flow-solution.  They specifically call out as a TIP to avoid that issue.

@LinnZawWin, the behavior you expected used to work and still does occasionally.  I regularly deploy flows as managed solutions using triggers with CDS (current environment).  Recently, a handful of them stopped triggering after deploying to a new environment, as they should.

Last time this happend I was told to recreate the trigger because it had been updated.  Worked for a while and now it doesn't again ¯\_(ツ)_/¯

LinnZawWin
Level: Powered On

Re: Common Data Service Action steps become "Invalid Connection" everytime the Flow is imported as a Solution

@Helpful2  As mentioned in the Alex's blog post below, fixing the connection in the target environment after deploying the flow as a managed solution would create a change in the unmanaged layer. I guess that's why are facing unexpected complications.
https://www.itaintboring.com/dynamics-crm/a-tricky-flow/

 

I encountered the flow trigger not working properly in the target environment (even though it was unmanaged deployment)

I was advised to use "Common Data Service" connector as the trigger instead of "Common Data Service (current environment)" by the Microsoft support engineer when I raised a ticket. (because of some issues with "current environment" connector)

I am not sure if that's the case for your issue.

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,137)