Whenever someone experiences a bizarre, inexplicable error, you will see a standard list of steps to try and solve the problem. These standard steps usually range from deleting the user setup on a form, to restarting the AOS.
If the unsolvable issue is limited to one user, a typical task to try is to delete the Application User Cache (AUC) files in the user’s AppData folder.
The AppData folder is hidden inside the user’s folder, and can be in different locations on different servers. I can get a little lost looking for the AppData folder… Luckily I have made a mind-blowing discovery this week: Windows have a thing called path variables or system variables. Some programmers use them to do amazing things, but the simplest way to use them is to type them in windows explorer.
For example, on any windows server, open explorer and type: %Appdata%
You will see the Application Data folder.
Back to AX, to the delete the AUC files:
- Close the user’s client.
- Open explorer, type %Appdata%.
- Delete the all files ending with .auc.
- Open the client.
- Celebrate your victory over the mysterious error! (or move on the the next desperate step on the list)
- If you frequently have to clear out the Appdata folder, get a batch script like this one.
- Try the same thing for other system folders like %temp% or %programdata%.
- Learn more about system variables here. Find out how you can set up your own and use them in scripts.
Hope this nifty trick saves you time and impresses your friends!