Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Update cross reference in batch in Dynamics AX 2012

(0) ShareShare
ReportReport
Posted on by 40

This post is based on Dynamics AX 2012 R3.

static void UpdateCrossRefBatch(Args _args)

{

;

xRefUpdate::truncateXrefTables();

xRefUpdateIL::updateAllXref(true, false, true);

info("Done, cross reference update batch job created.");

}

Can someone please explain me this code, thanks.

*This post is locked for comments

  • Kothamasu pavan Profile Picture
    Kothamasu pavan 40 on at
    RE: Update cross reference in batch in Dynamics AX 2012

    Hi,

    ievgen Miroshnikov and Vilmos Kintera

    Thanks for detail explanation.

  • Verified answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Update cross reference in batch in Dynamics AX 2012

    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.

    Please mark helpful answers as Verified next to each post with the checkbox.

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Update cross reference in batch in Dynamics AX 2012

    Hi Kothamasu pavan ,

    First line will drop all data from cross references table and second will kick off batch job to rebuild it. If you don't familiar with cross references you need to read this article msdn.microsoft.com/.../aa626961.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans