I have a solution I'm attempting to move between environments. This solution contains a process which assigns as connection between entities.
When attempting to import the solution I run into an error with missing dependencies
Solution import Failed. Error: Solution manifest import: FAILURE: The following solution cannot be imported: awesomeSolution. Some dependencies are missing. The missing dependencies are :
<MissingDependencies>
<MissingDependency>
<Required key="509" type="63" displayName="Prospect" solution="Active" id="{69cae6e1-a16d-e911-a818-000d3a1cac04}" />
<Dependent key="510" type="29" displayName="Agency's Student - Create connection" id="{e9fd9819-190c-495d-b023-06cb9c49dda7}" />
</MissingDependency>
<MissingDependency>
<Required key="511" type="63" displayName="Agency" solution="Active" id="{21eb17ba-a16d-e911-a818-000d3a1cac04}" />
<Dependent key="510" type="29" displayName="Agency's Student - Create connection" id="{e9fd9819-190c-495d-b023-06cb9c49dda7}" />
</MissingDependency>
</MissingDependencies>
Fair enough, the connection roles Prospect and Agency don't exist in the production system. So I spun up a little console app and injected the two roles which were missing in the destination environment with the correct ids.
...
var agency = new Entity("connectionrole");
agency.Id = agencyId; //guid from error
agency["connectionroleid"] = agencyId; //guid from error
agency["name"] = "Agency";
agency["category"] = new OptionSetValue(1);
context.AddObject(agency);
context.SaveChanges();
...
I confirmed that the new records actually exist and that they have the appropriate IDs. However I'm still getting the same import errors. Is there some way to have the solution import find those records? Is there some step in creating the records that maybe I'm missing? I'm hoping that there is a solution here which avoids me having to write a custom workflow task which looks up the connection role and does the association. It just feels like I can't be the only person who has ever moved a solution from environment to environment.
*This post is locked for comments
I have the same question (0)