This support note applies to:
- Profiles (AU)
- AE Tax Series 6 & 8 (AU)
These instructions require technical expertise
Make sure you know what you're doing and are using one of the products listed. If you're not sure, ask your IT professional or MYOB.
During the database upgrade of MYOB Accountants Enterprise you may experience the error 'Locked Databases. The following databases are locked and cannot be upgraded'. You will need to remove the database lock before the database can be upgraded.
There are a number of checks that can be performed to ensure no application is locking the database. Perform tasks 1 and 2 below then click Retry in the Locked Databases screen.
If the error appears again perform task 3 and retry, then if required complete task 4.
Application finder can be run from the Utility dropdown in DataSafe's MYOB Database Utilities screen.
When run from the application server, it will list MYOB AE applications open, with the machine and user who has the application/s open. The only application that should appear is backup.exe.
Refer to article Running Application Finder for more details.
- At the Windows desktop, follow the menu path:
Start > All Programs > MYOB Accountants Enterprise > DataSafe
The DataSafe Utilities window appears.
- Click Support Tools. The Support Tools window appears.
- Click Clean Now. All business files are selected. The screen will flash to show the clean function performing.
- Click Close. The Support Tools window closes.
- Click Close. The DataSafe Utilities window closes.
- Click Retry in the Locked Databases screen.
- If the message 'Locked Database' reappears, continue to task 3 below.
The Check Now utility performs a compact and repair of your database files. If the database is in use, the error message "Check could not be run as the database is in use" will appear or the check may hang on a file.
Run Check Now from the server that is running MYOB Admin Centre, as the Check Now utility will stop the services in the MYOB Administration Centre, then automatically restart the services once the utility has completed.
- From the windows desktop, follow the menu path: Start > Programs > MYOB Accountants Enterprise > DataSafe. The DataSafe Utilities window appears.
- Click Check Now. The Database Check screen appears.
- Select the option Also check and repair the referential integrity of the application schema and click OK.
After all files are checked the prompt 'No errors were found in your database' appears. This routine should take no longer than five minutes. If a file is locked on the server, the check now routine appears to hang on that file e.g. 000000.css. If Check Now appears to have stalled, you may need to reboot your server to unlock the file.
- Click OK.
To stop MYOB Administration services manually
If necessary, the MYOB Admin centre services can be stopped manually by following these steps:
- On the server where the AE Tax SQL\MSDE database is located follow the menu path: Start > Programs > MYOB Accountants Enterprise > MYOB Administration Centre. The MYOB Administration Centre window is displayed.
- Select the task Stop all services in Administration Centre in the task panel. The Status of all the Services change from Running to Stopped.
- If the screen does not refresh, close the MYOB Administration Centre and reopen.
If the error persists, continue to task 4 below.
If there are database files with the extension of .r at the end, they all need to be replaced from a previous backup. Please contact MYOB Support if your database directory contains files with the extension of .r.
The files that most commonly show the .r extension are listed below:
To locate your database directory
- In Contacts, from the Help menu, select About MYOB Contacts. The About MYOB AE Contacts screen appears.
- Click Application details. The MYOB AE Contacts Application Details screen appears.
- Note the Database Location, e.g. q:\myob\data and click OK. The About MYOB AE Contacts screen appears.
- Click Close and exit Contacts.
- At the Windows Desktop, click Start and select Run. The Run window appears.
- Type Q:\MYOB\data in the Open field and click OK, where Q:\MYOB\data is your data directory.
- The S:\MYOB\data window appears.
- Check for files with a .r extension.
MYOB INTERNAL STAFF ONLY
Files with the extension .r can be deleted and restore from a prior backup manually if they are the files listed above.
Most are account layout files that do not contain data, but they may lose layouts edited since the last backup.
Do not restore files individually if the files end with .pms, .wip, .tax
Also ensure all services in Admin centre are stopped.
Unit table in cds.dir
scenario: The locking of databases can be caused by an incorrect database path in the unit table of cds.dir file. That is, the unit table may contact an absolute database path on different volume folders from a previous server that no longer applies to the new server. When there are several volumes in the database, there may be hard coded paths embedded in the directory database.
- Follow the menu path: Start > Programs> MYOB Accountants Enterprise > Datasafe. The Datasafe screen appears.
- Click the Support Tools button. The Database Utilities screen appears.
- Click the Other Utilities drop-down list and select Dbed - edit database.
- Click the Database drop-down list and select Database Directory (CDS.DIR) appears. The Client field shows No Client (Practice File). The Copy field shows Home and the Arguments field shows -t~
- Click the Run Now button. The command.com screen appears. To view and edit the unit table follow the steps below:
- At the curly bracket } prompt enter the following commands:
} t~ and then press ENTER.
} s unit > ...\solution6\bin\unit.txt and then press ENTER. The "FIXED" lines appear.
- Check the unit.txt file for any absolute paths showing on the "FIXED" lines. If a line appears as follows in the unit.txt file, FIXED~1~~F:\data\solution6\v1\~\~\~18 change the line to read as follows: FIXED~1~~v1\~\~\~18 The line is changed.
- Save the changes in the unit.txt file and run the following command from the bracket prompt:
} d unit and then press ENTER
} u unit < ...\solution6\bin\unit.txt and then press ENTER
} s unit and then press ENTER The changes appear in the unit table.
- Check that the new changes are showing in the unit table as shown below:
FIXED~1~~v1\~\~\~18 If the correct information is showing on the screen use the command below to exit the database editing screen.
} q and then press ENTER. The database editing screen disappears.
- Run the database conversion again. The conversion is run.