这是我的情况:
在我的 MSCRM 2016 On-Prem 版本中,我有 3 种相同类型的解决方案,我将其称为 Base-Solution。
这些是:
- IWO_CRM (V2.3.0.0) -> 基础解决方案
- IWO_CRM_Patch_... (V2.3.1.0) -> 包含一个快速需要的工作流
- IWO_CRM_Upgrade (V2.4.0.2) -> 新导入的升级基础解决方案
这些都是托管解决方案。
通常我只会升级并获得漂亮的IWO_CRM (V2.4.0.2) 但墨菲打了我一巴掌并否认了!
我现在的问题是:
我无法运行升级,因为它无法找到基础解决方案中包含的所有实体。
错误日志指出,补丁解决方案中的工作流丢失。
但是如果不使用升级解决方案,我就无法将基本解决方案与补丁解决方案合并。
我无法卸载补丁或升级解决方案,当我尝试时收到无法找到实体的错误。
虽然一切都乱七八糟,但我不确定我应该做什么或我能做什么。
这里是不同错误的概述:
尝试升级解决方案
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not ExistDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>3d3042f4-a52b-47d4-a93f-871e1904526e</ActivityId>
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not Exist</Message>
<Timestamp>2019-09-05T08:24:15.968578Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
尝试删除升级解决方案
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: All entities must be found.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>ef3e6030-5d3f-43b7-a202-c82584b7f15a</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>All entities must be found.</Message>
<Timestamp>2019-09-05T08:48:57.9558391Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
尝试删除补丁解决方案(看起来真的像第一个错误)
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not ExistDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>7b9f6465-df4d-44af-8497-c706bd9fee5b</ActivityId>
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not Exist</Message>
<Timestamp>2019-09-05T08:50:25.7216539Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
我真的希望这是足够的信息来描述我的问题。任何帮助表示赞赏。
感谢大家