Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

After updating D365 plugin package( .nupkg), it is not getting reflected in system

(4) ShareShare
ReportReport
Posted on by 16

I am updating .nupkg plugin package, using plugin registration tool. But after updating it the latest code is not get reflected properly. Sometimes even the older version is coming back automatically. Only one developer is working on it so there no chance of overwrite by other developer. Creating the package by rebuilding the solution or clean and then Build. 
I found out older code is coming back or new code not updated properly by using traces. 

 

Not sure what is wrong, can anyone please help? If there any best practice to follow while working with .nupkg plugin package, please let me know.

Categories:
  • PV-23082238-0 Profile Picture
    3 on at
    After updating D365 plugin package( .nupkg), it is not getting reflected in system
    Unfortunately, this is not an answer but I'm hoping to add some color to this post.  I am facing the same issue in one of the environments I am working in now.  I found the following in the documentation.
     
    After Microsoft Dataverse instantiates the plug-in class, the platform caches that plug-in instance for performance reasons. Dataverse manages the length of time that a plug-in instance is held in cache. Certain operations, such as changing a plug-in's registration properties, trigger a notification to the platform to refresh the cache. In these scenarios, the plug-in is reinitialized.

    Because the platform caches plug-in class instances, the constructor isn't called for every invocation of plug-in execution. For this reason, IPlugin implementations shouldn't depend on the timing of operations in the constructor apart from obtaining static configuration data.
    Here's what I've tried so far:
    • Full rebuild with deleting of the old nupkg files
    • Updating the file version of the nupkg
    • Updating the registration details (async to sync)
    • Adding another step to the plugin
    • Adding a dummy plugin to the package assembly
    • Publish All (I was desperate)
    The most success I've seen is changing the Execution Mode.  It ran the correct version after the change but reverted back when I changed back to the old version again.  
     
     
     
  • Ayan28 Profile Picture
    16 on at
    Re: After updating D365 plugin package( .nupkg), it is not getting reflected in system

    Thanks for your response.
    I did it and it worked. But I can't unregister and register the whole package multiple times. I need to re-register all the steps and images as well.

    In development phase I am changing the code and deploying it multiple times. 

    Not a practical solution.

  • Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on at
    Re: After updating D365 plugin package( .nupkg), it is not getting reflected in system

    Hi @Ayan28 

     

    Try Unregistering Assembly and install it again create a step and try using it.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Follow me on Twitter : @rampprakashd
    Blog : https://microsoftcrmtechie.blogspot.com

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics