Skip to main content

Audit Files

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.

warning

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​

PageWhat it holds
Make a BackupShown first. It is described in Make a backup, and the hard disk or removable disk page follows, depending on your choice.
List of checksYou tick the checks to run.
Audit optionsYou 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.

FieldDescriptionRequiredValues and rules
Check TypeA list of check boxes. Each check has a box; group headings have none.NoAll 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.

ButtonWhat it does
NextKeeps the ticks and goes to the Audit options page.
BackReturns to the backup page.
CancelAsks whether to leave the wizard.

Available checks​

The checks appear with these names, in list order, under the heading of their group:

GroupCheck
AccountsSub and Main Account Relationships
AccountsCollective and Ditributive Components
AccountsValid account types
AccountsUsability
AccountsNumber of Sons
AccountsValid Accounts Branches Links
AccountsValid Accounts Fields
BranchesValid Branches in Branch Related Tables
Materials GroupsSub and Main Group Relationships
Materials GroupsValid Units
Materials GroupsValid Materials Fields
Materials GroupsMaterials Code Repeated
StoresSub and Main Warehouse Relationships
BillsBills Templates Defaults
BillsValid Customers
BillsQuantity Error In Bill Items
BillsBills Sums
BillsBills without Entries
BillsBills Without Items
BillsItems without Bills
BillsNulls in Bills
BillsNulls in Bills items
BillsValid Bills Stores
BillsValid Bills Item Stores
BillsValid Bills Items Materials
BillsValid Bills Items Units
BillsValid Bills Currencies and Currencies Values
BillsValid Bills Items Currencies and Currency Values
BillsMaterials, groups and user Accounts
BillsMissing Transfer Bill Check
BillsValid related bill payments
BillsCheck billing patterns
BillsCheck the expiration date
BillsCheck Bill Items Net
EntriesEntries Templates Defaults
EntriesValid Entries Types
EntriesValid Posting Flag
EntriesValid Currencies and Currencies Values
EntriesValid Entries Items Currencies and Currencies Values
EntriesEntries Sums
EntriesValid Entries Items Accounts
EntriesValid Entries Items Cost Center
EntriesEnties without Items
EntriesEntries Items without Entries
EntriesNulls in Entries
EntriesValid Entries Relations
EntriesDuplicate Numbers
EntriesContraAccount Assignment
EntriesDeferant between Account Branch and ce Branch
EntriesValid Entries Items Customers
NotesNotes Accounts
CurrenciesCurrencies Cards
AssetsValid Links between Asset Detail and serial Number
data FieldsNull Values
GCC Tax SystemDuplicate GCC Settings
GCC Tax SystemDuplicate GCC Materials Tax
GCC Tax SystemDuplicate 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.

FieldDescriptionRequiredValues and rules
Audit and FixRepairs 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 threeThe page passes the value 2 to every ticked check.
Audit OnlyLists the errors without repairing them: "View a report of existing errors without repairing them."One of threeSelected when the page opens. The page passes the value 0.
Fix OnlyRepairs the errors without a report: "This option will repair the existing errors in files without a report about them(The Fastest)."One of threeThe 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.

ButtonWhat it does
StartRuns the ticked checks in order (see What happens on Start).
BackReturns to the List of checks.
NextDisabled: this is the last page.
CancelBefore Start it asks whether to leave the wizard. During the run it is disabled, so the run cannot be stopped.

What happens on Start​

  1. The program empties the temporary error log in the file.
  2. 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.
  3. 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.
  4. 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.
  5. The program records the maintenance and the errors it found in the maintenance log of the file.
  6. 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​

MessageItem the row opensValues shown
The main account is not acceptableAccountCode and name
Invalid account typeAccountCode and name
One of the items of the compound account is not foundAccountCode and name
Incorrect count of sub accountsAccountCode and name
Main Account Branch doesn't Include this Account BranchAccountCode and name
(text supplied by the check itself)Account

Materials​

