Posts

Showing posts with the label Hotfix

AX 2012 - Hotfix installation in AX 2012 R2/R3 | Patch in AX 2012 | Bug fixing using Hotfix | MRP Hotfix installation AX 2012

Image
Hello Readers, Today, in this post we will learn about how to install hotfix in AX 2012. Many times our client ask us to provide resolution for the bug, we can try manually to fix the bug as well as there are multiple hotfix are available within Microsoft. But the question is how to? In this article, we will tell you step by step method to install hotfix on your AX. Let's start... 1.) Download the desired hotfix from Microsoft LCS and unzip the downloaded file in a folder. 2) Run AxUpdate as administrator from the unzip folder. 3) Read the software license terms. (Skip if you don't have time) 4) Select packages to update. 5) Choose your model store DB from the drop-down menu. 6.) Review updates to be installed. Note all the KB updates numbers in notepad file. You will need it if you face any error after installation. 7.) Ready to install phase. 8.) Monitor the installation progress, generally it will take 30 mins to 45 mins. and also it...

AX 2012 [Error] : Violation of PRIMARY KEY constraint 'PK_ModelElementData_ElementHandle'. Cannot insert duplicate key in object 'dbo.ModelElementData'.

Hi Developers, Today, we will talk about below error in AX 2012 R2/R3 or D365 FO. When we upgrade or apply an hot-fix into AX environment, we might face some challenges, suppose you are installing hot-fix in your environment and face an error, open your log file and check for error in the end of the file, one is below: AxUtil call returned errors: Violation of PRIMARY KEY constraint 'PK_ModelElementData_ElementHandle'. Cannot insert duplicate key in object 'dbo.ModelElementData'. The duplicate key value is (822606, 1). The statement has been terminated. Error updating model database: Microsoft.Dynamics.Setup.AxSetupException: AxUtil call returned errors:Violation of PRIMARY KEY constraint 'PK_ModelElementData_ElementHandle'. Cannot insert duplicate key in object 'dbo.ModelElementData'. The duplicate key value is (822606, 1). The statement has been terminated.    at Microsoft.Dynamics.Setup.Misc.ValidateAxUtilStatus(AxUtilContext context)    a...