简体   繁体   English

无法从CRM 2011中删除托管解决方案

[英]Unable to delete Managed Solution from crm 2011

We are having a big problem trying to delete a managed solution.It has more than 60 plugin steps and 20 processes and many entities.I disabled all plugin We run into this exception: 我们在尝试删除托管解决方案时遇到了一个大问题,它具有60多个插件步骤,20个流程以及许多实体。我禁用了所有插件我们遇到了此异常:

> Unhandled Exception:
> System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault,
> Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35]]: Generic SQL error.Detail: 
> <OrganizationServiceFault
> xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">  
> <ErrorCode>-2147204784</ErrorCode>   <ErrorDetails
> xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
> />   <Message>Generic SQL error.</Message>  
> <Timestamp>2013-11-13T07:39:55.2285423Z</Timestamp>   <InnerFault
> i:nil="true" />   <TraceText i:nil="true" />
> </OrganizationServiceFault>

Have you done any additional customizations or development with the entities in the managed solution? 您是否对托管解决方案中的实体进行了其他自定义或开发? I would check for dependencies there. 我会在那里检查依赖项。 Things like attributes on related entities from the managed ones, associated views from the managed entities on the non managed ones, and things like that. 诸如托管对象中的相关实体的属性,非托管对象中的托管实体的关联视图之类的东西。 Also if there are any attributes on existing entities like account, they will will need to be removed from views and forms as well. 同样,如果现有实体(例如帐户)上有任何属性,则也需要将它们从视图和表单中删除。

If you aren't 100% sure you should be able to go into the managed solution and see the dependencies for each entity there. 如果您不是100%确定,您应该可以进入托管解决方案并查看那里每个实体的依赖关系。

If that doesn't help since you are getting a Generic Sql error, I would suggest running a SQL trace and then uninstalling it. 如果由于收到通用Sql错误而没有帮助,我建议运行SQL跟踪,然后将其卸载。 That should help point the way to the issue. 这应该有助于指出问题的出路。

I've had issue before with timeouts attempting to remove an entity. 我遇到过尝试删除实体超时的问题。 After turning on Tracing, I was able to figure out the SQL query, and determined that I needed an index on the ActivityTypeCode because my query was timing out. 启用跟踪之后,我能够找出SQL查询,并确定我需要对ActivityTypeCode进行索引,因为我的查询已超时。 You may need to perform similar steps. 您可能需要执行类似的步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM