Background
There seem to be a few known issues to do with the interaction between custom connectors and using solutions to move them to other environments as documented here:
Create custom connectors in solutions | Microsoft Learn
The one causing most issues (from the above link):
- Custom connectors need to be imported first, before connection references or flows.
- If your environment doesn’t contain the custom connector in a solution, import a separate solution that only the custom connectors. Do this importation before you import the actual solution because Azure needs to register the custom connector beforehand.
- If you import a solution that contains custom connectors and flows, Azure won't be able to register the custom connector while it's registering your connection references or flows. This also applies to connection references for the custom connector that wasn't previously imported in a separate solution. If Azure hasn't registered your custom connector, the importation will fail, or you won't be able to start the import.
In addition, as described here - connectors don't initially work after importing Solved: Custom connector issues after exporting solution t... - Power Platform Community (microsoft.com)
We have found a workaround which is to import the custom connectors in their own unmanaged solution and not include them in any dependent solutions. After the initial import of the connector solution, we make a minor change to each connector (e.g. the colour), save, and then they work. However - this is a workaround, not a solution!
Additional Issue
However, in addition to the above issues, the solution behaviour is particularly unhelpful with this because if you try to add an existing connection reference to a custom connector to a solution e.g. to use in a flow, this will also add the custom connector to the solution. The workaround we've found is to add a new connection reference to the environment containing the flows that will use this reference then update the flows to use these new references.
This is far from ideal since it's not possible to import flows using custom connectors unless the solution containing the flow also contains the connection reference used by the flow.
One of the issues this results in is for, example, if we have multiple solution layers containing flows that use the same custom connector, each solution needs it's own connection reference for the flows in that solution to use, rather than having a solution containing just connection references that could be reused by many flows in many solutions.
Question
Are these known issues actually being addressed by Microsoft? Has anyone found any better ways of working with custom connectors and solutions that don't involve resorting to using pipelines, which requires additional cost for the relevant license tier?