Export (0) Print
Expand All

Scenario: Perform in-place upgrade to AX 2012 R2 or AX 2012 R3 [AX 2012]

Updated: June 11, 2014

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2

An upgrade from one version of Microsoft Dynamics AX 2012 to another is known as a minor version or in-place upgrade. This type of upgrade requires no source-to-target workflow of the kind that is used when you upgrade from Microsoft Dynamics AX 4.0 or Microsoft Dynamics AX 2009. Instead, the upgrade operations are performed on a copy of your production system. This topic describes the method that Microsoft recommends for an in-place upgrade to either Microsoft Dynamics AX 2012 R2 or Microsoft Dynamics AX 2012 R3 from a previous Microsoft Dynamics AX 2012 version.

Note Note

An upgrade to AX 2012 R2 is almost the same as an upgrade to AX 2012 R3 from a version prior to AX 2012 R2. Throughout this topic, with a few exceptions, only the AX 2012 R3 upgrade scenario is explicitly described.

The recommended topology for this in-place upgrade scenario requires three Microsoft Dynamics AX systems:

  • Production – The existing system that you are upgrading.

  • Test – A copy of your production system that is used to upgrade the database architecture, test new components, and test the data upgrade.

  • Development – A copy of your test system, where you upgrade your customized code and other metadata.

The following diagram summarizes the workflow across the three systems.

process overview

Figure 1. Phases of an in-place upgrade.

By upgrading in the recommended manner, you achieve several goals:

  • Your data and customized code are safely backed up at all times.

  • Operations on the production system that cause downtime are kept to a minimum.

  • You avoid potential conflicts of object IDs in your data and customized code.

For all versions of Microsoft Dynamics AX, follow these steps before you start an in-place upgrade.

  • Freeze development and the application of hotfixes on the production system for at least two weeks before you copy it to the test system. Track any subsequent changes to the production system, and plan to perform a final delta code upgrade after you complete the main code upgrade on the development system.

  • Delete all earlier upgrade models from all layers of the production environment, and then synchronize the database. Upgrade models contain the word "Upgrade" in the name. For more information, see How to: Remove (Uninstall) a Model.

    ImportantImportant

    When you delete upgrade models and synchronize the database, all the DEL_ upgrade tables and fields are removed from the database. If you have a project that you are still upgrading to or AX 2012 R2, complete that project before you upgrade to AX 2012 R3.

  • Before you make a copy of your production database, so that you can use the copy to create the test environment, make sure that no batch jobs are running. Jobs must have the status Withhold or Ended. Batch jobs should not have the status Waiting. For more information, see View or change batch job status.

  • Make sure that the environment where you are performing the code upgrade has at least 8 GB of RAM. We strongly recommend that the environment have 16 GB of RAM.

  • Any modifications to the core system classes (Application, Global, Info, and Session) should be removed from the system before you run the AX 2012 R3 setup steps. You can add these modifications back later, as part of the code upgrade for the layer where the modifications previously existed. Failure to remove these modifications can lead to a state where Microsoft Dynamics AX Application Object Server (AOS) is unable to start or upgrade the database and stored procedures to the correct AX 2012 R3 state.

  • If you have installed any version of the Data Import/Export Framework from InformationSource, you must fully uninstall it before upgrading. This includes removing all binary files by using Add/Remove Programs, and then uninstalling any model that begins with DMF from the FPK layer. For more information see How to: Remove (Uninstall) a Model.

    You do not need to remove installations of the Data Import/Export Framework that were installed as part of cumulative update 7 for AX 2012 R2.

  • Make sure that your production Microsoft Dynamics AX database is in a fully synchronized state. If you removed the upgrade models in a previous step and completed the Model upgrade checklist that appeared after you deleted the models, no further action is required. However, if there were no upgrade models, you should not run AX 2012 R3 Setup until you complete one of the following tasks:

    • Verify that the Microsoft Dynamics AX Application Object Tree (AOT) and database are correctly synchronized.

    • Synchronize the database from the AOT by using the existing (pre-R3) client and AOS instance.

    Failure to synchronize the database might cause synchronization issues in the AX 2012 R3 environment and prevent AOS from starting.

  • An upgrade from AX 2012 R2 to AX 2012 R3 does not require a new user license. If you are upgrading to AX 2012 R3 from a pre-R2 version, make sure that you have your new license available during the procedures that follow.

  • Back up your production system data and metadata.

Your production system has one of two possible database architectures, depending on its AX 2012 version.

Pre-upgrade production system

Figure 2. The Microsoft Dynamics AX systems that are shown have either a single database for metadata and business data (left), or a separate database for each (right). When the upgrade is completed, the AX 2012 R3 system has a two-database architecture.

