Clearing application user caches and usage data

AX has excellent personalization features called IntelliMorph that allow the user to create reports and modify form layouts (hide, move, or add fields to the view of the form).

This information is not held in code, but in usage data. Usage data is the term used to describe the place where user-specific data is stored. This data can be of the following types:

  • Form personalization
  • IntelliMorph reports (ad hoc user-specific reports created from a form or list page)
  • The last used dialogue settings (for example, when you run a report, the options you select in the dialogue are saved and used as defaults)
  • Cues you created from list pages (user-specific cues)
  • Favorites
  • Saved queries used in reports and list pages

This greatly enhances the usability of AX, saving the users' time and allowing users to tailor their user experiences.

There are occasions where the usage data must be cleared, either for specific objects (forms, reports, and so on) or entirely for a user.

Another type of cache that AX uses is the Application User Cache (AUC) file. This is a file that is stored on the local PC that caches the objects loaded from the application object server (AOS or AX Server). This is to improve the performance, as it minimizes network traffic.

The situations that will lead you to clear the usage data or the object cache is normally due to a change in the code, directly or through import. The symptoms that will lead us to decide that it is a caching issue are as follows:

  • Symptoms are experienced by a selected number of users, and not all users
  • The change made to the code doesn't appear to be working
  • A form displays incorrectly after the update for some users, but for other users it is fine
  • If a developer attempts to debug the code and cannot reproduce the error

Of course, there are many reasons for errors to occur after an update, some of which are as follows:

  • The application wasn't recompiled after a model installation
  • The project wasn't recompiled after a project was imported from XPO (although a full compilation is sometimes required for this)
  • CIL was not regenerated
  • The database wasn't synchronized

    Note

    If labels appear as codes (for example, @SYP1099), it normally means that AOS was not restarted after a model import, but it could also mean that it is in the Application User Cache file.

Clearing usage data or a user object cache should be done in a specific priority. Removing the users' entire usage data will cause some disruption, depending on the extent to which it is used.

The sequence should be as follows:

  1. Clear the Application User Cache file
  2. Delete specific items from users' usage data
  3. Delete the entire usage data

Getting ready

You will need the local administrator rights on the user's computer or terminal server, and system administrator rights in Dynamics AX.

You should adjust your folder options to:

  • Hidden files and folders: Show hidden files, folders, or drives
  • Uncheck: Hide extensions for known file types.

How to do it...

The following are the escalating steps to remove the user's cache file that may be causing the reported issue:

  1. We can clear the Application User Cache file by performing the following steps:
    1. Log in to the user's computer (or the terminal server).
    2. Open Windows Explorer and navigate to %SystemDrive%users.

      Note

      Enter the preceding address in the address bar. This is typically C:Users.

    3. From the list of folders, open the user's folder.
    4. Open the AppData folder.

      Note

      If this folder can't be seen, you need to show hidden files or folders.

    5. Open Local and scroll down to the bottom.
    6. Delete the files with the extension .auc; for instance, ax_{24672906-3FDF-4B97-9E0D-A6B941881847}.auc
    7. Ask the user to log in to AX to check if the problem is solved.
  2. For deleting specific items from the user's usage data (the process is to locate or select those objects the user is experiencing problems with), perform the following steps:
    1. Launch the AX client as a system administrator, connected to the AOS in question.
    2. Navigate to System administration | Common | Users | Users.
    3. Select the user in question and click on Options in the Set up button group on the action bar or ribbon.

      Note

      You may be shown a message regarding usage data, click on OK.

    4. In the Options form, click on Usage data in the top ribbon at the top of the form.

      Note

      On each tab next to the General tab, there are tabs for each section of the usage data. This data is actually the total data, split by the form into sections to assist you in finding the data you are looking for.

    5. Select the relevant tab, and use the AX search and filter tools to locate the data you wish to remove. The list of tabs are given in the following table:

      Tab

      Description

      Ranges

      This tab saves filters or searches in forms or reports

      Report selections

      This tab retrieves the last values of report dialogues

      Autoreports

      This tab retrieves IntelliSense reports the user has created using the report wizard

      Jobs

      This tab does not retrieve AOT Jobs, but the last values from dialogues for tasks such as posting an invoice

      Record templates

      This tab retrieves user-specific record templates

      Form setup

      This tab retrieves the changes the user has made to forms (for example, hidden fields)

      Form selections

      This tab retrieves the last value information saved about forms

      All usage data

      This tab retrieves the unfiltered list of all usage data

    6. Delete the records (elements of the usage data) by pressing Alt + F9.
  3. For deleting specific items from the user's usage data (the process is to locate or select the objects that the user is experiencing problems with), perform the following steps:
    1. Launch the AX client as a system administrator, connected to the AOS in question.
    2. Navigate to System administration | Common | Users | Users.
    3. Select the user in question and click on Options in the Set up button group on the action bar or ribbon.
    4. In the Options form, click on Usage data in the top ribbon at the top of the form.
    5. Click on Delete from the General tab.

How it works...

As the user opens forms and performs tasks, the client will maintain a cache of the objects in use. AX has a very good method of determining when these cache files become 'dirty', but it can be tricky. In this case, AX will try to load the object from the cache, causing an error to be displayed to the user, or simply to process the cached data.

When the report or form is opened, the system checks the usage data for last values or form personalization. When this data is removed, it loads the report or form with defaults.

Tip

Removing the AUC files is a good practice after any update.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.31.67