Uninstalling Customer Portal in CRM 2013 Problem

This question has suggested answer(s)

I received the following error after trying to uninstall Customer Portal from CRM 2013:

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:

<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">

<ErrorCode>-2147187704</ErrorCode>

<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />

<Message>1 is not a valid status code for state code SavedQueryState.Inactive on savedquery.</Message>

<Timestamp>2014-01-02T16:24:48.7507766Z</Timestamp>

<InnerFault i:nil="true" />

<TraceText i:nil="true" />

</OrganizationServiceFault>

==================

CRM on-premises

CRM 2011 organization created in 2012, updated until rollup 14. This month we upgraded the Crm 2011 to Crm 2013.

MicrosoftXrmCustomerPortal Version: 1.0.0015 Installed On: 27/08/2012

Customer Portal installed in CRM 2011. After that we upgraded it to CRM 2013.

All Replies