Wednesday, October 31, 2007

Financial Statement - Stack trace error

I have stack trace error in standard financial statement report @@

Follow the steps to reproduce the error:
  1. Go to General Ledger > Reports > Transactions > Periodic > Financial statement
  2. Choose INC_01 Income statement for Financial statement.
  3. Choose Account for Main focus.
  4. Choose P&L for Row definition.
  5. Click OK button to run the report.
It applied to AX4 SP2 only.














Updated:
Obviously map.empty() doesn't work as it do. Probably following code can solve the bug on our standard financial report.

//empty statement was added to be 100% sure that not critical error being thrown. but it's still redundant.
ledgerBalColumnsDim = ledgerBalColListPrinted.empty() ? ledgerBalColList.lookup(actualColumn) : ledgerBalColListPrinted.lookup(actualColumn);


Change to:
//empty statement was added to be 100% sure that not critical error being thrown. but it's still redundant.
ledgerBalColumnsDim = !ledgerBalColListPrinted ? ledgerBalColList.lookup(actualColumn) : ledgerBalColListPrinted.lookup(actualColumn);

No comments: