The Audit Files wizard in alameen ERP 10 checks the data of the open file for integrity errors, such as an unbalanced entry or a bill without an entry. You choose the checks to run, then choose whether the program only lists the errors or also repairs them. For the working steps see Audit files.
The Audit and Fix and Fix Only options change the data of the file at once, and there is no undo. Take a backup before you run them, and ask the other users to leave the file.
Opening the wizard
- On the File tab click Tools, then Files Maintenance. Select Audit Files and click Execute. The description under the name in the list reads: "This operation is used to ensure files integration and discard any errors such as: an unbalanced entry or a bill with missing entry." Selecting it shows the warning frame "This operation is dangerous …": the frame shows for every operation whose severity is above low, and this operation has high severity. How to open the Files Maintenance window and add an operation to the favorites is in Run files maintenance.
- The wizard also starts from the favorites menu on the Tools page, from Quick Launch search and from a Maintenance tile on the desktop.
- The operation is in the list when your edition includes accounting and the file does not work in multiple files mode. The conditions for every operation are in Available maintenance operations.
- You need the Files Maintenance permission, as described in Run files maintenance. Users Management > Operations also lists a permission named Audit Files; the program checks it only to show or hide the desktop tile, and does not check it when you start the operation from the window, the favorites menu or Quick Launch. The file is reserved for one user; this and the other rules of the maintenance wizards are in A file reserved for one user.
- The same list of checks appears in the Audit Files step of a scheduled task.
Wizard pages
| Page | What it holds |
|---|
| Make a Backup | Shown first. It is described in Make a backup, and the hard disk or removable disk page follows, depending on your choice. |
| List of checks | You tick the checks to run. |
| Audit options | You choose the audit type and click Start. |
The Next and Back buttons, the cancel question and the progress bar work as described in How the maintenance wizards work.
List of checks
The page title is "Audit Files". At the top, a sentence asks you to specify the checks to apply to the files from the check list.
| Field | Description | Required | Values and rules |
|---|
| Check Type | A list of check boxes. Each check has a box; group headings have none. | No | All checks are ticked the first time the page opens. The wizard keeps your ticks while the program stays open, so the page opens the next time with the ticks of the previous run. Click the box, or press Space while a check is selected, to switch it. The list is read from the file itself, so it can differ with the version of the database. The checks of the GCC tax system appear only when that system is enabled in the file. |
The program does not check that you ticked at least one check. If you clear them all, you move to the next page, the run performs no check, and the usual messages for a run without errors follow.
| Button | What it does |
|---|
| Next | Keeps the ticks and goes to the Audit options page. |
| Back | Returns to the backup page. |
| Cancel | Asks whether to leave the wizard. |
Available checks
The checks appear with these names, in list order, under the heading of their group:
| Group | Check |
|---|
| Accounts | Sub and Main Account Relationships |
| Accounts | Collective and Ditributive Components |
| Accounts | Valid account types |
| Accounts | Usability |
| Accounts | Number of Sons |
| Accounts | Valid Accounts Branches Links |
| Accounts | Valid Accounts Fields |
| Branches | Valid Branches in Branch Related Tables |
| Materials Groups | Sub and Main Group Relationships |
| Materials Groups | Valid Units |
| Materials Groups | Valid Materials Fields |
| Materials Groups | Materials Code Repeated |
| Stores | Sub and Main Warehouse Relationships |
| Bills | Bills Templates Defaults |
| Bills | Valid Customers |
| Bills | Quantity Error In Bill Items |
| Bills | Bills Sums |
| Bills | Bills without Entries |
| Bills | Bills Without Items |
| Bills | Items without Bills |
| Bills | Nulls in Bills |
| Bills | Nulls in Bills items |
| Bills | Valid Bills Stores |
| Bills | Valid Bills Item Stores |
| Bills | Valid Bills Items Materials |
| Bills | Valid Bills Items Units |
| Bills | Valid Bills Currencies and Currencies Values |
| Bills | Valid Bills Items Currencies and Currency Values |
| Bills | Materials, groups and user Accounts |
| Bills | Missing Transfer Bill Check |
| Bills | Valid related bill payments |
| Bills | Check billing patterns |
| Bills | Check the expiration date |
| Bills | Check Bill Items Net |
| Entries | Entries Templates Defaults |
| Entries | Valid Entries Types |
| Entries | Valid Posting Flag |
| Entries | Valid Currencies and Currencies Values |
| Entries | Valid Entries Items Currencies and Currencies Values |
| Entries | Entries Sums |
| Entries | Valid Entries Items Accounts |
| Entries | Valid Entries Items Cost Center |
| Entries | Enties without Items |
| Entries | Entries Items without Entries |
| Entries | Nulls in Entries |
| Entries | Valid Entries Relations |
| Entries | Duplicate Numbers |
| Entries | ContraAccount Assignment |
| Entries | Deferant between Account Branch and ce Branch |
| Entries | Valid Entries Items Customers |
| Notes | Notes Accounts |
| Currencies | Currencies Cards |
| Assets | Valid Links between Asset Detail and serial Number |
| data Fields | Null Values |
| GCC Tax System | Duplicate GCC Settings |
| GCC Tax System | Duplicate GCC Materials Tax |
| GCC Tax System | Duplicate GCC Customers Tax |
Audit options
The page title is "Audit Files". Under it, a sentence asks whether you want to audit the files while trying to repair the errors found, or audit only and show the errors that were found.
| Field | Description | Required | Values and rules |
|---|
| Audit and Fix | Repairs the existing errors and gives a report about them: "This option will repair the existing errors in files with a report about them." | One of three | The page passes the value 2 to every ticked check. |
| Audit Only | Lists the errors without repairing them: "View a report of existing errors without repairing them." | One of three | Selected when the page opens. The page passes the value 0. |
| Fix Only | Repairs the errors without a report: "This option will repair the existing errors in files without a report about them(The Fastest)." | One of three | The page passes the value 1. |
The three options are in a group named Audit Options. Below the group are a status line and a progress bar that stays hidden until you click Start.
| Button | What it does |
|---|
| Start | Runs the ticked checks in order (see What happens on Start). |
| Back | Returns to the List of checks. |
| Next | Disabled: this is the last page. |
| Cancel | Before Start it asks whether to leave the wizard. During the run it is disabled, so the run cannot be stopped. |
What happens on Start
- The program empties the temporary error log in the file.
- It runs every ticked check in order. The status line shows the check name, and the bar advances one step after each check. If a check stops with a database error, the program goes on to the next check.
- Each check decides what it repairs. For example: it recalculates the totals of a bill from its items, recalculates the debit and credit totals of an entry from its items, sets the quantity to
1 in a bill item whose quantity is negative, and creates a new account with a code that starts with #_, such as #_000001, for every missing account that entry items point to.
- The program reads the logged errors. If there are none, it shows "Checking files completed successfully No errors." If there are errors, it lists them in the error window.
- The program records the maintenance and the errors it found in the maintenance log of the file.
- The message "Operation successfully completed" appears even when errors were listed, and then the wizard closes. It means that the audit finished, not that the file has no errors.
Error window
Several maintenance operations list their errors in one shared window, titled "Error Window". This section describes the window in general. The messages of the audit are below, and what another operation adds is on its own page, for example Check File's Physical Structure.
- Opening: The window opens by itself when the first error is listed. It is a separate window with minimize and maximize buttons.
- Header: At the top are three lines: "This window displays error found while checking.", "The corrected errors are displayed in gray and the errors the program can't correct are displayed in red", and "The content of this window will be saved in the file" followed by a colon. Nothing follows the colon. Some operations replace these three lines with one line of their own.
- Rows: Each error is a row: the message, then the name of the item concerned, then values when the error has any. A repaired error is gray and an error the program could not repair is red.
- Right-click menu: Right-click a row, or select it and press
Shift+F10. The menu opens under the row and holds, in this order: Grid Lines; one command for every item linked to the row, named "Display" followed by the type of the item, such as Display Bill...; a separator; and Display.... Grid Lines (Ctrl+G in the list) switches the grid lines of the list on and off; it shows a check mark while they are on, and the choice is saved in the program option Show grid lines in report window. Display... shows the texts of the row, numbered, in an information message; the program shows the same message when it cannot open the item of a command.
- Double-click: Double-clicking a row runs one command of its menu: the command marked
DblClk in the menu. That is the first command, unless you already ran another command from this menu (or by double-click) on a row with the same number of commands, in which case it is that command. A row without commands shows its texts in the information message.
- The window stays open: There is one error window for the whole session of the program. Every later run adds its rows under the rows already in the list, and the list is not cleared when a new run starts. The close button of the window only minimizes it. Click the close button while holding
Shift to clear the rows from the list instead. The window stays until the program closes.
- Counter: Some wizards show the number of errors on the status line while the program lists them. That number is raised by one for every row written, is never reset, and so counts the errors listed since the program started, not those of the current run.
- No errors: When the check finds nothing to list, the program shows the message "Checking files completed successfully No errors." and that run adds no row.
- The general behavior of this kind of list is in The legacy list.
Error messages
The messages below are the text of the row in the message column, grouped by item. Some do not appear in a file without a tax system or without the feature concerned.
Accounts
| Message | Item the row opens | Values shown |
|---|
| The main account is not acceptable | Account | Code and name |
| Invalid account type | Account | Code and name |
| One of the items of the compound account is not found | Account | Code and name |
| Incorrect count of sub accounts | Account | Code and name |
| Main Account Branch doesn't Include this Account Branch | Account | Code and name |
| (text supplied by the check itself) | Account | |
Materials
| Message | Item the row opens | Values shown |
|---|
| Error in Units | Material | |
| (text supplied by the check itself) | Material | |
| Duplicated material code | Material | |
| Sub asset not linked with serial number | Material | |
| Duplicated materials accounts | Material | Code and name |
Material groups
| Message | Item the row opens | Values shown |
|---|
| Parent not found | Material group | Code and name |
| Duplicated groups accounts | Material group | Code and name |
Warehouses
| Message | Item the row opens | Values shown |
|---|
| Parent not found | Warehouse | Code and name |
Bills
| Message | Item the row opens | Values shown |
|---|
| Bill without Items | Bill | |
| Customer card number is not acceptable | Bill | |
| Account not found | Bill | |
| Deleted Warehouse | Bill | |
| Currency not found in Currency File ( | Bill | |
| Unacceptable Currency Rate | Bill | |
| Bill Total isn't Matching | Bill | The value stored in the bill, then the value the program calculated from its items |
| Bill discounts sum is not matching | Bill | The value stored in the bill, then the value the program calculated from its items |
| Additions sum does not match | Bill | The value stored in the bill, then the value the program calculated from its items |
| Total items discount is not identical | Bill | The value stored in the bill, then the value the program calculated from its items |
| Gifts discounts sum doesn't match | Bill | The value stored in the bill, then the value the program calculated from its items |
| Total VAT is not Matching | Bill | The value stored in the bill, then the value the program calculated from its items |
| Bill without Entry | Bill | |
| Empty Values in Bill Fields | Bill | |
| Bill number already exists | Bill | |
| Bill - invalid customer for account | Bill | |
| Bill with More than One Entry | Bill | |
| The counter transposition bill is missing | | |
Bill items
| Message | Item the row opens | Values shown |
|---|
| Bill Items without Bill | Bill | |
| Material not defined | Bill | |
| Deleted Warehouse | Bill | |
| Unacceptable Currency Rate | Bill | |
| Linked Units; 2nd or 3rd Quantities is not zero | Bill | |
| Unlinked Units; 2nd or 3rd Quantity is zero | Bill | |
| Empty Values in Bill Items | Bill | |
| Negative Output | Bill, Material | |
| Unacceptable Quantity | Bill, Material | The stored quantity -> 1 |
| Unacceptable Serial Number | Bill, Material | |
| Materials units in bill is not compatible with original materials units | Bill | |
| Materials units in the models are not compatible with the original materials units | | |
| Materials units in the manufacturing process are not compatible with the original materials units | Manufacturing operation | |
Entries
| Message | Item the row opens | Values shown |
|---|
| Entry without Items | Entry | |
| Currency not found in Currency File ( | Entry | |
| Unacceptable Currency Rate | Entry | |
| Incorrect Entry Total | Entry | |
| Empty Values in Entry Items | Entry | |
| Unacceptable Post Field in Entry | Entry | |
| Unacceptable Entry Type | Entry | |
| Duplicated Entry Number | Entry | |
| The entry is not balanced | Entry | |
| Entry with More than One Origin | Entry | |
| (text supplied by the check itself) | Entry | Entry without Origin, Entry not found |
Entry items
| Message | Item the row opens | Values shown |
|---|
| Entry Items without Entry | Entry | |
| Currency not found in Currency File ( | Entry | |
| Unacceptable Currency Rate | Entry | |
| Account not found | Entry | |
| Account card number is not acceptable | Entry, Account | |
| The contra account not admissible in entry | Entry, Account | |
| Unacceptable Entry Branch for Account Branch | Entry, Account | Code and name |
| Cost center does not exist | Entry | |
| Not Basic Currency but its Rate is 1 | Entry | |
| Basic Currency but its Rate is not 1 | Entry | |
| Entry item has no customer | Entry | |
| Entry item - invalid customer for account | Entry | |
Commercial papers and vouchers
| Message | Item the row opens | Values shown |
|---|
| Duplicated Entry Number | Voucher | |
| Account not found | Commercial paper | |
| Duplicated Commercial Paper Number | Commercial paper | |
| Commercial Paper with More than Issue Entry | Commercial paper | |
| Journal Entry with More than One Entry | Voucher | |
Types
| Message | Item the row opens | Values shown |
|---|
| Account not found | | Type name |
| Deleted Warehouse | | Type name |
| The main account is not acceptable | | Type name |
| Cost center does not exist | | Type name |
Currencies
| Message | Item the row opens | Values shown |
|---|
| No Currencies Found | | |
| No Main Currency | | |
| More than one Rate at the Same Date | Entry | |
| Basic Currency but its Rate is not 1 | Entry | |
Other
| Message | Item the row opens | Values shown |
|---|
| Default Values | | |
| Duplicated users accounts | | |
GCC tax system
| Message | Item the row opens | Values shown |
|---|
| GCC - Settings is missing | | |
| GCC - Settings is duplicated | | |
| GCC - Tax types are missing | | |
| GCC - Tax types are duplicated | | |
| GCC - Tax codes are missing | | |
| GCC - Tax codes are duplicated | | |
| GCC - Tax locations are missing | | |
| GCC - Materials tax is duplicated | Material | Code and name |
| GCC - Customers tax is duplicated | Customer | |
Messages
| Message | Why it appears | What to do |
|---|
| Are you sure you want to exit and cancel the maintenance operation? | You clicked Cancel on a wizard page before Start. | Click Yes to leave without any change, or No to stay. |
| Checking files completed successfully No errors. | The checks finished and logged no error. | Nothing. "Operation successfully completed" follows. |
| Operation successfully completed | The audit ended. | Review the error window if it appeared. |
| An error was encountered while performing the operation. | The audit stopped with an unexpected error. | The error message itself appears before it. Read it and try again after taking a backup. |
This page applies to alameen ERP 10, version 10.1.79.764.