DYNAMICS 365发布所有时候报错:appmodule With Id = a7a513b1-c87d-e911-a83a-000d3a375321 Does Not Exist...

我是微软Dynamcis 365 & Power Platform方面的工程师罗勇,也是2015年7月到2018年6月连续三年Dynamics CRM/Business Solutions方面的微软最有价值专家(Microsoft MVP),欢迎关注我的微信公众号 MSFTDynamics365erLuoYong ,回复339或者20190525可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!

最近对我的Dynamics 365 Customer Engagement Online实例的解决方案点击 【Publish All Customizations】会报错,如下图:

 

点击【Download Log File】后日志如下:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: appmodule With Id = a7a513b1-c87d-e911-a83a-000d3a375321 Does Not ExistDetail:

<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ActivityId>93b24a30-ed62-4b89-b4b2-5b3251b01b7e</ActivityId>
  <ErrorCode>-2147220969</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionSourceKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Step/Microsoft.Crm.Extensibility.ImageRetrievalStep</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: appmodule With Id = a7a513b1-c87d-e911-a83a-000d3a375321 Does Not Exist
   at Microsoft.Crm.ObjectModel.AppModuleService.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)
   at Microsoft.Crm.Extensibility.ImageRetrievalStep.RetrieveEntity(BusinessEntityMoniker moniker, EntityExpression entityExpression, PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.ImageRetrievalStep.RetrieveEntityWithColumns(BusinessEntityMoniker businessEntityMoniker, List`1 columns, ContextEntityKey entityRequest, PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.ImageRetrievalStep.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">84b9d1ca-3e30-11db-b951-000cf1fe02ff</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiDepthKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">1</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiActivityIdKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">93b24a30-ed62-4b89-b4b2-5b3251b01b7e</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>appmodule With Id = a7a513b1-c87d-e911-a83a-000d3a375321 Does Not Exist</Message>
  <Timestamp>2019-05-25T02:25:26.6330477Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

 

我用语句查了下这个appmodule,https://demo.crm.dynamics.com/api/data/v9.1/solutioncomponents?$filter=objectid eq a7a513b1-c87d-e911-a83a-000d3a375321 

返回的内容类似如下,存在两个:

 

可以看到 Component Type的值是80,我查了下 SolutionComponent 实体的元素据,componenttype字段是个OptionSet类型,并没有看到值为 80 的选项。

我用返回的 _solutionid_value 分别查了下,https://demo.crm.dynamics.com/api/data/v9.1/solutions(00000001-0000-0000-0001-00000000009b)

返回的两个解决方案的名称分别是:Common Data Services Default Solution 和 Default Solution ,应该是默认解决方案。

这个可能是一个短时间出现的已知问题,已经解决。

若碰到类似问题开发人员解决不了,可以登录 https://admin.powerplatform.microsoft.com/ 创建Support Request,Microsoft Customer Service & Support 会积极回应您的支持请求的。

转载于:https://www.cnblogs.com/luoyong0201/p/Dynamics_365_Solution_Publish_All_Customizations_Error_Appmode_Not_Exist.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值