web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Cross-Reference tool

(0) ShareShare
ReportReport
Posted on by

Hello guys,

A quick question. When I want to see 'Using' and 'Used by' for a specific object how can I be sure that the data I see is current. Do I have to 'Update' every time or not?

I have tried this as a test: create new Role1 >> create new Privilege1 >> add Privilege1 to Role1. And then 'Using' to Role1 shows Privilege1. Does that mean that cross-reference is automatically updated?

Any help or suggestion would be appreciated.

Best regards!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,030 Super User 2025 Season 2 on at

    Hi add,

    There is a parameter in the Compiler setup to enable automatic cross reference update. This is per user. So you cannot rely on this fully.

    You can actually (re)build the cross reference from the global tools menu > Cross reference > Periodic > Update.

    More information can be found on this page: msdn.microsoft.com/.../aa626961.aspx

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You may schedule a batch job by running the following job, that will update xRef.

    On a fast disk/SQL system it takes 2 hours, but can go considerably longer on worse hardware.

    It is not recommended to run this in Production, due to the data bloating your DB!

    static void WIK_updateXrefs(Args _args)
    {
        xRefUpdate::truncateXrefTables();
        xRefUpdateIL::updateAllXref(true, false, true);
    }


  • add Profile Picture
    on at

    Hello guys, thanks for the help. I tried the global Update but it was 15 hours in and counting when I stopped it. So I leave the update for now. But I was wandering why can I use cross-reference now if I haven't set it up before? I don't have the automatic cross reference update on and I did not finish the global Update, still when I create new objects they seem to show the correct dependancies. Old objects also show cross-reference information and it seems correct. So can I work with this information or not?

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    It is possible that someone has changed the SysCompile* classes to automatically generate xref from code if you use the Editor, however that is highly unlikely that it caters for MorphX objects (tables, fields). Could it be that there is already a recurring batch that does xref update? If no, then I would say your only option is to build it yourself with the methods explained above.

  • add Profile Picture
    on at

    Hello,

    A quick follow-up. I ran the batch job and it finished for about 10-12 hours. We are all good now and can continue our work. Thanks again for the help!

    Best regards!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans