Detect code upgrade conflicts [AX 2012]
Updated: April 18, 2014
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Code upgrade conflicts occur when your customized legacy code cannot be safely used on a new Microsoft Dynamics AX target system without review and, in many cases, modification. This task opens the Detect code upgrade conflicts form, which offers options to perform various types of code conflict analysis and resolution. Conflicts are organized into development projects that allow for easy comparison of conflicting application object versions. The form also allows you to resolve some upgrade conflicts automatically.
For developer documentation about code upgrade in Microsoft Dynamics AX 2012, see the downloadable code upgrade white papers. See also Inside Microsoft Dynamics AX 2009, Chapter 18: “Code upgrade,” pp. 623–644.
The functions available from the Detect code upgrade conflicts form are listed below. You can:
-
Scan metadata (code, properties, form structure) and search for inconsistencies between the baseline and target versions.
-
Delete customized application objects where the customizations duplicate standard Microsoft Dynamics AX code.
-
Automatically merge versions of methods contained in multiple releases and customizations of Microsoft Dynamics AX.
-
Resolve object property conflicts automatically in favor of customer changes.
-
Scan for conformity to best practices in designing table and project references (IDs).
-
Analyze custom code on the target system for rule conflicts. This analysis is based on the code conflict rules that you imported during the Configure rules for code upgrade step.
-
Auto-resolve code conflict patterns that are discovered.
Projects that may be created include the following:
| Type of analysis | Project created |
|---|---|
| Layer conflict | Private project AxUpgradeLayerConflicts_<layer> |
| Framework (ID reference) conflict | Private project AxUpgradeRecIdConflicts_<layer> |
| Pattern (rule) conflict | Private project AxUpgradeRuleConflicts_<layer> |
Note |
|---|
| Although no baseline database is required to run code pattern detection, analysis of layer conflicts requires that you configure a baseline database before you run this task. Follow these steps to configure the baseline database:
|
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Note