IBM Support

Addressing currency conversion exceptions in TRIRIGA server log

Question & Answer


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

[{"Product":{"code":"SSHEB3","label":"IBM TRIRIGA Application Platform"},"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"All Editions","Line of Business":{"code":"LOB02","label":"AI Applications"}}]

Document Information

Modified date:
17 June 2018

UID

swg21664652