MS CRM: After Deployment of a managed Solution a workflow is still in old version

我与影子孤独终老i 提交于 2021-01-28 08:07:44

问题


I've deployed an update to a managed solution in CRM 2016. In this updated solution, there was an update to an existing workflow. After the deployment the workflow is still in the old version, even though the import log says that the workflow definition has been overwritten and published.

How is this possible and what can I do to make it work?

FYI: The update of the workflow was an alternation of an if expression.


回答1:


Delete the managed solution from target environment. Retry by exporting a new managed solution from source environment (after publish all) & import in target, then publish all.

Since yours is onprem, run this query & compare the result with both environments.

select SolutionId, Type, CreatedOn, * from Workflow where statecode = 1 and statuscode = 2 and Name = 'your WF name'

For every version of Workflow, this table will have one entry, the old versions will have different combo of statecode & statuscode




回答2:


We were able to solve our problem by importing an update to the solution with the option 'step for upgrade' enabled.

I think the problem was, that we once manipulated the workflow in our managed solution over the customize system dialog. After a close inspection of the situation before the upgrade step we recognized that we had the same problem with multiple other workflows. After the upgrade step all our workflows are at the expected version.

We have to customize some of our workflows at the production environment because some of them have email tasks inside of them in which we want the email to be from a team. This team unfortunately has an other id on the developing environment than on the production environment.



来源:https://stackoverflow.com/questions/45816903/ms-crm-after-deployment-of-a-managed-solution-a-workflow-is-still-in-old-versio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!