Across the Internet I have read a lot of posts which explain the labels importation from a development environment to a production environment moving the *.ald files from one to another. The location of these files is a bit different depending on the AX version:

  • C:Program FilesMicrosoft Dynamics AX40ApplicationAppl[AX4.0 application folder]
  • C:Program FilesMicrosoft Dynamics AX50ApplicationAppl[AX2009 application folder]
  • C:Program FilesMicrosoft Dynamics AX60ApplicationAppl[AX2012 application folder]

After copy the *.ald files into the production server it will be needed (in the production environment):

  • Delete the *.ali files
  • Restart the AOS

This method is totally valid and secure, but there is another way to do this that I feel that is not as known in the community (maybe I’m wrong but is my feel after looking for this kind of information across the Internet).

The alternative is use the export tool:

  • Export labels from development environment

Export-Project---AX-2009_thumb_3AF08240

Selecting the check ‘Export labels’:

Export-project-and-labels---AX-2009_thumb_3AF08240

We can define if we want to export all the label files or only some of them if we don’t use all the languages:

 

  • After that, in the production environment we can import the changes and the labels with the standard import tool:

By default, this tool import only the application objects, but we can change this behavior to import also the labels changing the ‘import’ option:

Export-labels-select-language---AX-2009_thumb_3AF08240

You can get some information about labels (new labels that is going to be added or else…) selecting the ‘Show details’ field:

Import-proyects-and-labels---AX-2009_thumb_3AF08240

In the ‘Note’ section you can view if each label is new (and is going to be created) or if already exists.

In the ‘Action’ column is possible to force the behavior related to a concrete label

For those who are curious, I reference a post which makes the label import/export by code (you can never learn too much :))

http://akb123.blogspot.com/2011/02/export-and-import-dynamics-ax-labels.html

 

Cheers!