Skip to main content

Rebuild the currency exchange rates table

This wizard reads the rates that were recorded in the entries, and writes the rates of the days in the Exchange Rates Table from them. Use it when the currency rates in the transactions are right and the rates in the table are missing. It runs from the Files Maintenance window, and all its fields are in Currency rate tools.

Before you begin​

  • The wizard shows in the Files Maintenance list when your key includes accounting. The conditions to run it are in Run files maintenance, and running it checks no permission of its own.
  • Take a backup. The wizard shows the backup page first (Make a backup). It adds rows to the table and may replace existing rows, and there is no undo.
  • The wizard does not check whether other users are in the file.
  • What the wizard writes for each day follows its own rules. The first is that it calculates the rate from the second line of the day, and the last is that it does not write the last day it read (details). Run it first with Save history in database unticked, to read the warnings only without it writing anything.

Steps​

  1. Click File, then Tools, then Files Maintenance. Select Rebuild Currencies Exchange Rates Table and click Run.
  2. On the Make a Backup page choose the type and click Next, then complete the backup page you chose.
  3. On the Build Currency Exchange Rate Table page set From and To. The period starts at the start of the file and ends at today's date.
  4. Choose For currency or All currencies except, then choose the currency in Currency. The default is All currencies except your default currency.
  5. Leave Save history in database ticked to write the rates, and tick Update saved values if you want the rates of the entries to replace the rates of days that are already in the table.
  6. Choose Selected Price: Maximum, Minimum or Average.
  7. Click Start. You cannot stop the run after it starts.
  8. If the window of errors shows, read its lines. On success the message "Operation successfully completed" shows and the page closes.

Result​

  • Rows are added to the table, or the rates of existing rows change. Open the Exchange Rates Table and review the days of the period, because the wizard does not show what it wrote.
  • The wizard does not change the rates of the entries and bills. To compare them with the table and fix them, run Audit currency rates in entries.
  • If you ticked Warn if more than 1 value in same day found, the results window shows the entries whose rate differs from the rate of the first entry of their day.

If something goes wrong​

MessageWhy it showsWhat to do
More than one Rate at the Same DateIn the results window: an entry on the same day has a rate that differs from the rate of the first entry of the currency. It does not stop the wizard writing.Open the entry from its line and fix it if it is wrong.
Basic Currency but its Rate is not 1In the results window: the rate of the excluded currency in an entry is not 1.Fix its rate in the entry.
An error was encountered while performing the operation.The database refused the command.Try again, and if the error repeats, contact technical support.
The table holds zero or missing ratesThe wizard has its own rules for calculating the rate and for the last days.See What the program writes, and fix the rows in the Exchange Rates Table.

The other messages are in Messages.

This page applies to alameen ERP 10, version 10.1.79.764.