MessageItem the row opensValues shown
Error in UnitsMaterial
(text supplied by the check itself)Material
Duplicated material codeMaterial
Sub asset not linked with serial numberMaterial
Duplicated materials accountsMaterialCode and name

Material groups​

MessageItem the row opensValues shown
Parent not foundMaterial groupCode and name
Duplicated groups accountsMaterial groupCode and name

Warehouses​

MessageItem the row opensValues shown
Parent not foundWarehouseCode and name

Bills​

MessageItem the row opensValues shown
Bill without ItemsBill
Customer card number is not acceptableBill
Account not foundBill
Deleted WarehouseBill
Currency not found in Currency File (Bill
Unacceptable Currency RateBill
Bill Total isn't MatchingBillThe value stored in the bill, then the value the program calculated from its items
Bill discounts sum is not matchingBillThe value stored in the bill, then the value the program calculated from its items
Additions sum does not matchBillThe value stored in the bill, then the value the program calculated from its items
Total items discount is not identicalBillThe value stored in the bill, then the value the program calculated from its items
Gifts discounts sum doesn't matchBillThe value stored in the bill, then the value the program calculated from its items
Total VAT is not MatchingBillThe value stored in the bill, then the value the program calculated from its items
Bill without EntryBill
Empty Values in Bill FieldsBill
Bill number already existsBill
Bill - invalid customer for accountBill
Bill with More than One EntryBill
The counter transposition bill is missing

Bill items​

MessageItem the row opensValues shown
Bill Items without BillBill
Material not definedBill
Deleted WarehouseBill
Unacceptable Currency RateBill
Linked Units; 2nd or 3rd Quantities is not zeroBill
Unlinked Units; 2nd or 3rd Quantity is zeroBill
Empty Values in Bill ItemsBill
Negative OutputBill, Material
Unacceptable QuantityBill, MaterialThe stored quantity -> 1
Unacceptable Serial NumberBill, Material
Materials units in bill is not compatible with original materials unitsBill
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 unitsManufacturing operation

Entries​

MessageItem the row opensValues shown
Entry without ItemsEntry
Currency not found in Currency File (Entry
Unacceptable Currency RateEntry
Incorrect Entry TotalEntry
Empty Values in Entry ItemsEntry
Unacceptable Post Field in EntryEntry
Unacceptable Entry TypeEntry
Duplicated Entry NumberEntry
The entry is not balancedEntry
Entry with More than One OriginEntry
(text supplied by the check itself)EntryEntry without Origin, Entry not found

Entry items​

MessageItem the row opensValues shown
Entry Items without EntryEntry
Currency not found in Currency File (Entry
Unacceptable Currency RateEntry
Account not foundEntry
Account card number is not acceptableEntry, Account
The contra account not admissible in entryEntry, Account
Unacceptable Entry Branch for Account BranchEntry, AccountCode and name
Cost center does not existEntry
Not Basic Currency but its Rate is 1Entry
Basic Currency but its Rate is not 1Entry
Entry item has no customerEntry
Entry item - invalid customer for accountEntry

Commercial papers and vouchers​

MessageItem the row opensValues shown
Duplicated Entry NumberVoucher
Account not foundCommercial paper
Duplicated Commercial Paper NumberCommercial paper
Commercial Paper with More than Issue EntryCommercial paper
Journal Entry with More than One EntryVoucher

Types​

MessageItem the row opensValues shown
Account not foundType name
Deleted WarehouseType name
The main account is not acceptableType name
Cost center does not existType name

Currencies​

MessageItem the row opensValues shown
No Currencies Found
No Main Currency
More than one Rate at the Same DateEntry
Basic Currency but its Rate is not 1Entry

Other​

MessageItem the row opensValues shown
Default Values
Duplicated users accounts

GCC tax system​

MessageItem the row opensValues 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 duplicatedMaterialCode and name
GCC - Customers tax is duplicatedCustomer

Messages​

MessageWhy it appearsWhat 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 completedThe 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.