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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / DAX Beginners / [AX7] AOT TreeNode returns ...

[AX7] AOT TreeNode returns NullPointerException

Christian Silva Profile Picture Christian Silva 707

Hello Everyone!

When I was upgrading my Dynamics from AX2012 to AX7 I had a customization which displays AOT elements on a Tree object and they weren’t working anymore.

f2dcb3a0-dd59-470d-b3eb-14e7c358226a

Investigating this issue I found out that Microsoft uses the class MacroBuild to create nodes from Macros which uses method findNode() from TreeNode class using macros from #AOT macro as parameter. Some macros are outdated and returns null.

My solution was to customize AOT macro and replace the code #define.MacrosPath(‘\\Macros’) to #define.MacrosPath(‘\\Code\\Macros’).


This was originally posted here.

Comments

*This post is locked for comments