AX2012, Labels and TFS

Encountered a strange issue when dealing with labels in DAX2012 using the TFS. The normal process is to create the labels as normal, the system will allocate a temporary label id. When you check in the labels the system will create the actual labels and update your code replacing the temporary label with the new label. This all sounds great, but what happens when things go wrong?

The problem encountered was the temporary labels simply would not release to the TFS. I still have no idea why, but I have found a work around which might be of use in case this issue occurs.

Instead of creating the labels through AX, you need to open the physical label file. This file is located in the typical following directory:

C:\Program Files\Microsoft Dynamics AX\60\<instance>\bin\Application\Appl\Standard

The label files are called AX<labelId><language>.ald

Find the label file you want to create the labels in, and the language, then open in notepad. At the bottom you can add your new labels.

Now open DAX in the development environment, and open the label editor. Check out the label file you updated, then check in. This will send the ald file to the TFS. I now recommend you restart the AOS. Once restarted, open DAX in the development environment, and open the label editor. Press the get latest and you should see the labels you created are synced into your environment.

Once done the last step is to ensure the ald files are up-to-date. To do this you need to stop the AOS, then delete all the ald files in the directory:

C:\Program Files\Microsoft Dynamics AX\60\<instance>\bin\Application\Appl\Standard

Once deleted, start the AOS and you should be good to go.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s