Because of the dual-database architecture that is introduced in AX 2012 R2, this in-place upgrade scenario has two variations. If you are upgrading from Microsoft Dynamics AX 2012 or Microsoft Dynamics AX 2012 Feature Pack, the single database that contains both the model store and business data is split when you run AX 2012 R2 or AX 2012 R3 Setup. If you are upgrading from AX 2012 R2 to AX 2012 R3, the model store and business data are already in separate databases, and no split is necessary.

The following diagram shows the two possible architectures of a test system.

Test system

Figure 3. Your test system will be a somewhat simplified copy of your production system that includes all components and databases.

Follow these steps to create a test system.

  1. Install a clean Windows Server system on the computers that will serve as your test environment.

  2. Install all software prerequisites for AX 2012 R3.

  3. Install Microsoft SQL Server and any other software that is required for your current Microsoft Dynamics AX system.

  4. Install the version of AX 2012 that you are currently using in production.

  5. Import a copy of your databases into SQL Server on the test system.

For the sake of simplicity, the diagrams that depict the test and development systems in this topic assume a one-computer system that contains the database, a single AOS instance, a single client, and the debugger (not shown).

For tips that can help you copy a Microsoft Dynamics AX system for testing or development purposes, see Moving between Microsoft Dynamics AX 2012 Environments.

For system requirements, see Microsoft Dynamics AX 2012 System Requirements.

Import Web Parts and reports into the AOT

Figure 4. Import any customized reports or Web Parts into the AOT, so that they can be redeployed after upgrade. This procedure is the same for both of the possible database architectures.

If your current deployment contains customized reports or Enterprise Portal for Microsoft Dynamics AX Web Parts, you must make sure that these customizations are preserved during upgrade by importing the customized code into the AOT before you install AX 2012 R3 components. Otherwise, the customizations are lost. During code upgrade, the imported reports and Web Parts are handled together with the rest of the customer-layer models. After all other server-based upgrade procedures have been completed, you can redeploy the customizations on their respective servers.

Import a report into the AOT

  1. Open Microsoft Visual Studio, and locate the report project in Solution Explorer.

  2. Right-click the name of the report project, and then click Add <project name> to AOT.

For more information, see Walkthrough: Customizing Existing Microsoft Dynamics AX Reports.

Import a Web Part into the AOT

After a URL Web Menu Item is defined that points to a page, the page can be imported into the AOT. For information about how to create a URL Web Menu Item for a page, see How to: Add Pages to Navigation.

  1. In the AOT, expand the Web node, and then expand the Web Menu Items node.

  2. Expand the URLs node, and locate the URL for the page to import into the AOT.

  3. Right-click the node, and then click Import Page. A copy of the page definition is imported into the AOT, and appears as a node in the Web > Web Files > Page Definitions section.

Before you run AX 2012 R3 Setup on the test system, you must manually uninstall the existing Microsoft Dynamics AX components by using Control Panel.

Non-database components removed

Figure 5. The test system after all non-database elements have been removed.

Note Note

This procedure assumes knowledge of AX 2012 R3 installation. For installation guidance, see Install Microsoft Dynamics AX 2012.

Case 1: Upgrade from AX 2012 or AX 2012 Feature Pack

Run setup on single database test system

Figure 6. Run Setup on the test system to (1) split the database, (2) install the new Microsoft models, and (3) upgrade the AOS instance and the client.

Case 2: Upgrade from AX 2012 R2

Run setup on split database test system

Figure 7. Run Setup on the test system to (1) install the new Microsoft models, and (2) upgrade the AOS instance and the client.

In this procedure, you run AX 2012 R3 Setup several times on the test system to install updated versions of the AOS instance, client, and debugger, install the models that are required for your deployment, and restructure the database. It is very important that you follow the detailed steps that are presented here, because this installation differs in important ways from other installation scenarios.

In both AX 2012 and AX 2012 Feature Pack, a single database contained data and metadata. Beginning with AX 2012 R2, the model store and the business data reside in separate databases to simplify maintenance and backup. Setup automatically splits the single database into the two databases that are used by AX 2012 R2 and AX 2012 R3.

Follow these steps to prepare the test system.

  • Go to Control Panel > Programs and Features, and uninstall all Microsoft Dynamics AX components except the AOS instance that you are upgrading.

    TipTip

    We recommend a test-system topology in which the AOS instance and the database are on the same computer. If these components are on different computers, the permissions on the two SQL Server databases that are created during upgrade might not be set correctly. In this case, you have to set the permissions manually by using AxUtil grant <arguments>.

  • Make sure that you run Setup as a user who has full permissions to the database.

  • Make sure that you have at least 60GB of free disk space for the installation of temporary files.

