Access Denied error when creating a Bank File
Environment is Windows Server 2019, latest version of MYOB installed, MYOB data file is online.
After selecting transactions and clicking Bank File, user receives a message saying "something has gone wrong".
In the diagnostics (which is written to C:\Users\username\AppData\Local\MYOB\AccountRight\Current\Diagnostics) the following appears:
2023-11-21 10:36:14.5754,MYOB.Huxley.Application.FatalExceptionHandler,Fatal,1,Fatal Exception
1 : System.UnauthorizedAccessException
----------------------------------------
System.UnauthorizedAccessException: Access to the path 'MYOB\AccountRight\Current' is denied.
at mscorlib!0x0600168a!System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +0xaf
at mscorlib!0x06001704!System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) +0x0
at mscorlib!0x060016fe!System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) +0x9
at mscorlib!0x060016fc!System.IO.Directory.CreateDirectory(String path) +0xe
at Huxley.Context!0x06000012!MYOB.Huxley.Context.Application.GetCurrentUserDocumentsPath(Boolean create) +0x0
at Huxley.UI.Model!0x06002cc4!MYOB.Huxley.UI.Model.Facades.Common.UIApplication.GetCurrentUserDocumentsPath(Boolean create) +0x0
at Huxley.UI.Model!0x06002b64!MYOB.Huxley.UI.Model.Facades.Common.UIContext.GetCurrentUserDocumentsPath(Boolean create) +0x0
at Huxley.UI.Forms!0x06003609!MYOB.Huxley.UI.Forms.Banking.PrepareElectronicPayments.GetAndSetBankFileName(UIAccount account) +0x0
at Huxley.UI.Forms!0x06003603!MYOB.Huxley.UI.Forms.Banking.PrepareElectronicPayments.HandleBankFileClick() +0x231
at Huxley.UI.Forms!0x06003602!MYOB.Huxley.UI.Forms.Banking.PrepareElectronicPayments.tbbBankFile_Click(Object sender, EventArgs e) +0x2b
The user has full read and write access to the C:\Users\username\AppData\Local\MYOB\AccountRight\Current folder.
I renamed the MYOB folder and restarted MYOB. The MYOB folder was automatically recreated, with all required subfolders (clearly the user has read/write access to this path).
Same error occurs.
Running MYOB using an Administrator account enables the Bank File to be created normally.