Update Multiple Files
The Update Multiple Files wizard updates several company files together after you install a newer version of alameen ERP 10, and then shows a report of what worked and what failed. The steps and warnings are in Update several company files at once. This page covers every page, button, field and message.
Opening the wizard
Click File > Home > Update Multiple Files. The button shows in every edition. Before the wizard, the program checks that a default server is set and reachable, and if not it opens Connect to Server. If you cancel that, the wizard does not open. In the subscription edition the wizard does not open in that case, and no window appears. The wizard has a fixed size and cannot be closed while an update runs.
At the top of every page, the lines Program Version: and Database Version: show the versions the program updates the files to.
Buttons for all pages
| Button | What it does |
|---|---|
| Next | Goes to the next page. On the first page it works after you select a file. |
| Back | Returns to the previous page. It disappears after you click Start. |
| Start | On the last page. Starts the update, and it and Back disappear. |
| Cancel | Closes the wizard before the start. During the update it stops new files from starting (see Cancel). When the work is over its text becomes Close. |
File selection page
The heading is "Update Multiple Files". When it opens, the program checks the recent files and adds to the list each file whose server it can reach, so the files appear one by one. A file whose server is not available does not show. If you click Next before the check ends, you stop it and the files that were left are not added.
| Button | What it does |
|---|---|
| Open File | Opens a window to choose a *.sdf description file and adds it to the list. If it is already in the list, "File already exists." appears. If its server cannot be reached, the connection message appears with the buttons Yes to change the server and try again, and No to leave the file. |
| Open Database | Opens the Open Database window and adds the database you choose, if it has no description file. |
| Select All | Selects every file, even those that do not need an update or belong to a newer version. |
| Select Needs Update Only | Selects the files that need an update and clears the others. |
| Select None | Clears the selection of all files. |
Each file has a check box with its descriptive name, and under it the database, "on" and the server, and a Version: line with the database version of the file. The version shows in red if the file needs an update. Files that need an update are selected at first, and so is a file you add with Open File if it needs one.
System administrator page
It appears if the server the program checks has a system administrator. That server is the one of the open file, or the last one you signed in to or connected to if no file is open. Otherwise the wizard goes to the last page. The program asks for the details once for all files.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| System administrator | The name of the system administrator. | Yes | If wrong, "No such user or group" appears and the cursor stays in the box. |
| Password | His password. | Yes | If wrong, "Invalid password" appears. |
The text "Please enter system administrator name and password" shows above the boxes.
Last page: run the update
It shows 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." and a list of the selected files.
| Element | Description | Required | Values and rules |
|---|---|---|---|
| Upgrade Mode | How the update runs. | Yes | Nothing is selected at first. If you start without choosing, "Please select upgrade mode." appears. The choices are in the next table. |
| Simultaneous Updates Count | The number of files updated at the same time. | Yes | The first value is 1. The largest value is the lowest of the number of selected files, 4 and the number of processors in the computer. Both lists are disabled after the start. |
| Start | Starts the update. |
| Upgrade 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. |
| Batch File Upgrade | Runs all stages without this record for each stage. |
| Test Upgrade | Runs the whole update and then rolls it back at the end, so the data and version of the file stay as they were. It does not roll back the preparation steps that come before the first stage: the compatibility level of the database and helper procedures, removing the subscribers of a publisher file and detaching a subscriber. |
Every file on the last page has a status icon that changes: an hourglass while it waits, a spinner while it updates with the stage text and a progress bar, a green check on success and a red error mark on failure. Under the name are the database, the server and the version. While the work runs, the program button on the taskbar shows that work is in progress.
The wizard starts with the chosen number of simultaneous files, and when one ends it starts the next. If a file fails with the text "External component has thrown an exception.", the program tries it again by itself up to three times before it counts it as failed.
Cancel
Cancel during the update does not stop the files that already started. It stops the rest from starting, and when the ones in progress end, the wizard closes without showing the report.
Show Update Report
The Show Update Report button appears when the first file fails, and when all files end. It opens the report window for the files whose work has ended.
Report window
Its title is "Update Multiple Files". It opens with the first group expanded, and you can maximize it.
| Element | Description |
|---|---|
| Group "files successfully updated" | A count of files comes before it. Under each file: Database: in the form "name on server", and Version:, which is the version of the file before the update. |
| Group "files failed to update" | A count of files comes before it. Under each file: Database:, Version: and Error:, which holds the text of the error, or an empty box if the update stopped with no text. |
| Log File: | The path of a file named UpgradeLog_ followed by the date and time and the extension .json, in the program logs folder. Click it and Windows opens the folder with the file selected. |
| Close | Closes the window. |
| Send | A button that is in the window and does nothing in this version. |
The program writes the log file each time a file ends. It records for each file its path, name, server, database, its version before the update, start and end times in universal time, whether it succeeded, and the error text. But the last file to end does not appear in the log, and if you update one file the log has no files. Rely on the report.
Messages
| Message | When it appears |
|---|---|
| Please select upgrade mode. | You clicked Start without choosing Upgrade Mode. |
| File already exists. | The file you opened is already in the list. |
| The connection message, then "Click "Ok" to retry connecting or "No" to exit." | The server of a file you added could not be reached. The buttons are Yes and No. |
| No such user or group | The system administrator name is wrong. |
| Invalid password | The system administrator password is wrong. |
| Database is Opened By Users, then a list of users, then "Please check that all users logged out. Do you want to retry?" | Users are connected to the file during the update. The sign-in name, computer and program of each shows. Yes retries, and No ends the update of this file with an error that has no text. |
| Error in setting Compatibility Level of the database. Note: alameen ERP is running on SQL Server 2019 or higher. | The program could not change the compatibility level of the database. The file fails with no error text in the report. |
| 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 that the messaging system needs. Yes continues, and No fails the file with no error text. |
The causes and actions are in Update several company files at once.
Related
This page applies to alameen ERP 10, version 10.1.79.764.