Next, follow these steps by using AX 2012 R3 Setup.

  1. Upgrade the database. Start by running Setup on the computer that hosts the AOS instance. Note that no other components are installed during this run of Setup. Go through the Setup wizard to the Select databases page, and select Configure existing databases.

  2. On the Connect to the databases page, in the Database name field, select your existing Microsoft Dynamics AX database.

    NoteNote

    The Baseline database name field should be left blank during this procedure.

  3. On the Select additional models page, select the Foundation model, Foundation Upgrade model, and any other models that you require for your deployment. If you are using country/region-specific features, also select the Foundation Labels model.

  4. On the Select file location page, select Specify a temporary file location, and then enter or browse to an appropriate location in which to store the temporary model files and the SQL Server log file. We recommend that you provide 60 GB of disk capacity for this purpose. Make sure that your current administrative user has full access to this storage location.

  5. Confirm your selections, and install the models.

    NoteNote

    After the models are installed, the AOS instance restarts automatically. This restart might take longer than a typical AOS restart. If this process times out and causes an error, restart Setup to continue.

    After this step is completed, the test system contains two databases, one that contains the business data and one that contains the model store. The model store now consists of the following components:

    • Upgraded AX 2012 R3 models in the SYS, GLS, FPK, and SLN layers

    • Non-upgraded customer models in the ISV, VAR, CUS, and USR layers

  6. To prepare for AOS upgrade, open the AX 2012 Server Configuration Utility (Start > Administrative Tools > Microsoft Dynamics AX 2012 Server Configuration). Record the values of the following settings on the Application Object Server tab:

    • TCP/IP port

    • Services WSDL port

    Record the values of the following settings on the Database Connection tab:

    • Server name

    • Database name

    Keep this information available, so that you can provide it to Setup when you are prompted.

  7. Manually remove the remaining AOS instance by using Control Panel > Programs and Features.

    TipTip

    If you do not manually remove the old AOS instance before you install the new AX 2012 R3 AOS instance, you might encounter multiple errors in subsequent steps. You can return the system to a stable condition in two ways.

    Edit the Windows registry

    If you have to preserve your AOS configuration settings, you can modify the registry. At each of the following registry locations, create a new key that has the name “split_modeldb” and a value of “1”:

    • HKEY_CURRENT_USER\Software\Microsoft\Dynamics\6.0\Configuration

    • HKEY_LOCAL_MACHINE\Software\Microsoft\Dynamics\6.0\Configuration

    • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dynamic Server\6.0\

    • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Dynamic Server\6.0\

    • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\Dynamic Server\6.0\

    • HKEY_USERS\[your SID]\Software\Microsoft\Dynamics\6.0\

    Uninstall/reinstall AOS

    If you are willing to lose your current AOS configuration, you can restore the system relatively easily by following these steps.

    1. Uninstall the AX 2012 R3 AOS instance by using Control Panel > Programs and Features.

    2. Use Setup.exe to reinstall the AX 2012 R3 AOS instance and configure it to use the upgraded database.

  8. Run Setup, and confirm that an upgrade is being performed. On the Add or modify components page, select Application Object Server (AOS). When you are prompted, provide the AOS and database configuration values that you recorded earlier.

  9. After the installation is completed, make sure that the AOS instance starts successfully. If the restart takes more than 10 minutes, cancel it and try again.

  10. Run Setup a third time on the computer that hosts the AOS instance, and also on any other computers if you are using a multi-computer configuration. On the Add or modify components page, select and install the following components:

    • Client

    • Debugger

    • Management utilities

After you have successfully split the database, installed the models, and installed the other core components, exit Setup, and then follow these steps.

  1. Stop the AOS instance.

  2. If you are installing cumulative update 6 for Microsoft Dynamics AX 2012 R2 during upgrade: Follow the procedure in SQL patch script for AX 2012 R2 + CU6 upgrade scenarios.

  3. Start the AOS instance.

  4. Perform a full kernel compilation:

    • If you are upgrading to AX 2012 R3: Use the following command:

      axbuild xppcompileall

      NoteNote

      Whenever you compile the whole AOT during an upgrade to AX 2012 R3, use axbuild.

    • If you are upgrading to AX 2012 R2: Use the following command:

      Ax32.exe -startupcmd=kernelcompileall

      NoteNote

      This compilation can take five hours or more. The minimum RAM that is required for this operation is 8 GB, but we recommend 16 GB or more.

    • Manually restart the AOS instance.

Back up model store for use in code upgrade

Figure 8. Export the model store that contains the upgraded Microsoft models to a file.

Create a file backup of the model store. This backup is used during code upgrade of the models in the customer layers.

To export the model store to a file by using AxUtil, use the following command:

AxUtil.exe exportstore /file:[full path of file and file name]

This operation exports the model store as a single file that has the .axmodelstore file name extension. For more information about how to export and import complete model stores, see How to: Export and Import a Model Store. Alternatively, to save time when you copy large amounts of metadata, you can export and work with individual models in subsequent steps. For more information, see How to: Export and Import a Model.

ImportantImportant

In many cases, you can also use backup and restore operations for SQL Server to work with the model store. However, Microsoft Dynamics AX Setup can accept only model store files.

