Where are the AX source files stored?

I would like to run a periodic (every 4 hours) backup of the "only" source file of Dynamics Ax 2009, so the source file is XPO.

I would like to know where they are physically stored.

+4
source share
2 answers

Ax7

All metadata stored as XML and methods are in regular files and are stored in version control.
See this review .

Ax 2012

AX source (along with properties and compiled p-code and KCC ) is stored in the store store . In AX 2012 RTM, the model store database is the same as the database database (and this is stupid). In AX 2012 R2, the model store database resides in a separate database, commonly called xxx_Model .

AX 2009 and below

The AX source (along with properties and compiled P-code) is stored in binary files with the AOD extension on the AOS server. There is one file for each layer.

Unfortunately, the source files do not exist. XPO files are just an export / import format.

Axsys.aod, which is quite large, contains most of the standard code. Corrected items from service packs are located in the axsyp.aod file.

Most likely, your code is stored in axusr.aod or axcus.aod depending on your working layer.

File naming follows the template described here .

+7
source

You can create XPO through code, but as Yang points out, it will only apply to your current layer. This code will create an XPO containing all the definitions in the Node Classes;

 void DEV_ExportTreeNodeExample() { TreeNode treeNode; #define.ExportFile(@"c:\AOTclasses.xpo") #define.ExportMode("w") new FileIoPermission(#ExportFile, #ExportMode).assert(); treeNode = TreeNode::findNode(@"\Classes"); if (treeNode != null) { treeNode.treeNodeExport(#ExportFile); } CodeAccessPermission::revertAssert(); } 

This code appeared here

I assume that you could create a batch job to run the above code for any node that you want to back up, how long it will take or if there will be any other complications, I don't know.

+3
source

All Articles