Openbravo Issue Tracking System - Modules
View Issue Details
0037444ModulesInitial data loadpublic2017-12-11 10:492022-02-28 13:53
AtulOpenbravo 
Triage Platform Conn 
normalminoralways
newopen 
5
 
 
0037444: IndexOutOf BoundException raised in Journal Entries process in IDL module under some circumstances
User can avoid defining Account dimensions in General Ledger Configuration. This raises java.lang.IndexOutOfBoundsException in Journal Entry import process in IDL Module.
- Install IDL module and apply reference data set.
- Login as F&B International Group Admin
- Navigate to General Ledger Configuration
- Select record F&B International Group US/A/US Dollar
- Under Dimension Tab, delete record of type Account.
- Navigate to Import process
- Select attached file and Entity as Journal Entry.
- Click on Validate button. Realize that process is executed successfully.
- Select attached file and Entity as Journal Entry.
- Click on Process button.
- Error is raised as

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)
    at java.util.ArrayList.get(ArrayList.java:429)
    at org.openbravo.idl.proc.JournalEntriesProcess.createJournalEntries(JournalEntriesProcess.java:274)
    

** If Account dimension in defined and Account Tree is kep blank following error can occur.

java.lang.NullPointerException
    at org.openbravo.idl.proc.JournalEntriesProcess.createJournalEntries(JournalEntriesProcess.java:274)
    at
Before getting

criteriaAcctSchemaElement.list().get(0).getAccountingElement().getId()

check whether list is empty and also account tree is set or not as it could be left blank.

Meaningful message could be set so that user can configure system as required.
No tags attached.
related to defect 0037443 new Triage Platform Conn Query did not return a unique result error when import Journal Entries using IDL Module 
csv Journal_Entries.csv (614) 2017-12-11 10:49
https://issues.openbravo.com/file_download.php?file_id=11360&type=bug
Issue History
2017-12-11 10:49AtulOpenbravoNew Issue
2017-12-11 10:49AtulOpenbravoAssigned To => Triage Finance
2017-12-11 10:49AtulOpenbravoFile Added: Journal_Entries.csv
2017-12-11 10:55AtulOpenbravoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16425#r16425
2017-12-11 10:55AtulOpenbravoProposed Solution updated
2017-12-11 10:57AtulOpenbravoRelationship addedrelated to 0037443
2022-02-28 13:53vmromanosAssigned ToTriage Finance => Triage Platform Conn

There are no notes attached to this issue.