Code Upgrade Overview AX2012
Code Upgrade Overview AX2012
Pre-Upgrade
Data Upgrade
Testing
(developer)
Data Upgrade
(administrator)
Figure 1: The upgrade process
This white paper describes the first two steps in the process: pre-upgrade and code upgrade. Data
upgrade is described in the Microsoft Dynamics AX 2012 TechNet library, in the section Upgrade to
Microsoft Dynamics AX 2012.
Once you have chosen the AOD code upgrade checklist, you must complete the “Upgrade preparation”
and the “AOD code upgrade” sections.
10
11
You will complete this checklist multiple times, once for each layer that you are upgrading. It is
important that you start at the lowest layer (for example, ISV). After the lowest layer is complete,
start on the next layer up. Perform this task sequentially until all layers are upgraded.
12
4. From the Import Microsoft AOD files into the baseline model store dialog box, select the
name of the layer file to import. You must import the Microsoft layers at the bottom of the list
first, and then the higher-level layers. Each layer must be imported one at a time.
13
3. From the Import AOD files into the new model store dialog box, select the name of the layer
file to import.
You must start with the lowest layer first.
Important: Do not import the Microsoft layers into the new model store.
4. Select the model to import the AOD file into.
5. Click OK to import the AOD file.
An Infolog message may appear if there are items in the AOD file that cannot be imported. See
the log file in the message for more information. The most common reasons for an application
object failing to import are as follows:
A method was added to a class that no longer exists in the AOT.
There is an ID conflict between two elements that have the same name and type but with
different IDs.
You have customized a hybrid class or a table that supports inheritance.
To upgrade these conflicts, first export the application objects from your Microsoft Dynamics AX
4.0 or Microsoft Dynamics AX 2009 system that failed to import to an XPO file. Then, import this
XPO file into the Microsoft Dynamics AX 2012 system by clicking Import from the AOT toolbar.
You can perform this step before or after completing upgrade.
6. Restart the AOS.
14
15
If import fails
If the model import fails, it could be because some child nodes have missing parents.
The /createparents switch is used with the import command to create parents. If a child-element is
imported, but its parent element is not in the model store, a fake parent is created in the model store.
The reason for this is because, when you upgrade to a new version, it is possible that the parent has
been removed in a lower layer. If that is the case, you need a fake parent to import the model.
In this case, the developer should import from the AxUtil command line utility by using this command:
axutil import /file:filename /createparents
16
2. Optionally select Create framework conflict project or projects, and then select the Record
and table ID references check boxes if you want to create separate projects for those conflicts.
3. Click OK.
Important: For the Microsoft Dynamics AX 2012 Convergence 2012 CTP build, no forms will
appear in the project even if there is a conflict.
17
Question: What does an ISV or partner need to do to get their Microsoft Dynamics AX 2009 code
ready for use in Microsoft Dynamics AX 2012 non-admin mode?
Answer: Outside of accounting for a few deprecated APIs (for example, hassecuritykeyaccess), there
should be no need for other changes. ISVs or partners do, however, need to create and customize role
definitions.
Question: Forms have undergone a major change (both user experience and data model). How
expensive will it be to upgrade my forms?
Answer: The new user experience (UX) patterns will greatly improve business productivity. To
facilitate upgrading to the new UX patterns, we have provided detailed documentation on each new
pattern. In addition, we have provided utilities that help validate the forms pattern.
18
Additional resources
Microsoft has provided extensive documentation on changes that impact an upgrade.
Much of the documentation can be found in the Microsoft Download Center, on the Code Upgrade
white papers landing page. Additional papers will be added over time.
Additionally, some videos are available on the Microsoft Connect site.
The following white papers are available on the Code Upgrade white papers landing page, or through
the direct links below.
Financials
Implementing the Account and Financial Dimensions Framework Microsoft Dynamics AX 2012
Implementing the Budget Control Framework for Microsoft Dynamics AX 2012
Implementing Budgeting for Microsoft Dynamics AX 2012
Application primitives
Using the Enhanced Number Sequence Framework in Microsoft Dynamics AX 2012
Video: Using the Enhanced Number Sequence Framework:
http://connect.microsoft.com/DynamicsAX6TAP/Downloads/DownloadDetails.aspx?DownloadID=3
3660
19
This document supports a preliminary release of a software product that may be changed substantially prior to final
commercial release. This document is provided for informational purposes only and Microsoft makes no warranties,
either express or implied, in this document. Information in this document, including URL and other Internet Web
site references, is subject to change without notice. The entire risk of the use or the results from the use of this
document remains with the user. Unless otherwise noted, the companies, organizations, products, domain names,
e-mail addresses, logos, people, places, and events depicted in examples herein are fictitious. No association with
any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended
or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without
limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a
retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or
otherwise), or for any purpose, without the express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights
covering subject matter in this document. Except as expressly provided in any written license agreement from
Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights,
or other intellectual property.
Microsoft, Microsoft Dynamics, and the Microsoft Dynamics logo are trademarks of the Microsoft group of
companies.
20