Thursday, 27 February 2014

Delete Label Files in ax 2012.


Also, it is also not even in “Add-Ins”. So, the next step of expedition was to go under Tools/Label and try to find something of that nature; but that too ended in vain.
So, asking some peers and stumbling upon some webpages here is what I have found:
1) Create a temporary model; this is going to be just for the sake of this exercise so you can name it anything.
Go to Tools –> Model Management –> Create model.

2) Find the label file that you want to delete and move it to the recently created model.
Go to AOT–>LabelFiles–> LabelYouWantToDelete –> Move to model

3) Close the AX Client
4) Stop the AOS Service.
5) Delete the model we created in step 1).
You can use AXUtil(via command prompt) to delete the model: ” AXUTIL delete /model:YourModelName 
6) On every AOS restart, all label files will be copied to the server folder from the model store. So before we go ahead and start the AOS Service, we need to delete the label files from:
‘C:\Program Files\Microsoft Dynamics AX\60\Server\…\bin\Application\Appl\Standard’.
7) Start the AOS Service.
Label file should be deleted now, and we can check that under AOT–>Label Files.