Copy test system to development system

Figure 9. Create a copy of your test system for development use.

Duplicate the AX 2012 R3 test system to create the development system, which is used to upgrade customer models. In its initial state, the development system contains the standard Microsoft models for AX 2012 R3 and also any customer models that exist on the legacy system.

NoteNote

You have to run AX 2012 R3 Setup on the AOS instance to make sure that stored procedures are updated in the development environment.

Prepare for code upgrade by following these steps on the newly created development system.

  1. On the computer that hosts the AOS instance, open the server configuration utility (Start > Administrative Tools > Microsoft Dynamics AX 2012 Server Configuration).

  2. If no existing configuration can be modified, create a new configuration.

  3. If you are upgrading to AX 2012 R2, open the Database Connection tab and set the baseline database name so that it is the same as the database name. This step preserves the pre-R2 model store when Setup splits the original database into separate databases for data and metadata.

    NoteNote

    This step is unnecessary if you are upgrading to AX 2012 R3, which creates the baseline database automatically.

  4. Restart the AOS instance.

  5. Start the client, press CTRL+D to open the AOT, right-click Data Dictionary, and then click Synchronize.

If an independent software vendor (ISV) has supplied you with upgraded models that are ready for import, import these models into their layers now. Start at the lowest layer, and work up. Model import must be performed as follows to preserve legacy object IDs.

  1. List the models that are installed, and display their IDs, by using the following command:

    AxUtil.exe list

  2. Import the models, but preserve the legacy IDs, by using the following command:

    AxUtil.exe import /file:[full path of file and file name] /replace:[ID of legacy model]

For more information about how to import a model from a file, see How to: Export and Import a Model.

Remove models from higher-level layers

Figure 10. Work on one layer at a time, and remove the models above it.

NoteNote

Also delete all the higher models in the baseline model store.

Customer models belong to one of the customer layers. In ascending order, these layers include the ISV, VAR, CUS, and USR layers. Code upgrade is performed by layer. In other words, each customer layer is upgraded separately, starting at the lowest layer and working up through the higher layers. The lowest layer is the layer that is closest to the SYS layer. All models in a layer are upgraded as part of code upgrade in that layer. For more information, see Layers.

ImportantImportant

For simplicity, Figure 10 does not display patch layers (VAP, CUP, and so on). If patches are installed on your system, you have to take them into account when you plan for code upgrade. You can merge the patches either before upgrade or during the code upgrade process.

As shown in Step 1 in Figure 10, you first determine the lowest non-upgraded customized layer. Use the Microsoft Dynamics AX Configuration Utility to assign this layer as the working layer. Restart the Microsoft Dynamics AX client to make this change take effect. In Figure 10, the VAR layer has been set as the working layer and is shown in yellow. In this example, we assume that the ISV layer has already been upgraded as described in the section “Import ISV-provided models into the development system,” earlier in this topic. For more information about how to set the working layer, see How to: Set the Layer.

Next, as shown in Step 2, use AxUtil to delete the models in layers that are higher than the lowest non-upgraded customized layer. For more information about how to remove models by using AxUtil, see How to: Remove (Uninstall) a Model.

Export upgraded models

Figure 11. Upgrade code and export models.

In Figure 11, the models in the VAR layer are being upgraded. As shown in Step 1, you must complete the tasks on the Code upgrade checklist for in-place upgrade. All tasks on the checklist must be completed for each layer that contains models that require upgrade.

NoteNote

If you plan to compare your pre-upgrade code to your new AX 2012 R3 code, you must configure a baseline database before you start the checklist. When a baseline database is configured, you can compare differences in code versions between the old and new Microsoft code, and between your old and new customizations. If a baseline database is not configured, you can only compare your old customizations (which were designed against the AX 2012, AX 2012 R2, or Feature Pack codebase) to the default AX 2012 R3 code.

Follow these steps to configure the baseline database.

  1. Close the Microsoft Dynamics AX client.

  2. Open the AX 2012 Server Configuration utility (Start > Administrative Tools > Microsoft Dynamics AX 2012 Server Configuration).

  3. If no existing configuration can be modified, create a new configuration.

  4. On the Database Connection tab, set the Baseline database name value so that it is the same as the Database name value.

  5. Restart the AOS instance.

  6. Reopen the Microsoft Dynamics AX client, and continue with the upgrade.

At any time while you complete the checklist, if you find that you do not have the basis that is required for code comparison, you can stop the client and configure the baseline database by using this procedure.

After the checklist tasks have been completed, export the upgraded models as shown in Step 2 of the previous diagram. These models are re-imported during a later procedure. For information about how to export a model to a file, see How to: Export and Import a Model.

The Code upgrade checklist for in-place upgrade contains the following tasks.

Task

Notes

Code upgrade white papers

