Static void UpdateCrossRefBatch(Args _args)
{
xRefUpdate::truncateXrefTables();
xRefUpdateIL::updateAllXref(true, false, true);
Info ("Done, a cross-reference update batch job created.");
}
First line will drop all data from cross references table and second will kick off the batch job to rebuild it. If you don't familiar with cross-references you need to read this article msdn.microsoft.com/.../aa626961.aspx
Running the xRef update from the menu to execute within the AX client is taking a very long time, 10-12 hours easily. If you kick it off in a batch job by running an X++ job, it could finish in 2-3 hours server-side instead. That is the purpose of the above code, rebuilding cross-references faster.
No comments:
Post a Comment