Hi,
we have a strange problem with the consolidation. It adds values to what is already in the DB, so if we run it twice it doubles up data, if we run it three times, we get three times the value etc. This does not happen on all accounts but I think I have narrowed it down quite well.
First, this is the data we have entered
Account: A00121000
Flow: F_120
Datasource: INPUT
Currency: LC
Consoscope: G_NONE
Amount: 100
The account is an AST account, though it does happen on LEQ accounts as well, it uses ratetype HISFLOWA, which basically should convert at a historic rate.
Flow F_120 is an ordinary flow with no FLOW_TYPE, it has a DIMLIST_FXR property value of FXR_MOV which is used in the conversion rule.
Datasource INPUT is our base datasource, the one where we load data from the source system.
As the account is supposed to be converted at a historic rate, we have to enter the amount in group currency as well, so we also have entered this
Account: A00121000
Flow: F_120
Datasource: INPUT
Currency: USD
Consoscope: G_NONE
Amount: 135
We then run a standard FX translation with no errors and still have the same data (conversion rule AS_IS, so we expect this).
We then run a consolidation, either as a package via Excel or via the Consolidation monitor. The script for the Excel package is
*RUN_PROGRAM CURR_CONVERSION
CATEGORY = %CATEGORY_SET%
GROUP = %CONSOSCOPE_SET%
TID_RA = %TIME_SET%
RATEENTITY = GLOBAL
*ENDRUN_PROGRAM
*RUN_PROGRAM CONSOLIDATION
CATEGORY = %CATEGORY_SET%
GROUP = %CONSOSCOPE_SET%
TID_RA = %TIME_SET%
*ENDRUN_PROGRAM
After this step we now have this data
Account: A00121000
Flow: F_120
Datasource: INPUT
Currency: USD
Consoscope: G_GROUP
Amount: 270 (135+135)
If we run the consoliation again we end up with
Account: A00121000
Flow: F_120
Datasource: INPUT
Currency: USD
Consoscope: G_GROUP
Amount: 405 (135+135+135)
I did comment out the conversion in the consolidation script which made the problem kind of go away. As long as we did not change any data, we got the expected result but as soon as we changed any data in LC/G_NONE/INPUT it wasn't converted to G_GROUP and therefore wasn't included in the consolidation. But to my mind this shows that the problem must be in the conversion part of the consolidation.
All accounts that do not require historic conversions work fine, it is only accounts where we need historic conversion that show this behaviour.
G_GROUP is defined with a currency_type G and group_currency USD. The attached screen shows the part of HISFLOWA which references FXR_MOV.
Would anyone have any idea why the system behaves this way?
Thanks,
Arnold