For information, see the downloadable code upgrade white papers. Additionally, see Inside Microsoft Dynamics AX 2009, Chapter 18: “Code upgrade,” pp. 623–644.

Remove higher model layers

See the section “Assign the working layer on the development system and delete all higher models” in this topic.

Restart Application Object Server

For information, see Restart Application Object Server.

Compile application

For information, see Compile application.

Compile into .NET Framework CIL

For information, see Compile into .NET Framework CIL.

Provide license information

For information, see Provide license information.

Synchronize database

For information, see Synchronize the database.

Set up Application Integration Framework

Services and Microsoft Dynamics AX Application Integration Framework (AIF) require that you register new adapters, services, and basic ports any time that you change the AOT. Click this checklist task before you configure integration ports for the first time after upgrade.

This task initializes all services that are available in AX 2012 R3 and deploys service groups that are automatically deployed. Service groups that are not automatically deployed and enhanced ports can be deployed after this task has run.

Registration of new adapters, services, and ports can take several minutes.

Automatically merge enums

For information, see Automatically merge enums.

Update SSRS project references

Automatically update references for Microsoft SQL Server Reporting Services projects, so that the references compile correctly against the upgraded application. For more information, see Development Tasks for Reporting.

Identify SSRS Reports without a Visual Studio Model Project

Create a Visual Studio project that contains all reports that do not have a Visual Studio model project. For more information, see Development Tasks for Reporting.

Compile application

For information, see Compile application.

Detect code upgrade conflicts

For information, see Detect code upgrade conflicts.

Upgrade your metadata

For information, see Upgrade your metadata.

Restart Application Object Server

For information, see Restart Application Object Server.

Compile into .NET Framework CIL

For information, see Compile into .NET Framework CIL.

Export upgraded models

See earlier in this section, and see also Step 2 in Figure 11.

Export upgraded model store

See the section “Back up the upgraded model store” in this topic.

Restore customer models from backup

Figure 12. Import the test system model store.

After you complete the upgrade for a layer, you have to manually rebuild the model store before you can continue to the next layer. On the development system, import the backup of the model store that you made in the section “Back up the test system model store.” To complete this task by using AxUtil, use the following command:

AxUtil.exe importstore /file:[full path of file and file name] /idconflict:overwrite

This operation overwrites the upgraded layers, which are the ISV and VAR layers in this example, and also the other layers. Therefore, the upgraded models must be re-imported in the next step.

Caution noteCaution

The /idconflict:overwrite parameter that is used in this operation deviates from best practices and should be used only in the upgrade scenario that is described here. In other circumstances, this parameter causes the model store to be corrupted.

Import upgraded models

Figure 13. Import the upgraded model files.

Import the upgraded model or models into the appropriate customer layers. Start with models from the lowest layer, and then work up through the higher layers. In this example, upgraded customer models are being imported into the ISV and VAR layers, in that order. Model import must be performed by using the following command to preserve legacy object IDs:

AxUtil.exe import /file:[full path of file and file name] /replace:[ID of legacy model]

For more information about how to import a model from a file, see How to: Export and Import a Model.

Repeat the upgrade process through all layers

Figure 14. Repeat the procedure for all layers that require upgrade.

For each remaining layer that contains customized models, repeat the upgrade procedure, moving from the lowest remaining layer to the highest layer. As shown in Figure 14, cycle through the following steps until the models in all layers have been upgraded:

Step 1: Assign the working layer.

Step 2: Delete models in higher layers.

Step 3: Perform the tasks on the code upgrade checklist.

Step 4: Export the upgraded models.

Step 5: Restore the backup of the model store.

Step 6: Import the upgraded models into their respective layers.

During the time that has elapsed since you copied the production system to create the test system, updates and hotfixes might have been applied to the production system. Before you complete the development steps, you must export any changed models on the production system and merge the changes into the upgraded model store. This requires that you run an additional code upgrade cycle for each affected layer.

ImportantImportant

The production system should remain in a complete code freeze from this point until the upgrade is completed.

Back up the upgraded model store

Figure 15. Export the upgraded model store so that it can be used on the test and production systems.

Export the fully upgraded model store that you have created on the development system to a file. This file acts as the source of the upgraded customer models that are used to prepare for data upgrade first on the test system and later on the production system.

Before you export the model store, run the following AxUtil command:

AxUtil.exe set /installmode

Caution noteCaution

If the /installmode flag is not set before export, you will not be able to start your AX 2012 R3 AOS when you try the data upgrade.

The model store can now be exported by using the following command:

AxUtil.exe exportstore /file:[full path of file and file name]

This operation exports the model store as a single file that has the .axmodelstore file name extension. For more information about how to export and import complete model stores, see How to: Export and Import a Model Store.

Import upgraded model store into test system

Figure 16. Prepare the test system for data upgrade by importing the upgraded model store.

