Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037443
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Initial data loadminoralways2017-12-11 10:422022-02-28 13:53
ReporterAtulOpenbravoView Statuspublic 
Assigned ToTriage Platform Conn 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0037443: Query did not return a unique result error when import Journal Entries using IDL Module

DescriptionUnder some circumstances error is shown as Query did not return a unique result error when import Journal Entries using IDL Module. User can define multiple dimension under General Ledger with type Account.
Steps To Reproduce- 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, create record as below
  - Sequence No - 50
  - Name - Account 2
  - Type :- Account
  - Account Tree :- F&B EspaƱa, S.A. Account Account
  - Account Element:- 99909 - Cuenta por defecto de otros gastos
- Save Record.
- 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

org.hibernate.NonUniqueResultException: query did not return a unique result: 2
    at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
    at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
    at org.openbravo.dal.service.OBCriteria.uniqueResult(OBCriteria.java:166)
    at org.openbravo.idl.proc.JournalEntriesProcess.createJournalEntries(JournalEntriesProcess.java:269)
    at org.openbravo.idl.proc.JournalEntriesProcess.internalProcess(JournalEntriesProcess.java:99)
    at org.openbravo.idl.proc.IdlService.finishRecordProcess(IdlService.java:221)
    at org.openbravo.idl.initial_data_load.journalentryjob_0_1.JournalEntryJob.tFileInputDelimited_1Process(JournalEntryJob.java:6527)
    at org.openbravo.idl.initial_data_load.journalentryjob_0_1.JournalEntryJob.runJobInTOS(JournalEntryJob.java:6836)
    at org.openbravo.idl.initial_data_load.journalentryjob_0_1.JournalEntryJob.runJob(JournalEntryJob.java:6762)
    at org.openbravo.idl.proc.JournalEntriesProcess.runJob(JournalEntriesProcess.java:63)
    at org.openbravo.idl.proc.IdlServiceETL.executeImport(IdlServiceETL.java:20)
    at org.openbravo.idl.proc.IdlService.executeProcess(IdlService.java:103)
    at org.openbravo.idl.form.IDL_import.doPost(IDL_import.java:109)
Proposed Solution- Restrict user from defining multiple Account Type Dimension in General Ledger Configuration.
- Use setMaxResults(1) before criteriaAcctSchemaElement.uniqueResult() in class JournalEntriesProcess.java
TagsNo tags attached.
Attached Filescsv file icon Journal_Entries.csv [^] (614 bytes) 2017-12-11 10:49

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0037444 newTriage Platform Conn IndexOutOf BoundException raised in Journal Entries process in IDL module under some circumstances 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-12-11 10:42 AtulOpenbravo New Issue
2017-12-11 10:42 AtulOpenbravo Assigned To => Triage Finance
2017-12-11 10:43 AtulOpenbravo Proposed Solution updated
2017-12-11 10:49 AtulOpenbravo File Added: Journal_Entries.csv
2017-12-11 10:57 AtulOpenbravo Relationship added related to 0037444
2022-02-28 13:53 vmromanos Assigned To Triage Finance => Triage Platform Conn


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker