Thursday, November 06, 2014

How to Flush the AOS cache without restarting AOS service

Scenario: Some times, Your customization does not reflect in to AX objects. we needed to flush the cache to make sure that customization will take place, but we could not stop and start the AOS. 
The only way I have ever known to flush the AOS is to stop and start it. Well i got to know a nice little trick recently. You may or may not be aware of three menu action items that can be used to flush system data, the AOD, and dictionary. The thing about these though is that they are set to run at "called from" which when ran clear the client cache. 
SolutionWell the trick is to copy these three menu items, and then change the run from property to server. Now you can launch these menu items, and they will run on the server, therefore clearing the AOD, sys data, and dictionary, causing a refresh. 
So the three menu items that you copy (don't change the real deals) are:
[Under Menu items > Action]

1. SysFlushAOD
2. SysFlushData
3. SysFlushDictionary

Happy DAXing....... :)

2 comments:

  1. Very well done. Absolutely brilliant information. I'm in love with this blog. they always provide such a great information. Dynamics AX Business Analyst



    ReplyDelete
  2. Excelente truco! muchas gracias

    ReplyDelete

Enable UAT database over OneBox DevTest environment using JIT

 Dear Friends, In this Article I will show you how to enable UAT database access for Development machine using just-in-time (JIT). Many time...