Creating AX Labels under Version Control

by | Jan 13, 2014 | Development, Dynamics AX

If you are using TFS for version control and you check labels in and out, you know the labels can be confusing.  What happens is, when you create a new label while under version control, the label is assigned a temporary label which will be something like @$AA1234.  The permanent label is only assigned once you check-in the label file.  The reason you get a temporary label is so the ID’s can be generated in consecutive order across multiple developers.  For example, when developer A checks in, his labels are assigned ID’s 1 and 2.  If developer B checks in a little later, her labels are assigned 3 and 4.  All 4 labels remain temporary until check-in time because that is when the next available ID value is known.

This timing of the assignment of permanent label ID’s creates some challenging scenarios.  For example, let’s say you created a new label which has a temporary value and you modified a form to use that temporary label.  If you check-in both of these objects, the label file and the form, at the same time everything will work out great.  The label will be assigned its new value and your form will be automatically updated to use the permanent ID.  This is the happy path scenario.

Now let’s say you check-in the form but not the label file.  At the time you check-in your form, the permanent value for the label is not known and your form will contain a temporary label that is not useful.  In that scenario you need to check-in your label file, get the permanent label ID and then re-modify the form plugging in the permanent ID.

The third scenario is, you check-in the label file but not the form.  In that case, your labels will be assigned their permanent values at check-in time, and while your labels are being checked-in, AX will update your form with the permanent label ID.  Everything is fine and no further actions should be needed.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

april

01apr10:00 am10:30 amPreview of New Features Coming in the April Release of Dynamics 365 Business Central

01apr12:00 pm1:00 pmUpgrading from AX to Dynamics 365 Finance and Operations

08apr12:00 pm12:30 pmLicensing Preparedness for Dynamics 365 Customer Engagement

08apr2:00 pm3:00 pmMaking PIM a Priority

09apr11:00 am12:00 pmConfab With Stoneridge - Livestream - Portals

15apr12:00 pm12:30 pmFeatures in the Spring Release of Dynamics 365 Customer Engagement Users Can Take Advantage of Immediately

15apr1:15 pm5:00 pmWhat’s New for Developers in Dynamics 365 Finance and Supply Chain Management – Online Workshop

22apr11:00 am12:00 pmPower BI and Reporting with Dynamics 365 Business Central

22apr2:00 pm2:30 pmNew Features for Power Apps Users

23apr11:00 am12:00 pmConfab With Stoneridge - Livestream - Internet of Things (IoT)

29apr10:00 am11:00 amStreamlining Customer Service and Enabling Your Sales Team with a Self-Service Portal

29apr12:00 pm12:30 pmUpdates to the Dynamics 365 Customer Engagement User Experience - What Technical Resources Need to Know

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X