Hi there,
I hope you are ready for a great weekend. I will have to work, but this is why we love what we do, and believe that our customers should get the best of us.
Anyway, this is going to be a short post about how to delete a user layer from the model store in AX 2012. I have to say that I miss the flexibility of AX 2009 when it comes to application files and layers. The good news is that for the Microsoft Dynamics AX R2 release, we are supposed to have the code in a different database.
Ok, so going back to our topic, to delete a user layer from the model you first need to install the Management Tools from your AX 2012 setup. Once this is done, you can access the Microsoft Dynamics AX Management Shell and write the following script:
axutil delete /layer:Usr
See the picture below for more details:
As you can see, deleting a layer is not difficult at all and it happens fairly quick too. Also, it is very important that you have a backup of the database before performing this action.
That's all for now folks.
It would be great if you can also solve the environment depended object ID's issue. So, we can easilly move data between different installation without table and field ID issues.
ReplyDeleteHi!,
DeleteSo far as i know, the only way to solve the ID issues is by exporting and importing models.
Please refer to this link and let me know if your questions in answered:
http://axwonders.blogspot.com/2012/07/deploying-customizations-between-ax.html
I hope this helps.
After deleting the usr layer, if I open Ax, it opens with the checklist and i need to compile and sync the application before i could actually use it.
ReplyDeleteThis takes 2.5-3 hours, which is still a major issue.
Any ideas on how to decrease this time?
Hi,
DeleteYes, this is an action that needs to be done when you delete a layer. The logic behind it is that we need to make sure that all the lower layers can compile without the deleted layer.
I hope this helps.
Excellent Dude------ I known few New things out of it
ReplyDelete