web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plug-in Step Duplication When Transferring Between Environments

(0) ShareShare
ReportReport
Posted on by 70

Hello,

We have come to realize that when we export and import a solution from dev to test environment in order to transfer our new customizations in the plug-in codes, the steps in plug-ins do not get updated but they are duplicated. New steps are created.

Is there a solution for this problem? Anyone having a similar issue?

*This post is locked for comments

I have the same question (0)
  • Dynamics365 Rocker Profile Picture
    7,755 on at

    This issue occurred due to deletion and recreation of steps in Dev environment.

    Delete all steps from Test environment and re-import solution. It will fix your issue.

  • okank Profile Picture
    70 on at

    Yes, deleting and re-importing temporarily works as a work-around until we need to import next time. We have too many plug-ins to do this every time we need to deploy to test environment. Besides, there is no "delete all" functionality in the profiler to save us time. We need to delete all the steps one by one. Is there a better fix?

    >This issue occurred due to deletion and recreation of steps in Dev environment.

    I did not understand this, we did not delete and recreated the steps in Dev. Just transferred solution to the test.

    Thanks.

  • Dynamics365 Rocker Profile Picture
    7,755 on at

    Import same solution again on test and check if there is duplicate..

    I think it should not be duplicate from now.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    As suggested above, the duplicates seem to be created by the way the plugins are deployed to your source/dev env.

    Please make sure the plugin step GUIDS are maintained. This normally happens when developers who work on plugin delete and re-deploy on dev.  

    I would recommend you use the Dynamics 365 Developer toolkit to deploy the plugin or Custom Workflow Activities as it will always maintain one GUID. And if there is a plugin deployment issue, try and avoid deleting and re-deploying plugin.

    https://marketplace.visualstudio.com/items?itemName=DynamicsCRMPG.MicrosoftDynamicsCRMDeveloperToolkit

    One other possible scenario where you could get duplicate SDK messages is that if someone directly registered plugin steps on target env (PROD/UAT) and you will now have two sets of Steps, one directly registered and other came through the solution. To avoid this scenario, please make sure no one directly registers plugin steps on UAT or PROD.

  • okank Profile Picture
    70 on at

    Thanks for all the answers. We will try to re-deploy to environments. And I will mark it as answer if it works.

  • Verified answer
    Sreevalli Profile Picture
    3,256 on at

    Hi,

    As suggested, every-time when you recreate a step will be considered as new. No duplicates should create when there are no new steps(no issue for updates).

    but you can bulk delete the steps from CRM when you have many steps recreated.

    open solution, under components we will be having "Sdk Message Processing Steps". Select the steps which you like to delete and click on delete.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans