IBM Support

Addressing currency conversion exceptions in TRIRIGA server log

Technote (FAQ)


Question

How do I address the cause of currency conversion exceptions that are appearing in my TRIRIGA server.log file so they stop being logged?

Cause

The exception can occur as a result of currency conversion being done when a user profile has a different currency than the base currency.
Some examples of the exception seen in the log:


Exception:

Error in Conversion from >CHINESE YUAN RENMINBI< to >US Dollars< . Using conversion rate of 1.
Error in Conversion from >NIGERIAN NAIRA< to >US Dollars< . Using conversion rate of 1.


Answer

There are generally two ways to resolve.

  1. Add currency conversion values to allow the currency conversion to take place.

    Documentation can be found in the Related Information section below - Currency - IBM TRIRIGA Knowledge Center
  2. Confirm every user profile has the same currency as the base currency.

    The base currency is defined in the TRIRIGAWEB.properties file.

    #
    # The Base Currency for the installation
    #
    BaseCurrency=US Dollars




Also check for Duplicate UOM values for Currency

This could explain the exception if the first two options fail to resolve the problem.

If there were two values for US Dollars this could lead to currency conversion exceptions or if two currency held the same "abbreviation".

You can check this going to Tools > Administration > Unit of Measure (UOM) > Values



For example:

US Dollars (default)

us dollars

Related information

Currency - IBM TRIRIGA Knowledge Center

Document information

More support for: IBM TRIRIGA Application Platform

Software version: Version Independent

Operating system(s): Platform Independent

Software edition: All Editions

Reference #: 1664652

Modified date: 13 April 2017