Configure Layer in Dynamics Axapta
A lot of times small mistakes are made with installing layers. The most common example is that code has been adapted in the USR layer of the live/production environment (import of an Xpo). With the next delivery this changed code of the Xpo also exists in the VAR layer. When we don’t remove the Xpo from the USR layer, tables and fields can exist twice in the data dictionary of Dynamics AX. As you know a field in a table has to be unique. When this is not the case Dynamics AX while provide synchronize errors. When the table is a system table of Dynamics AX, The AOS will even not start.
- Copy the delivered Xpo or layer and label files to your delivery archive directory. (Note use the delivery date in the folder name)
- Create in the archive directory a directory backup.
- Stop all batch servers. (task for 2009)
- Stop all AOS.
- Remove all cache files (del/s *.aoc).
- Create a database backup and copy this to the archive backup directory.(point 2)
- Copy the axVar.aod, axCus.aod and axUsr.aod from your test environment to the archive backup directory and to the “old” directory in your application tree. (So you can do layer compare afterwards).
- Copy the label files into your application tree.
- Copy the new delivery Layer in the application tree of Dynamics AX
- Start an AOS with a different name and/or Port number. This new AOS should only be used for administration purpose.
- Administrator/Periodic/SQL Administrator use check/synchronize to update the data model. Run it a second time in diagnostic mode only, to be sure it was ok.
- Administrator/Periodic/Compile application. (Compiling from the AOT will not work when no developers license is used)
- Stop the administration AOS.
- Start live/production AOS.
- Start all Axapta batch servers.
Comments
Post a Comment