码迷,mamicode.com
首页 > 其他好文 > 详细

Dynamics 365 解决方案导出报错

时间:2017-05-06 00:49:39      阅读:398      评论:0      收藏:0      [点我收藏+]

标签:业务流程   src   创建   back   this   creat   ott   测试   component   

之前导出解决方案异常,按照CRM社区的方法解决成功,但是没有了解原因,今天看到有朋友解答了原因,也分享给大家

先来看看异常

我那时导出的是default解决方案,这是模拟

技术分享

导出异常 “业务流程错误”-“业务流程无效”

无法下载错误日志,到流程里看了半天没有什么异常的BPF啊

看了半天没有解决,到Google查了一下发现有相同案例,

https://community.dynamics.com/crm/f/117/p/228069/647350#647350

原因竟然是解决方案中有草稿状态的BPF(业务流程),但是我不记得有创建过啊,到default中一找,还真有个草稿状态的BPF,不知道是谁直接在default中创建的,其他解决方案下根本没有,流程里也没看到,在开发解决方案找了半天。。

把它删除,果然导出成功。

当时没细想原因,今天看到了社区Scott Moore回复

We‘ve had this issue and I believe the primary cause is that we use the "Save As" button in an existing BPF to create a backup prior to making changes.  When that‘s done in the solution, the backup BPF is created in a draft state and the corresponding BPF entity is not created.  So removing that component from the solution works to get the export functional, or activating the BPF and then deactivating if you want to keep it in the solution.

按照Scott Moore的说法,是因为另存为按钮创建了草稿状态的BPF,但是没有激活过,所以系统中根本不存在这个BPF实体,CRM导出时,找不到对应BPF的实体发生错误,

如果你要保留这个BPF到解决方案中,那么先激活它,再禁用即可。

实际测试,普通的保存创建草稿状态BPF,也是无法导出的,所以还是先激活为好。

 

Dynamics 365 解决方案导出报错

标签:业务流程   src   创建   back   this   creat   ott   测试   component   

原文地址:http://www.cnblogs.com/WJvsToo/p/SolutionsExportError.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!