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)

how to clear user cache data in AX?

(0) ShareShare
ReportReport
Posted on by 475

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    1. Stop AOS.

    2. Delete the .auc file from users\\Appdata\ folder

    3. Restart AOS.

    community.dynamics.com/.../cleanup-cache-auc-file.aspx

  • James McIntosh Profile Picture
    on at

    Is it really necessary to stop the AOS?  

    Is it not sufficient f the user closes their client?

  • Suggested answer
    André Boekestijn Profile Picture
    on at

    1. Close the client

    2. The ax_{GUID}.auc file is now written to the AppData folder

    3. Delete the auc file

    4. Open the client

  • Community Member Profile Picture
    on at

    Hi I have some solutions including this in www.dynamicsaxlatino.com/como-limpiar-cache-de-dynamics-ax

  • Community Member Profile Picture
    on at

    How to clean cache of AOT and take multiple AOS changes

    www.dynamicsaxlatino.com/limpiar-flush-cache-de-aos-o-aot-en-ax

  • Bart VDS Profile Picture
    227 on at

    We do it with the AOS still running and that seems to work fine.

  • Sholeh M Profile Picture
    135 on at

    Hi CARLOS,

    Thanks a lot, its helpful for me.

    Nice tricks

  • Camilo Virguez Profile Picture
    3 on at

    A Task that can be perfomed from each AOS (make sure your client is connected to each AOS)  is to use the  Tools menu, the cache submenu.  you can refrechs  elements, data and Dictionary objects.  

  • Suggested answer
    Community Member Profile Picture
    on at

    Here's a PowerShell script to automate Kent Carsten's solution.

    NB: Best to have AOSes off for this, as it will apply to all users / has no logic to check if users are logged on or not.

    #run as administrator to avoid UAC from blocking access to user profiles (Ref: stackoverflow.com/.../39722043)

    $GUID = '{*}' #NB: The GUID in the filenames comes from the database: select GLOBALGUID from SYSSQMSETTINGS.  More notes about this here: daxmusings.codecrib.com/.../fixing-code-caching-on-ax-environment.html

    #if you wanted to filter for a specific environment's cache files, the best solution is to retrieve the GUID then include it in the filter.

    #for simplicity / to avoid adding DB code, this script doesn't discriminate by GUID

    Get-ChildItem 'C:\Users\*\AppData\Local' -Directory -Force -ErrorAction SilentlyContinue | select -expand FullName | %{

       Get-ChildItem -Path $_ -Filter "ax_GUI_$GUID*.auc" -ErrorAction SilentlyContinue | Remove-Item -Force

       Get-ChildItem -Path (Join-Path $_ 'Microsoft\Dynamics Ax\') -Filter "VSAssemblies$GUID" -Directory -ErrorAction SilentlyContinue | Remove-Item -Force

    }

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