latest Post

Dynamics CRM Patching - Patching over the cracks

When Microsoft introduced patching in CRM 2016 it solved an old age problem. Finally, we didn't have to export and import whole solutions when moving customisations between environments. In the past, this meant either having to hold off on pushing changes live or pushing solutions with unfinished customisations live. However, the introduction of patching and sub component selection in solutions fixed this old age dilemma.

However, there does appear to be a bug in Microsoft Dynamics CRM 2016 V8.0 when trying to apply solution upgrades.

The error reported in the log file is shown in the below Gist but the important bit is " must have the same base solution id". A couple of other users in the community have noticed a similar issue and this blog post suggest Microsoft are aware of the issue and a fix will be shipped in version 8.2.2.  I have since logged my own support case with Microsoft to get a definitive answer. 

However, the issue appears to be related to new functionality released which allows you to delete managed components from a managed solution. In the past we had to accomplish this using the unsupported holding solution technique to remove managed components without data loss. 

Studying the stack trace carefully shows the error is failing to delete something due to a dependency elsewhere.  As we are using CRM online I cannot get access to the SQL database to integrate further what the offending item is.

Where the issue becomes critical for us is that in our development environment our patches were cloned back into the base solution and further work carried out. The problem now is when we try to push the full solution to our live environment we get the following error message "Cannot update patched solution directly, use the holding pattern to upgrade" this is because we need to first apply the solution upgrade. This has left us in a state where we cannot push anything live until Microsoft provide a fix. 

Not accepting no for answer I thought about it logically the “apply solution upgrade” is just a supported way of doing what we used to do back in the day to delete managed components from a solution.  The tried and tested “Holding Solution” method. (see below steps) 

1.       Export base solution as managed from development environment 
2.       Edit the solution name in the customisations.xml file  appending _Holding to the solutionManifest uniqueName.
3.       Rezip and import into live environment
4.       Remove the original managed solution from the live environment (the solution above ensures nothing is deleted)
5.       Export the base solution as managed again and reimport in to the live environment with correct name.
6.       Delete the holding managed solution from the live environment.

Anyway, I tried to do this today following the above steps and it worked without data loss. The only difference is once the holding solution was in place I also had to remove the patches first prior to removing the original managed solution.

Yippee!! we are now back to being able to release changes live. Until Microsoft release a fix we either need to stop using patches or use patches and not clone the patches back into the base solution in our development environment.  

Anyway hopefully this saves someone some time.





Recommended Posts × +

16 comments:

  1. This concept is a good way to enhance the knowledge.thanks for sharing. please keep it up Salesforce Online Training Hyderabad

    ReplyDelete
  2. I am propelled by the information that you have on this blog. It demonstrates how well you grasp this subject website management

    ReplyDelete
  3. I really want to thank Dr Emu for saving my marriage. My wife really treated me badly and left home for almost 3 month this got me sick and confused. Then I told my friend about how my wife has changed towards me. Then she told me to contact Dr Emu that he will help me bring back my wife and change her back to a good woman. I never believed in all this but I gave it a try. Dr Emu casted a spell of return of love on her, and my wife came back home for forgiveness and today we are happy again. If you are going through any relationship stress or you want back your Ex or Divorce husband you can contact his whatsapp +2347012841542 or email emutemple@gmail.com website: Https://emutemple.wordpress.com/ Https://web.facebook.com/Emu-Temple-104891335203341

    ReplyDelete
  4. i want to say hallelujah to lord for using Priest Babaka of babaka.wolf@gmail.com to bless my womb, i have been married for the past 10year without a child i have look for all kind of help that can make me get pregnant but nothing works, but through an insight i came across Priest Babaka profile at the internet when i was searching for help on how i can get a baby, Quickly i contacted him to help me out, he said he will cast a spell that will make me sleep with my partner and get pregnant so he said he need to buy some of the other items he will use in casting the spell from the market that he want me to send him the money he will use in buying the items so i gave him the money and he cast the spell for me and ask me to go and lie with my partner so i did to my greatest surprise i became pregnant after that week so with so much joy in my heart i want to share this out to everyone in need that i have found favor in the hands of Priest Babaka of babaka.wolf@gmail.com, contact him now to via email : babaka.wolf@gmail.com or Facebook at priest.babaka

    ReplyDelete

  5. https://www.newdaypuppies.com/
    https://www.newdaypuppies.com/teacup-yorkie-puppies-for-sale/
    https://www.newdaypuppies.com/tea-cup-yorkie-puppy-for-sale/
    https://www.newdaypuppies.com/yorkshire-terrier-for-sale-near-me/
    https://www.newdaypuppies.com/yorkie-terrier-puppy-for-sale-near-me/








    ReplyDelete


  6. https://www.chihuahuapuppiesforsale1.com/
    https://www.newdaypuppies.com/
    https://www.myppuphouse.com/
    https://chowchowpuppiessale.com/
    https://www.globalkittens.com/

    ReplyDelete
  7. How long does a Yorkie live? 13 – 16 years
    Are Yorkies cuddlers?
    A lover of all things comfortable, the Yorkshire terrier enjoys cuddling with loved ones and snuggling into everything soft and fluffy. And for you, their silky coat isn't too bad for petting. https://www.newdaypuppies.com/

    Adorable Teacup and Toy AKC Yorkie Puppies
    We have adorable Yorkshire Terrier puppies male and female (she is pictured with the bow).The little girl was born on and the male was born on. yorkie for sale Both puppies have started potty training and have had all sets of puppy shots and deworming. They both come with AKC papers.The girl is very petite and has an adorable baby doll face. yorkie for sale She is a teacup and will mature to be around just lbs. She is very gentle and easy going She is the princess in our home and loves to be held.The male is full of spunk and is super playful He will mature to be lbs and would make an awesome family dog. He has a gorgeous silky coat and adorable teddy bear face.Both puppies are AKC registered and will come with a health guarantee shot record and sample puppy food. teacup yorkies for sale, teacup yorkie puppies for sale

    Adorable Teacup and Toy AKC Yorkie Puppies is a Female, Male Yorkshire Terrier Puppy for sale in US. Adorable Teacup and Toy AKC Yorkie Puppies by newdaypuppies for Female, Male Yorkshire Terrier Puppies. yorkie puppies for sale

    ReplyDelete
  8. I'm just too happy that everything is in place for me now. I would gladly recommend the use of spell to any one going through marriage problems and want to put an end to it by emailing Dr Emu through emutemple@gmail.com and that was where I got the help to restore my marriage. WhatsApp +2347012841542
    Https://web.facebook.com/Emu-Temple-104891335203341

    ReplyDelete
  9. Incredible blog, I follow you with joy, I respect your articles. travel health surveillance form Kenya Is necessary for all the travelers who want to visit Kenya . Because it is compulsory by the government of Kenya .

    ReplyDelete
  10. Iobit Uninstaller Key Pro is a program that you can use to uninstall programs from the computer. Iobit Uninstaller Key Pro, which contains many features, IObit Uninstaller Crack

    ReplyDelete
  11. Movavi Video Editor 2022 Crack full working download is now available with all the brand new features. The new panel on the right-hand side of your timeline will help you make sure sound levels are perfect for every moment. From an easily accessible Effects menu, select one or more effects to apply them all at once with just a click. Not only this, but Movavi Video Editor Key also comes with new audio effects! Named as Flanger and Distortion. Try them out right now to discover amazing ways of altering your voice, music, or other sounds.

    ReplyDelete
  12. Christmas Messages for Your Lover that square measure wizardly appears like Heaven to be defrayal this Christmas. Christmas Wishes For Love

    ReplyDelete