Hello,
I am working on a canvas app project which calls a few Flows as part of it's logic. I thought I'd give Solutions a try to package all of the different components and learn more about ALM. My current solution consists of 1 Canvas App, 3 Flows, 4 Connection References, and 3 Env Variables.
Today I tried to export my unmanaged solution and import into a test environment. I encountered this error:
1) Error Message: Import failed due to missing dependencies for _Menu Change Requests
2) Dependency shows to an old connector I had previously removed from the solution
The Connection Reference in question is an old SQL one I had created at some point and removed from the solution. I'm not sure how a reference was created in my canvas app. Here's the error log for reference:
[
{
"SolutionValidationResultType": "Error",
"Message": "The following solution cannot be imported: _MenuChangeRequests. Some dependencies are missing. The missing dependencies are :
<MissingDependencies>
<MissingDependency>
<Required type=\"connectionreference\" displayName=\"cnp_PowerPlatformTestConnector\" solution=\"Active\" id.connectionreferencelogicalname=\"cnp_PowerPlatformTestConnector\" />
<Dependent type=\"300\" schemaName=\"cnp_menuchangerequests_4b759\" displayName=\"Menu Change Requests\" />
</MissingDependency>
</MissingDependencies> , ProductUpdatesOnly : False",
"ErrorCode": -2147188707,
"AdditionalInfo": null
}
]
After researching for a bit, I found this post. The accepted answer leads to this article which mentions the following:
"Canvas apps and Flows handle connections differently. Flows now use connection references for ALL types of connections, whereas canvas apps only use them for implicitly shared connections such as SQL Server"
From the above I understand there isn't a way to explicitly tell my canvas app to use the SQL Connection Reference that I have defined within my solution, instead I relied on a SQL Connection I created in my dev environment. The below is a screenshot of my SQL calls within the app, for which I am using the environment Connection called Dev PowerPlatform (previously mentioned).
3) Canvas App showing 5 different SQL connections using the same environment SQL Connection
Going back to the import error... I believe I should be able to re-add the old SQL Connection Reference that's causing the error to my unmanaged solution and then try the export>import process again (have not tried this yet), but I don't need that old Connection Reference as it isn't being used by any other components, and I would rather remove any reference in my unmanaged app before exporting.
Any insights on how I can resolve this issue and remove the reference to the unused SQL Connection Reference are greatly appreciated! 🙂
Thanks for reading.

Report
All responses (
Answers (