Skip to main content
Skip table of contents

Error: "Environment Error 10401 Cannot open Ledger"

This support note applies to:

  • AE Accounts (AU)
Article ID: 30292

In MYOB Accountants Enterprise Accounts (AE Accounts) you may experience the error "Environment Error 10401 Cannot open Ledger" when trying to open an Accounts ledger in Contacts.

This error can occur when the ledger has been manually deleted from the database and prevents the deletion of a client's ledger in Contacts.

To restore a backup in Client File Maintenance
  1. Open Contacts and from Tools menu, select Client File Maintenance. The Client File Maintenance window appears.
  2. Type ACT in the FILE GROUP field then press Enter. The list of backup files is displayed.
  3. At the selection window, type the backup name eg Back-1 then press Enter. The backup will be listed for restoration.
  4. Type R then press Enter. A message "Home in use are you sure?" appears.
  5. Type Y then press Enter. The backup is restored.
  6. At the SELECTION field, type V then press Enter. The ledger is verified and will clear any bad file warning messages.
To verify the location and name of an ACT ledger
  1. Open Contacts and from Tools menu, select Client File Maintenance. The Client File Maintenance window appears.
  2. Type ACT in the FILE GROUP field then press Enter. The SELECTION field is activated at the bottom of the window.
  3. Type V in the SELECTION field to verify the ledger then press Enter. A message "File in use, are you sure?" appears.
  4. Type Y then press Enter. A message "Cant open on S:\Data\MYOB\VO\xxxxxx.act;" appears, where: S:\ represents the drive mapping: Data\MYOB\VO represents the data location; and xxxxxx.act represents the accounts ledger number.
  5. Note the location and number of the ACT file in step 4. The details of the ACT file are noted.
To create a duplicate ledger
  1. At the Windows Desktop, click Start and select Run. The Run window appears.
  2. Type s:\Data\MYOB\V0 in the Open field, and click OK, where: S:\Data\MYOB represents the location data directory; and V0 represents the location the data files. A list of ACT files are displayed within this directory.
  3. Right-click any file with an .act extension and, from the File menu, select Copy. The ACT file is copied.
  4. Right-click on any white space and then from the File menu, select Paste. The file copy of xxxxxx.act is now listed at the bottom of the data directory where: Copy of xxxxxx.act represents the name of the duplicate file copied.
  5. Highlight the Copy of xxxxxx.act file and then from the File menu, select Rename. The file name is now editable.
  6. Rename the file to the same number as noted in step 5 of the 'How to verify the location and name of an ACT ledger' section. The file is now renamed matching the same number of the file in step 5.

    You will now be able to delete the ledger in client file maintenance and create a new accounting matter. For more details refer to Deleting an Accounts ledger
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.