Applies to Product -Dynamics 365 Commerce
What’s happening?
Users are experiencing an application error on POS registers, specifically an "UnauthorizedAccessException" with the message "Access is denied."
Reason:
This appears to be caused by the deletion of the Data folder, likely due to an antivirus solution interfering with the application.
Resolution:
- Verify the location of the Data folder for the application.
- Path:
- POS installed without --usecommonapplicationdata parameter c:\Users\User account running Store Commerce App\AppData\Local\Microsoft Dynamics 365\10.0\Data\Store Commerce\Pos\EBWebView\Default\Local Storage\leveldb
- POS installed with --usecommonapplicationdata parameter c:\Program Data\Microsoft Dynamics 365\10.0\Data\Store Commerce\Pos\EBWebView\Default\Local Storage\leveldb - Check if the Data folder exists. If it is missing, it may have been deleted by an antivirus program. Run the POS Installation commands again to recreate it.
- Apply a basic audit policy on the folder to identify which process is deleting the folder. This will help in preventing future occurrences of the issue. For guidance on applying an audit policy, refer to the Microsoft documentation on how to apply a basic audit policy on a file or folder
