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 × +

30 comments:

  1. Nice post.Thanks for sharing this post .I really appreciate the kind of topics you post here.
    school erp companies in chennai

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

    ReplyDelete
  3. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…

    Digital Marketing Training in Chennai

    Digital Marketing Course in Chennai


    ReplyDelete
  4. Great Article Cloud Computing Projects

    Networking Projects

    Final Year Projects for CSE

    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

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

    ReplyDelete
  6. 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
  7. 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

  8. 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
  9. https://www.chihuahuapuppiesforsale1.com/
    https://www.chihuahuapuppiesforsale1.com/chihuahua-puppies-for-sale-near-me/
    https://www.chihuahuapuppiesforsale1.com/chihuahua-for-sale/
    https://www.chihuahuapuppiesforsale1.com/chihuahua-puppies-near-me/
    https://www.chihuahuapuppiesforsale1.com/teacup-chihuahuas-for-sale/

    ReplyDelete


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

    ReplyDelete
  11. 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
  12. Is a Yorkie a good family dog?
    yorkie puppies for sale
    Yorkies, like many other Toy breeds, make good pets for people; they're especially good for senior citizens, people with medical issues, and those who may worry about the size and strength of a larger dog. ... They're loving, devoted, and very affectionate: This makes them great personal companions and good family pets.

    Do Yorkshire terriers bark a lot?
    teacup yorkie for sale
    Yorkshire Terriers are little dogs with huge personalities. yorkie for sale With those huge personalities come a fierce territorial bark. Any time your phone rings, someone speaks or knocks on your door, or your doorbell chimes, your Yorkshire Terrier will likely bark. Outside noises aren't even required for barking for some Yorkies. yorkie for sale near me

    How much do Yorkshire terriers cost?
    yorkies puppy for sale
    Typical Yorkie prices range from $1,500 to $3,000, but the cost can fall far below or above that range. Prices will vary based on the puppy's lineage, appearance, health, and the breeder. It's also possible to adopt an older Yorkie for significantly less through a rescue shelter.
    https://www.yorkiespuppiessale.com/

    ReplyDelete

  13. Are Chihuahua puppies hard to train?
    chihuahua puppies for sale
    Chihuahuas are intelligent, strong-minded dogs that like to do their own thing. This can make them stubborn, earning them a reputation for being hard to train. However, reward-based training methods do appeal to a Chihuahua and there's no reason why they can't be trained to be obedient, just as with any dog

    Chihuahuas Have Fun, Playful Personalities
    teacup chihuahuas for sale
    Though chihuahuas are loyal and affectionate with their owners, they are anything but dull and love to play! However, no two chihuahuas are the same, so if you have a friend with a chihuahua, your pet is likely to be quite different and unique

    What food is bad for Chihuahua?
    teacup chihuahua for sale
    Foods Your Chihuahua Shouldn't Eat
    Alcohol. Alcohol (ethanol) is highly toxic to dogs. ...
    Caffeine. Coffee is one of the world's most popular beverages, with roughly 83% of the United States adult population consuming it on a daily basis. ...
    Chocolate. ...
    Some Fruit Seeds, Pits and Cores. ...
    Garlic. ...
    Grapes and Raisins. ...
    Hops. ...
    Onions.
    chihuahua puppy for sale

    The easiest way to adopt a Chihuahua would be through a rescue that specializes in Chihuahuas. A great place to start would be by starting a breed search on https://www.chihuahuapuppiesforsale1.com/chihuahua-puppies-for-sale-near-me/. The search will show you all the available Chihuahuas in your area.
    chihuahua puppies for sale near me


    ReplyDelete
  14. https://www.myppuphouse.com/
    https://www.yorkiespuppiessale.com/
    https://www.yorkiespuppiessale.com/teacup-yorkie-for-sale/
    https://www.yorkiespuppiessale.com/yorkies-puppy-for-sale/
    https://www.yorkiespuppiessale.com/yorkies-for-sale-near-me/


    ReplyDelete
  15. Are Yorkies good for first time dog owners?
    teacup yorkie for sale
    The Yorkshire terrier is a great starter dog for those who want a little lap dog. This breed is affectionate towards its owner and may even act protective around strangers.
    The Yorkie has a moderate energy level and only needs basic exercise.

    yorkie puppies for sale good for first time owners?
    yorkie puppies for sale
    It is the ideal pet for people who don't want to deal with pet fur at home or in their cars. This is the ideal pet for first time dog owners, since it trains easily and needs only moderate grooming maintenance. Yorkie poos are good with kids. It will play with them, is energetic and affectionate.

    Are Yorkie hypoallergenic? Yes
    Are Yorkie Poo good for first time owners?
    yorkie for sale
    It is the ideal pet for people who don't want to deal with pet fur at home or in their cars. This is the ideal pet for first time dog owners, since it trains easily and needs only moderate grooming maintenance. Yorkie poos are good with kids. It will play with them, is energetic and affectionate.
    teacup chihuahuas for sale

    Are Yorkie Poos good dogs?
    yorkies for sale

    https://www.newdaypuppies.com/

    ReplyDelete
  16. I am the happiest woman on earth right now, My husband that left me a few months ago just came back to me last night crying for me to take him back. DR, WINNER is a true and real Psychics He brought back my husband” Here’s his content if you have any problem contact him on his Email him now: Winnersspellcast@gmail.com And you can also reach him on whatsApp +2348138289852 or via his website:https://winnersspellcast.blogspot.com

    ReplyDelete
  17. 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
  18. 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