随笔 - 58  文章 - 0  评论 - 277  阅读 - 46万 

Workflow is a nice way to plan a schedule on the server and trigger any specific actions when it meets some specific circumstances. Custom workflow activity and out-of-box workflow customizations are two ways to come up.  Out-of-box workflow customization is really straightforward but a bit tricky when you deploy it to a production server, as some default values or static entry are referenced in a workflow within the old organization, but it couldn’t be indentified in the new organization.  Such an error message is popped up in my case:

“This workflow contains errors and cannot be published” – it’s misty as no specific description was given and you couldn’t find any other information neither Event Log nor CRM logs. It works well in development environment, what happened to this? 

Let’s have a careful look at the workflow itself, detail error information was found when you put the mouse on one of the cross: “this workflow includes an invalid reference. For more information, contact your Microsoft Dynamics CRM administrator”. And the innermost level cross indicates the place the error occurred. In my case here is “Send Mail” activity below.

Click “Set Properties” button to open the email template to see the details. “Allan” was referenced here as a default value (static value), this entry doesn’t exist in the new system yet, or even if exists, CRM server couldn’t identify it as the ID of this contact/user is changes.  

The easiest way to change it is replace “From” field to an existing contact/user – just fix the non reference error. Like below, I changed “Allan” to “CRM Administrator” which is a user of this CRM server.

The same way, if any other default values/static values are referenced in this workflow, you have to fix them all.

 It’s time to publish your workflow once all the cross fades away.

posted on   Allan.  阅读(2283)  评论(5编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
· 使用C#创建一个MCP客户端
点击右上角即可分享
微信分享提示