Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Exception while upgrading holding solution using SDK.

$
0
0

Hi All,

https://stackoverflow.com/questions/41364576/dynamics-crm-dynamics-365-apply-solution-upgrade-programmatically

I am facing same issue and tried same steps as provided in above link, but getting exceptions as below when executing below code.

{"The action was failed after 0 times of retry. InnerException is: \"The TestAutoComplete_5_0_0_0_managed solution doesn’t have an upgrade that is ready to be applied.\"."}

 public void ImportCRMSolution(string solutionName, string inPutDirectory, IOrganizationService destinationService)

{

ImportSolutionRequest impSolReq = new ImportSolutionRequest()
{
CustomizationFile = fileBytes,
PublishWorkflows = true,
OverwriteUnmanagedCustomizations = true,
HoldingSolution = true,
};

 UpgradeSolution(solutionName, destinationService);

}

public Guid UpgradeSolution(string solutionUniqueName, IOrganizationService service)

{
    var request = new DeleteAndPromoteRequest
    {
        UniqueName = solutionUniqueName
    };
    var response = (DeleteAndPromoteResponse)service.Execute(request);
    return response.SolutionId;
}

Kindly help me ASAP.

Thanks in advance.

Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>