On the test system, import the model store file that you created in the section “Export the upgraded model store.” To complete this task by using AxUtil, use the following command:

AxUtil.exe importstore /file:[full path of file and file name] /idconflict:overwrite

For more information about how to export or import a complete model store, see How to: Export and Import a Model Store.

The test system now contains the standard AX 2012 R3 models, the upgraded customer models, and a snapshot of the business data.

Caution noteCaution

Do not synchronize the database at this point, even if you are prompted to do this.

TipTip

We recommend that you create a backup of both Microsoft Dynamics AX databases at this point. If you experience an error during the data upgrade procedure, you must revert to this earlier state, resolve the underlying issue, and try the data upgrade again.

Run data upgrade checklist on test system

Figure 17. Complete the tasks on the data upgrade checklist.

ImportantImportant

Before you start the data upgrade, set the SQL Server logging model to Simple. Additionally, confirm that the AOS instance is set up as a batch server, and that it can process the DataUpgrade batch group.

You can now perform the data upgrade by following these steps.

  1. Open the Data upgrade checklist for in-place upgrade by clicking System administration > Setup > Checklists > Data upgrade checklist for in-place upgrade.

  2. Complete the tasks on the checklist. This iteration of data upgrade acts as a test and also provides a platform for user acceptance testing (UAT) before the production system is upgraded.

The Data upgrade checklist for in-place upgrade contains the following tasks.

Task

Notes

Import upgraded model store

See the section “Restore the upgraded model store to the test system,” earlier in this topic.

Restart Application Object Server

For information, see Restart Application Object Server.

Compile into .NET Framework CIL

For information, see Compile into .NET Framework CIL.

Provide license information

For information, see Provide license information.

Disable SQL Server change tracking

Turn off change tracking in SQL Server. Database synchronization cannot be completed without errors unless change tracking is disabled.

NoteNote

If the customer requires that change tracking be enabled, you can manually re-enable SQL Server change tracking after data upgrade is completed.

Detect update scripts

After you click this task, you cannot modify your upgrade scripts. If you encounter an error that is caused by an issue in a script or in your data, you must follow these steps.

  1. Revert to the state that is described in the previous section, “Restore the upgraded model store to the test system.”

  2. Resolve the issue that is causing the error.

  3. Try to upgrade your data again.

Presynchronize

For information, see Presynchronize (upgrade).

Synchronize database

This initial database synchronization can take up to six times as long as a typical synchronization. For more information, see Synchronize the database.

Launch data upgrade

For information, see Launch data upgrade.

Upgrade additional features

For information, see Upgrade additional features.

Restructure database schema for inherited tables

This task flattens the legacy table hierarchy to improve performance. Follow the steps in the Infolog window that the task opens. For more information, see the Upgrade best practices white paper.

Restart Application Object Server

For information, see Restart Application Object Server.

Synchronize database

For information, see Synchronize the database.

ImportantImportant

Because of a known issue, this checklist task might already appear to be checked as completed. Regardless of its apparent status, the task must be run at this point.

Set up Application Integration Framework

Services and AIF require that you register new adapters, services, and basic ports any time that you change the AOT. Click this checklist task before you configure integration ports for the first time after upgrade

This task initializes all services that are available in AX 2012 R3 and deploys service groups that are automatically deployed. Service groups that are not automatically deployed and enhanced ports can be deployed after this task has run.

Registration of new adapters, services, and ports can take several minutes.

Redeploy reports and Web Parts

Figure 18. Redeploy the customized Web Parts and reports that you imported into the AOT in the section “Import customized Web Parts and reports into the AOT.”

Redeploy a Reporting Services report

Follow these steps to redeploy a report after upgrade.

  1. In the AOT, expand the SSRS Reports node, and then expand the Reports node.

  2. Right-click the <Report name> node for the layer that contains the customization, such as <Report name>(usr). Then click Deploy.

  3. Review any messages that were logged during the deployment process, and then close the Infolog window.

For more information, see Walkthrough: Customizing existing Microsoft Dynamics AX Reports.

Redeploy an Enterprise Portal Web Part

This procedure assumes that you have completed the upgrade of the Enterprise Portal server. Follow these steps to redeploy a Web Part after upgrade.

  1. Open a Command Prompt window, and navigate to C:\Program Files\Microsoft Dynamics AX\60\Setup.

  2. Run the Enterprise Portal update utility by entering the following command:

    AxUpdatePortal -updateall -iisreset -verbose > "C:\EPUpdate.log"

Important Important

Before you start the upgrade on your production system, make a final backup of the database.

Tip Tip

This procedure does not support rollback of an upgrade in the production environment. If you want to be able to roll back an upgrade, we strongly recommend that you install a new production environment, except the database, on different equipment. You can then restore the backup of the model store that you created in the development environment to the production environment, and then continue with the data upgrade.

Enter single-user mode on production system

