Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to locate a code based on a label in AX 7

(0) ShareShare
ReportReport
Posted on by 4,125

Hi,

In AX 2012, when trouble shoot the error, we can find out the label for the error message from Tools -> Label Editor. Once we got the label ID, then we can search the AOT to locate the code where throw the error/warning. How can we do the same in AX 7?

Thanks,

*This post is locked for comments

  • Verified answer
    Basheer17 Profile Picture
    Basheer17 2,720 on at
    RE: How to locate a code based on a label in AX 7

    Notepad++ gives fast metadata search results compared to the actual metadata search that we have in visualstudio. Refer axility.net/.../metadata-search-like-a-pirate for more info.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: How to locate a code based on a label in AX 7

    Hi Yuji,

    At the bottom of the Application Explorer you will notice two tab pages: "Metadata search" and "Application Explorer".

    Select "Metadata search" and enter the next statement for search within code:

    code:"some code"

    Without the keyword "code:" it will search element names and individual properties.

  • Yuji Profile Picture
    Yuji 4,125 on at
    RE: How to locate a code based on a label in AX 7

    But if I want to still search in AOT, how can I do that in AX7?

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: How to locate a code based on a label in AX 7

    Hi Yuji,

    You can start searching labels by navigating in Visual Studio: Dynamics 365 > Find labels... (or Ctrl+R, Ctrl+L). When you found a label, right click the label or use Shift+F12 to find the references where this label is used.

    As part of a build, by default the cross-references are updated in Dynamics 365, so searching within the AOT is not required anymore.

  • Verified answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: How to locate a code based on a label in AX 7

    We still have Label search and Cross-references in AX, have you checked that?

    community.dynamics.com/.../209923

    You can create cross-references as part of the Build:

    ax.help.dynamics.com/.../build-operations

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,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans