Fail to save customization due to cache difference between instances or inadequate folder permission


 Product(s):APM Implementation and Performance Management
 Version(s):7
 Environment:N/A
 Area:N/A
 Subarea:N/A

Problem Description

When trying to save customizations, such making changes to a custom report or UI changes, user experiences an error where they cannot write to a file in the cache folder (Customer Data). The error message appears similar to the following:

Solution

The error indicates that the user is running with cache in the thick client that they are using and they are either not permitted to modify the contents of the cache folder or that files are missing in the cache folder. Unless you are experienced to generating cache and understand Bentley APM architecture and running with cache, we suggest to first check with Bentley APM Support via an SR or contacting your Bentley APM Consultant before changing your approach.

There are 2 possible solutions.

1. Run without cache.

Bentley typically recommend running without cache unless there is a specific reason for the user to run with cache as recommended by a Bentley APM Consultant. The process of running without cache is simple but the decision should be made globally, ie, check to see if both the thick client instance and smart client application server(s) are running with cache. To check, go into the APM install folders on each VM running APM services and thick client desktop computers individually and go to the following location,

C:\Program Files\Bentley\AssetWise Performance Management\cache\CustomerData

If there are contents in this folder the APM instance is running with cache. To run without cache, stop all services on the server and/or close any thick clients running, then Save the contents of this folder to a temporary folder in an archive (just in case). Next delete the contents of the CustomerData folder but keep the folder. Restart the service/ thick-client and test. When the APM next launches it will check the cache first and if there are no files it will run without cache.

2. Run with Cache, update cache folder permissions and regenerate cache.

If you choose to run with cache, then go to the following folder.

C:\Program Files\Bentley\AssetWise Performance Management\cache\

Right-click on the folder and select Properties. Go to the Security tab. Update the permissions for "Users" to include Modify. Make sure to cascade the permissions to all child folders.

Next, stop all services and thick-clients. On the Application server launch a thick-client with the Admin key. Go to the Enterprise level > Customization Center view > Classes tab > Custom subtab. Click on the Generate button in the lower right corner of the screen and select Cache. This may take several minutes to complete.

Restart the Application Server and test via a smart client.

Repeat this entire procedure for each unique Server and any thick-client instances on desktops or laptops.