How to delete a label file in Dynamics AX 2012
Di Muso (del 25/03/2014 @ 13:27:12, in Informatica, linkato 2910 volte)
tratto da : http://yasirnedian.blogspot.ch/ In this post we will look at how can we delete a label file in Dynamics AX 2012.Labels are no longer a file system like we had in 2009. We now have a new node in AOT - Label Files. If you search in your application folder, you wont find the label file there.The application folder is located here. "C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\ Application\ Appl\Standard". In Dynamics AX 2012, the label file is imported in your current model. Now let us restart the AOS and see what happens. After restarting the AOS, go back to your application folder and try to find the label file again. This time the label file will be found.On every AOS restart, all label files will be copied to the application folder from the model store. So your label files are contained in your models but they are stored in your application folder as well. Now let us try to delete the label file. Right click on your label file. Do you see a delete/remove option? The answer is "No". so how do we delete the label file then? Below is the method by which a label file can be deleted easily. To create a temporary model Move our label file to the temporary model Stop the AOS Delete the temporary model Start the AOS Let 's do step by step. Go to Tools -> Model management -> Create model. Enter name as TmpModel. Press OK. You will recieve an info message saying “The model TmpModel was created successfully in layer usr.” Right click on your label file and select “Move to model”. Select the TmpModel checkbox and press OK. Stop the AOS. Open command prompt (Microsoft Dynamics AX 2012 Management Shell). We will be using the command line utility AXUTIL to delete the model. Issue the following command in the command prompt. AXUTIL delete /model:TmpModel You will be prompted if you want to delete the model or not. Press Y Start the AOS. Delete the label file from your application folder as well. When you open AX now, you will get a dialog saying that “Your model store has been modified.” This is normal because each time you perform an operation on a model, you will get this dialog. Depending on your operation, you should select one of the option. Since we just deleted a model which just had a label file, select Skip. Open AOT and notice that the label file is deleted now.