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.




Comments

Popular posts from this blog

Request not supported new_xxx when calling Custom Action via WebApi

Error in workflow sending email: "You cannot send email as the selected user."

CRM 4: Cannot login - 'Invalid Action', key has expired.