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)

All registered plugin steps are deleted every time the Plugin assembly is updated

(0) ShareShare
ReportReport
Posted on by 180

Hello,

I've faced a strange issue during migration of existing functionality from current production version (8.2.2) to the latest one (9.0.2).

I've updated CRM SDK packages references in the plugin project to the latest available version (9.0.2.3). Project is building without any issue.

I've downloaded latest Plugin Registration Tool from NuGet (https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool/9.0.2.3), which is compatible with CRM 9.0.

But, when I'm updating the plugin assembly in CRM all plugin steps dissapear. So it seems, I need to re-create them after each Plugin DLL update.

Does anyone faced the same issue during migration and found some solution for it?

Thanks in advance!

--

Regards,

Anton

*This post is locked for comments

I have the same question (0)
  • gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    Could you please download the sdk from below reference and open plugin registration tool from there.

    http://xrm.tools/SDK

  • Verified answer
    ALTOSHAAM Profile Picture
    180 on at

    Hi Goutam,

    Thanks for reply.

    I've tried version 9.0.0.9314 from the link you've provided, but with no luck - result is the same.

    But during my experiments, I've found that revision and build numbers are generated automatically by VS during build.

    So, I assume the root cause is in assembly versioning.

    When I've tried to use the same version all the time - all is working fine - assembly is updated in place, and all steps remain untouched.

    When I'm changing the build number (for example, from 2.0.0.0 to 2.0.0.1) - than it treats it as brand new assembly and recreates it in CRM - and all registered steps are dropped.

    Previous version of Plugin Tool/CRM treated release and build version change as in-place upgrade. And only major/minor version change was treated as full assembly replacement.

    --

    Regards,

    Anton

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    This might be trivial, but I just want to make sure that when you update the assembly, are you checking the list of Steps that are going to be as part of this solution...

  • ALTOSHAAM Profile Picture
    180 on at

    Hi Aric,

    Absolutely, I'm selecting all plugins available in the assembly during update.

    Actually, you can select plugins (.NET classes that implement IPlugin functionality) in the tool, but not the steps, which are just metadata records in the CRM database.

    --

    Regards,

    Anton

  • Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    Hi, instead of create manual. Why not registered using crm package? So when deployed, you only need to deploy from vs and it will records all of your step in 1 file. It's a bit strange but I believe it because of assembly version number.

  • Michael Saroka Profile Picture
    60 on at

    How do you deploy a package from VS?  I was under the impression that the only way to make a package was to export a solution from the web UI.

  • ALTOSHAAM Profile Picture
    180 on at

    Probably, there is some VS extension, which could perform solution packaging and deployment. But I'm not aware of details.

    Such kind of deployment is applicable for development environment or for small projects. But it becomes mostly unusable when you have few staging environments, all CRM customizations committed into source control and CI tuned up.

  • Alex Fun Wei Jie Profile Picture
    33,628 on at
  • Michael Saroka Profile Picture
    60 on at

    Thanks Wei Jie Fun.  This is super helpful.  It does not like the new SDK as it seems ver 8 is hardcoded into the backend.  But everything else seems to work.

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