AX 7. Clear Extension Framework cache from UI.

Extension Framework uses attribute to instantiate descendants and you need to flush cache after creating or removing an attribute. There is a blog post how to do this from code, but we have a way to do the same from UI (and it’s quite important because you cannot go and create a job in new AX anymore to flush your cache after deployment).

Go to Transportation management->Setup->Load building->Load building strategies form and click on Generate class list button. Under the hood AX will call SysFlushAOD::main() to clear all caches.


This button will clear various of different caches, not only  Extension Framework one, so could be used in different scenarios! Kudos to my fellow colleague Alexey Borisov for pointing this out!

5 thoughts on “AX 7. Clear Extension Framework cache from UI.

  1. Dmitrii March 29, 2018 / 7:11 am

    Thanks. Really useful information. It really makes me go crazy when I have 3 working decorated subclasses and one that cannot be instantiated despite ALL my efforts.)) Unfortunately described button doesn’t work – system gives warning “Load building strategy class TMSLoadBuildUTestStrategy does not exist in the system” for some reason. But I called the SysFlushAOD::main() method from another place and it worked out! Thanks!))

      • Dmitrii April 2, 2018 / 7:04 am

        Awesome!) I checked it out and this URL is working, and it’s much more easier for use. Thank you!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s