We have performed a migration upgrade of our Dynamics CRM 2011 solution through CRM 2013, CRM 2015, CRM2016 and finally an in-place upgrade to Dynamics 365 (December 2016 update).
We are not able to add certain dialogs to solutions because of an error.
Steps to reproduce:
- Open a solution
- Click Add existing, choose Process
- Select a process of type Dialog
- Error
Findings:
- An AJAX call to an asmx service apparently to check dependencies of the process returns 500
- A javascript error occurs
- The GUI displays “Invalid user authorization” inside the Add-popup
Web Service Plug-in failed in SdkMessageProcessingStepId: {<GUID>}; EntityName: solutioncomponent; Stage: 30; MessageName: RetrieveExternalRequiredComponents; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0
Inner Exception: System.ArgumentException: An item with the same key has already been added.
<?xml version="1.0" encoding="utf-8" ?><soap:Envelope xmlns:soap="schemas.xmlsoap.org/.../envelope" xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema"><soap:Body><HasSolutionComponents xmlns="schemas.microsoft.com/.../WebServices"><objectId>{<GUID>}</objectId><objectType>4703</objectType></HasSolutionComponents></soap:Body></soap:Envelope> This is the response (500) <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="schemas.xmlsoap.org/.../envelope" xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---> An unexpected error occurred.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>