locked
How to undeploy the custom workflow in CRM 2015 RRS feed

  • Question

  • Hi Guys/Experts,

    Please guide me how to undeploy(unregister) a custom workflow in CRM 2015?

    I have created a custom workflow which has also updated the RegisterFile.crmregister config file and deployed from Visual Studio.

    It then reflected while building the new workflow. However, for some reasons I want to undeploy it, so I have deleted the file from the project, removed the entry from crmregister file, but I get below error. The error was also coming before trying to undeploy.

    Error 79 Error registering plugins and/or workflows. Assembly bin\Debug\Solera.CRM.Workflow.dll could not be found. C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.12.targets 176 4 CrmPackage

    Any inputs is much appreciated.

    Thanks,

    Shameem

    Wednesday, May 18, 2016 12:33 PM

All replies

  • If you open the CRM solution that Visual Studio is deploying the plugin into, you should see the steps in the Plug-in Assemblies section of the solution.  You should be able to disable the step from there.  But you also need to make sure that the workflow is not activated in the Processes section first if it was ever activated. 


    Jason Peterson

    Wednesday, May 18, 2016 9:32 PM
  • Hi,

    The issues here is, due to the missing custom workflow file CRM is unable to build the Workflow assembly. Suggest you set "MSBuild project build output verbosity'' and "MSBuild project build  log file verbosity" to Diagnostics to see details about each artefact that is being built and deployed.

    You can do this from your visual studio tools menu

    Visual Studio -> tools -> Projects and Solutions -> Build and Run and set the above two options to Diagnostics.

    Please follow the steps below and verify for your custom workflow activity

    1. Your Solution, Open CrmPackage .proj file to check any references to Workflow Project file and remove it.

    2. Update RegisterFile.crmregister config file and comment out the <workflowtype> that you don't want to deploy.

    3. Deactivate any workflow that uses your custom workflow activity.

    3. You should use plugin registration tool (can be found in CRM SDK tools) and manually un-register the workflow assembly. Now that you have already deployed the assembly you will encounter deployment issues like type not found for missing any missing custom activities. (only do this on your dev not suggested for any other environments). Suggest you take a backup.

    4.  Once the custom workflow is unregistered your Workflow that used the custom WF activity will not open.

    Hope this helps

    Hope this helps. Amar

    CRM Forum Guidance on how to Help Us Help You

    Wednesday, May 18, 2016 10:11 PM