Error when deleting a managed solution - 'State code or status code is invalid'
Tried to delete a managed solution in CRM 2013 Online today, and got the following error message:
Downloaded the log file, it contains something like:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: 1 is not a valid status code for state code SavedQueryState.Inactive on savedquery.Detail:
-2147187704
1 is not a valid status code for state code SavedQueryState.Inactive on savedquery.
2013-12-18T01:54:19.4259034Z
It turns out, the error occurred because I have deactivated some Public Views of the entity(ies) included in the solution. So, I opened the Default solution and after reactivated them, I can then delete the managed solution. Seems like a bug in Dynamics CRM.
Downloaded the log file, it contains something like:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: 1 is not a valid status code for state code SavedQueryState.Inactive on savedquery.Detail:
It turns out, the error occurred because I have deactivated some Public Views of the entity(ies) included in the solution. So, I opened the Default solution and after reactivated them, I can then delete the managed solution. Seems like a bug in Dynamics CRM.
Comments