Figure 19. Take the production system out of service to prepare for upgrade. (Only a single-database installation is shown. The procedure is the same if you are upgrading from AX 2012 R2.)

On the production system, enter single-user mode. All client users except the administrator are disconnected from the Microsoft Dynamics AX system. This action starts the downtime window during which new business transactions cannot be processed. For more information, see Enter into single-user mode.

Upgrade on the production system requires that you run AX 2012 R3 Setup on each computer in your deployment. Components of the deployment must be upgraded in the order that is shown in the following procedures.

Follow these steps to prepare the production system.

  • Use Control Panel > Programs and Features to uninstall all Microsoft Dynamics AX components except the AOS instance that you are upgrading.

  • Make sure that you run Setup as a user who has full permissions to the database.

  • Make sure that you have at least 60 GB of free disk space for the installation of temporary files.

Follow these database upgrade steps as required for your version of AX 2012. It is very important that you follow the detailed steps that are presented here, because this installation differs in important ways from other installation scenarios.

Upgrade a single database

The following diagram shows the operations that AX 2012 R3 Setup performs when it upgrades a single-database system.

Equivalent database architectures

Figure 20. Upgrade the database architecture. (1) Remove all Microsoft Dynamics AX components except a single AOS instance. (2) Designate the existing Microsoft Dynamics AX database as the business data database. (3) Create a new database to contain the model store. (4) Import the backup file that contains the upgraded model store into the new database.

Follow these steps to split and upgrade the single-database system.

  1. Run AX 2012 R3 Setup on your database server.

  2. On the Add or modify components page, select Databases only.

  3. On the Select databases page, select Configure existing databases.

  4. On the Connect to the databases page, in the Database name field, select your existing Microsoft Dynamics AX database.

    Caution noteCaution

    The Baseline database name field should be ignored during this procedure.

  5. On the Select additional models page, select the Foundation Upgrade model and any other models that you require for your deployment. If you are using country/region-specific features, also select the Foundation Labels model.

    Caution noteCaution

    If your system has an upgrade model that is left over from a previous upgrade, you must remove that upgrade model. Run the following console command from your server\bin folder:

    AxUtil delete /model:[model id]

  6. On the Select file location page, select Import an upgraded model store file, and then enter or browse to the location of the model store backup that you made in the section “Export the upgraded model store.”

  7. Confirm your selections, and install the model store.

    Caution noteCaution

    As shown in Figure 20, the legacy model store tables persist alongside the business data but are not used. These tables should not be deleted, because they act as an archive of your pre-upgrade code customizations.

Upgrade split databases

The following diagram shows the operations that AX 2012 R3 Setup performs when it upgrades a system that has two databases.

Run Setup on a split database installation

Figure 21. Upgrade the databases. (1) Remove all Microsoft Dynamics AX components except a single AOS instance, and designate the business database and model store. (2) Delete the existing models. (3) Import the backup file that contains the upgraded models into the model store.

Follow these steps to split and upgrade the single-database system.

  1. Run AX 2012 R3 Setup on your database server.

  2. On the Add or modify components page, select Databases only.

  3. On the Select databases page, select Configure existing databases.

  4. On the Connect to the databases page, designate your existing Microsoft Dynamics AX databases.

  5. On the Select additional models page, select the Foundation Upgrade model and any other models that you require for your deployment. If you are using country/region-specific features, also select the Foundation Labels model.

    Caution noteCaution

    If your system has an upgrade model that is left over from a previous upgrade, you must remove that upgrade model. Run the following console command from your server\bin folder:

    AxUtil delete /model:[model id]

  6. On the Select file location page, select Import an upgraded model store file, and then enter or browse to the location of the model store backup that you made in the section “Back up the upgraded model store.”

  7. Confirm your selections, and install the model store.

Upgrade AOS and other core components

Install new components on production system

Figure 22. Run Setup on the production system to upgrade the core server and client components.

As shown in Figure 22, you now have to run Setup on the computer that hosts the AOS instance to install (that is, upgrade) the following components:

  • AOS

  • Client

  • Debugger

  • Management utilities

Caution noteCaution

As when you created the test system, make sure that you remove the legacy AOS instance before you install the AX 2012 R3 AOS instance.

