Update several company files at once
After you install a newer version of alameen ERP 10, every company file needs an update. Instead of opening the files one by one, the Update Multiple Files wizard updates them together and ends with a report of what succeeded and what failed.
Before you begin
- Install the new version of the program first. See Check for program updates.
- Back up every file before the update. The program does not make a backup, and it cannot take a file back to the old version. See Back up a company file.
- After the update, no file opens with an older version of the program. Update all the computers that work on the files.
- If a company file is open in your program, close it first with File > Close. The wizard does not close it.
- Ask all users to leave the files. If a user is on a file, the program asks whether to retry (see the problems table).
- The default server must be defined and available. If it is not, the program opens the connect-to-server window so you can set it, and if you cancel it the wizard does not open. See Choose the default SQL server.
- If a system administrator is defined, have its name and password ready (Add or remove a system administrator).
Steps
Choose the files
-
Click File, then Home, then the Update Multiple Files button. The wizard opens. At its top are the Program Version and the Database Version the update brings.
-
Wait until all the files show. If you click Next earlier, the rest are not added. The wizard lists the recent files whose server it can reach. A file whose server cannot be reached does not show in the list. Each file has a check box with its name, the database and server under it, and a Version line. The version of a file that needs an update shows in red, and the file is selected in advance.
-
Select the files you want to update with the check boxes, or use the toolbar buttons:
| Button | What it does |
|---|---|
| Open File | Adds a description file (.sdf) that is not in the list. If the file is already in the list, "File already exists." shows. |
| Open Database | Adds a database that you choose directly from the server, when it has no description file yet. If it has one, nothing is added and no message shows: use Open File. |
| Select All | Selects all the files, even those that need no update or belong to a newer version. Clear those before you go on. |
| Select Needs Update Only | Selects the files that need an update and clears the rest. |
| Select None | Clears all the selections. |
- If the wizard cannot reach the server of a file you added, it shows the connection message and "Click "Ok" to retry connecting or "No" to exit.": click Yes to change the server and try again, or No to leave the file.
- Click Next. The button does not work until at least one file is selected.
Enter the system administrator details
This page shows only if the server the program checks has a system administrator: the server of the open file, or, when no file is open, the last server you signed in to or connected to. Otherwise the wizard goes straight to the next page. The program asks once for all the files.
- Type the name in System administrator and the password in Password.
- Click Next. If you make a mistake, "No such user or group" or "Invalid password" shows and you stay on the page.
Run the update
-
The last page lists the selected files, and above them the warning: "Once it's upgraded, it can't be opened in any version that is older than this version (to which it's upgraded). This operation might take long time depending on the size of the file.".
-
Choose the Upgrade Mode. The update does not start without it: "Please select upgrade mode." shows.
| Mode | What it does |
|---|---|
| File Upgrade in Stages | Runs the update stage by stage and records each stage in the update log inside the file. This is the mode the program uses when you update one file from the login window. |
| Batch File Upgrade | Runs all the stages without this per-stage recording. |
| Test Upgrade | Runs the whole update and then undoes it at the end, so the data and the version of the file stay as they were. Use it to check that the update will succeed before you run it for real. Some preparation steps are not undone (see the warning below). |
Before the first stage, in every mode, the program prepares the database: it raises its compatibility level if needed and adds helper procedures. If the file is a publisher in the replication system, its subscribers are removed. If it is a subscriber, it is separated from the publisher. Test Upgrade does not undo these steps. Run the test on a copy of such a file.
- Choose the Simultaneous Updates Count: the number of files updated at the same time. The highest value is the smallest of the number of selected files, 4, and the number of processors of the computer. A higher value is faster and needs a strong server and computer.
- Click Start. The Back and Start buttons disappear, and you cannot close the window while the update runs.
- Watch the list. Each file has an icon for its state: an hourglass while it waits, a spinner while it updates with a progress bar, text and a percentage, a green check mark on success, and a red error mark on failure. The program button in the taskbar shows that work is going on, without a percentage.
- To stop, click Cancel. The program does not stop the files it already started, but it starts no others, and the wizard closes when the files in progress are done, without the report.
Read the report and the log
-
The Show Update Report button shows when the first file fails, or when all the files are done. At the end the cancel button becomes Close. Click Show Update Report.
-
Open the group "files successfully updated": each file shows its Database and Version.
-
Open the group "files failed to update": each file shows its Database, Version and Error (the error text, or an empty box when the update stopped without one).
-
At the bottom the window shows Log File: the path of a file named
UpgradeLog_, then the date and time, with the.jsonextension, in the program log folder. Click the path and Windows opens the folder with the file selected. -
Click Close, then Close in the wizard. The Send button does nothing in this version.
The program writes the log file each time a file finishes, but the last file to finish is not in it. If you update one file, the log holds no files. So rely on the report. For each file in it the log holds the path, name, server, database, the version before the update, the start and end time (in universal time), the success and the error.
Result
- The files that succeeded (in File Upgrade in Stages and Batch File Upgrade) have the new version. The warning disappears from their row in the recent files list, and their name is refreshed there.
- In Test Upgrade no file changes and nothing changes in the list. A file that passes shows a check mark but is still on the old version.
- The files that failed keep their data and version, because the stages are undone, but the preparation steps stay. They show in the report with the error text. Fix the cause (such as a connected user or a lack of space on the server), then run the wizard again for the failed files only.
The version the report shows for each file is the version the file had before the update.
If something goes wrong
| Message or situation | Why it shows | What to do |
|---|---|---|
| Please select upgrade mode. | You clicked Start without choosing the Upgrade Mode. | Choose a mode. |
| File already exists. | The file you opened is already in the list. | Select it from the list. |
| The program was unable to establish a connection with the database server (…) | The server of the file you added cannot be reached. | Check the network and the server, then click Yes to retry. |
| No such user or group | The system administrator name is wrong. | Type the correct name. |
| Invalid password | The system administrator password is wrong. | Type it correctly. |
| Database is Opened By Users … Do you want to retry? | Users are connected to the file. The SQL Server sign-in name, computer and program of each show. | Ask them to leave, then click Yes. If you click No, the update of this file fails with no error text in the report. |
| A red error mark next to a file | The update failed for a reason in the file or on the server. Its text shows under Error in the report. | Read the text and fix the cause, then try again. Restore the backup if the file does not open. |
| Error in setting Compatibility Level of the database. Note: alameen ERP is running on SQL Server 2019 or higher. | The program could not change this setting of the database, for example because the account it connects with has no permission. The file fails with no error text in the report. | Ask the SQL Server administrator to give the account the permission, then try again. |
| Error in Trustworthy setting of the database. This will cause the Messages system not to run. Do you want to continue? | The program could not set the database property the Messages system needs. | Click Yes to continue without the Messages system. If you click No, the update of this file fails with no error text in the report. |
| A file does not show in the list | Its server is not available, or the file is not among the recent files. | Add it with Open File, or with Open Database if it has no description file. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.