Follow these steps to upgrade the core components.

  1. To prepare for AOS upgrade, open the Microsoft Dynamics AX 2012 Server Configuration Utility (Start > Administrative Tools > Microsoft Dynamics AX 2012 Server Configuration). Record the values of the following settings on the Application Object Server tab:

    • TCP/IP port

    • Services WSDL port

    Record the values of the following settings on the Database Connection tab:

    • Server name

    • Database name

    Keep this information available so that you can provide it to Setup when you are prompted.

  2. Manually remove the remaining AOS instance by using Control Panel > Programs and Features.

    TipTip

    If you do not manually remove the old AOS instance before you install the new AX 2012 R3 AOS instance, you might encounter multiple errors in subsequent steps. You can return the system to a stable condition in two ways.

    Edit the Windows registry

    If you have to preserve your AOS configuration settings, you can modify the registry. At each of the following registry locations, create a new key that has the name “split_modeldb” and a value of “1”:

    • HKEY_CURRENT_USER\Software\Microsoft\Dynamics\6.0\Configuration

    • HKEY_LOCAL_MACHINE\Software\Microsoft\Dynamics\6.0\Configuration

    • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dynamic Server\6.0\

    • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Dynamic Server\6.0\

    • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\Dynamic Server\6.0\

    • HKEY_USERS\[your SID]\Software\Microsoft\Dynamics\6.0\

    Uninstall/reinstall AOS

    If you are willing to lose your current AOS configuration, you can restore the system relatively easily by following these steps.

    1. Uninstall the AX 2012 R3 AOS instance by using Control Panel > Programs and Features.

    2. Use Setup.exe to reinstall the AX 2012 R3 AOS instance and configure it to use the upgraded database.

  3. Run Setup, and confirm that an upgrade is being performed. On the Add or modify components page, select Application Object Server (AOS). When you are prompted, provide the AOS and database configuration values that you recorded earlier.

  4. When installation is completed, use the AX 2012 Server Configuration utility to point the AOS instance at the upgraded model store and the business database, which is not yet upgraded.

  5. Use the AX 2012 Configuration utility to point the client at the new AOS instance.

  6. Run Setup again, and install the client, debugger, and management utilities on the AOS computer.

  7. Run Setup on the computer that hosts the Help server. Select Help Server for installation, and also select any non-default languages that you want to install. When installation is completed, provide the AOS instance with the address of the Help server. For more information, see Deployment of the Help server.

Run data upgrade checklist on production system

Figure 23. Complete the tasks on the data upgrade checklist.

When you start the client after you change the model store, a The model store has been modified. dialog box should open automatically. Select Start the data upgrade checklist for in-place upgrade, and then click OK.

If the dialog box does not open automatically, open the Data upgrade checklist for in-place upgrade by clicking System administration > Setup > Checklists > Data upgrade checklist for in-place upgrade.

Complete the tasks on the checklist as described in the section “Perform data upgrade on the test system,” earlier in this topic.

Upgrade of additional server components

Figure 24. Run Setup on the additional server computers.

When data upgrade is completed, you can complete the upgrade of server components. As shown in Figure 24, run Setup on the computers that host Enterprise Portal, Reporting Services, and Microsoft SQL Server Analysis Services, and select the appropriate component for each. When installation is completed, validate these services against the upgraded Microsoft Dynamics AX data. For more information, see Deploy Enterprise Portal and Role Centers and Deployment of reporting.

Redeploy reports and Web Parts

Figure 25. Redeploy the customized reports and Web Parts that you imported into the AOT in the section “Import customized Web Parts and reports into the AOT.”

Redeploy Reporting Services reports

Follow these steps to redeploy a report after upgrade.

  1. In the AOT, expand the SSRS Reports node, and then expand the Reports node.

  2. Right-click the <Report name> node for the layer that contains the customization, such as <Report name>(usr). Then click Deploy.

  3. Review any messages that were logged during the deployment process, and then close the Infolog window.

For more information, see Walkthrough: Customizing existing Microsoft Dynamics AX Reports.

Redeploy Enterprise Portal Web Parts

This procedure assumes that you have completed the upgrade of the Enterprise Portal server. Follow these steps to redeploy a Web Part after upgrade.

  1. Open a Command Prompt window, and navigate to C:\Program Files\Microsoft Dynamics AX\60\Setup.

  2. Run the Enterprise Portal update utility by entering the following command:

    AxUpdatePortal -updateall -iisreset -verbose > "C:\EPUpdate.log"

Install additional clients

Figure 26. Run Setup on the additional client computers.

As shown in Figure 26, run Setup on your additional Microsoft Dynamics AX client systems to upgrade the client software. Select the following components for installation:

  • Client

  • Management utilities

For large deployments, you might want to perform a silent installation. For more information, see Install Microsoft Dynamics AX in silent mode.

This section describes common issues that you might encounter during an in-place upgrade.

It is normal to see partition-related Infolog errors between the time you finish running Setup and the first database synchronization. However, if you see large numbers of system-table partition errors in the setup logs after an AOS startup (which should trigger synchronization), it is possible that the core system tables were not synchronized correctly. If this occurs, contact customer support for assistance.

This error occurs when batch jobs are still running against the database that is being upgraded.

Resolution: Stop the batch jobs that are running against the database, and then start the data upgrade process again.

This error occurs when the AX 2012 R3 installer cannot find hotfixes that were applied after the original installation.

Resolution: Uninstall the component by using the Control Panel and then install the AX 2012 R3 version of the component.


Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft