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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016001
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Advanced Paymentsmajoralways2011-02-17 22:482014-04-01 21:48
ReportermalsasuaView Statuspublic 
Assigned Toeduardo_Argal 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision80a7075c7784
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0016001: error in add payment process when there are more than 1000 financial accounts

Descriptionif there are more than 1000 financial accounts, when you run the process add payment in Sales invoice window, error is returned:
ORA-01795: el número máximo de expresiones en una lista es 1000
the error is reproducible in ORACLE database. In postgres it works fine
Steps To Reproduce. ORACLE DATABASE

. create 1000 financial accounts with payment method "p1"
Financial Management || Receivables & Payables || Transactions || Financial Account || Account

. create new sales invoice with payment method "p1"
Sales Management || Transactions || Sales Invoice || Header
. process invoice
. run add payment

error is returned

the hibernate log is
DEBUG org.hibernate.SQL - select this_.Fin_Financial_Account_ID as Fin1_697_0_, this_.AD_Client_ID as AD2_697_0_, this_.AD_Org_ID as AD3_697_0_, this_.Created as Created697_0_, this_.Createdby as Createdby697_0_, this_.Updated as Updated697_0_, this_.Updatedby as Updatedby697_0_, this_.Isactive as Isactive697_0_, this_.C_Currency_ID as C9_697_0_, this_.Name as Name697_0_, this_.Description as Descrip11_697_0_, this_.Type as Type697_0_, this_.C_Bpartner_ID as C13_697_0_, this_.C_Location_ID as C14_697_0_, this_.Routingno as Routingno697_0_, this_.Swiftcode as Swiftcode697_0_, this_.Codebank as Codebank697_0_, this_.Codebranch as Codebranch697_0_, this_.Bank_Digitcontrol as Bank19_697_0_, this_.INE_Number as INE20_697_0_, this_.Account_Digitcontrol as Account21_697_0_, this_.Codeaccount as Codeacc22_697_0_, this_.Accountno as Accountno697_0_, this_.Currentbalance as Current24_697_0_, this_.InitialBalance as Initial25_697_0_, this_.Creditlimit as Creditl26_697_0_, this_.Iban as Iban697_0_, this_.Isdefault as Isdefault697_0_, this_.FIN_Matching_Algorithm_ID as FIN29_697_0_ from FIN_Financial_Account this_ where this_.AD_Org_ID in (?, ?, ?) and this_.C_Currency_ID=? and this_.Fin_Financial_Account_ID in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.AD_Client_ID in (?, ?) and this_.Isactive=?

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0017616 newmirurita Modules error in add payment process when there are more than 1000 financial accounts 
related to defect 00208583.0MP13 closedioritzCia Openbravo ERP Error "maximum number of expressions in a list is 1000" in getFilteredPaymentMethods method 

-  Notes
(0034275)
adrianromero (manager)
2011-02-18 16:36

The problem is in the following method that builds the SQL sentence that fails:

https://code.openbravo.com/erp/devel/pi/file/ea2c952a026e/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java#l924 [^]
(0034281)
hgbot (developer)
2011-02-21 14:15

Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: 29f5f3730ea8f3eb5a68df60d4281a9e59d7511f
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Feb 21 14:15:11 2011 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/29f5f3730ea8f3eb5a68df60d4281a9e59d7511f [^]

Fixes issue 0016001: error in add payment process when there are more than 1000 financial accounts
It has been splitted the long IN expresion in several IN expressions joined by OR to not go over 1000 values inside the IN expression

---
M src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
---
(0034286)
hgbot (developer)
2011-02-21 17:00

Repository: erp/devel/pi
Changeset: 80a7075c77845a9ae8d9b20bcbce4eaf6af9769c
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Feb 21 16:59:34 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/80a7075c77845a9ae8d9b20bcbce4eaf6af9769c [^]

Fixes issue 0016001: error in add payment process when there are more than 1000 financial accounts
It has been splitted the long IN expresion in several IN expressions joined by OR to not go over 1000 values inside the IN expression

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
---
(0065767)
plujan (manager)
2014-04-01 21:48

Marked as Closed since it was in Resolved for too long

- Issue History
Date Modified Username Field Change
2011-02-17 22:48 malsasua New Issue
2011-02-17 22:48 malsasua Assigned To => adrianromero
2011-02-17 23:24 malsasua Priority normal => urgent
2011-02-18 16:36 adrianromero Note Added: 0034275
2011-02-21 14:15 hgbot Checkin
2011-02-21 14:15 hgbot Note Added: 0034281
2011-02-21 14:15 hgbot Status new => resolved
2011-02-21 14:15 hgbot Resolution open => fixed
2011-02-21 14:15 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/29f5f3730ea8f3eb5a68df60d4281a9e59d7511f [^]
2011-02-21 17:00 hgbot Checkin
2011-02-21 17:00 hgbot Note Added: 0034286
2011-02-21 17:00 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/29f5f3730ea8f3eb5a68df60d4281a9e59d7511f [^] => http://code.openbravo.com/erp/devel/pi/rev/80a7075c77845a9ae8d9b20bcbce4eaf6af9769c [^]
2011-06-03 10:58 dalsasua Assigned To adrianromero => dalsasua
2011-06-13 12:25 malsasua Relationship added related to 0017616
2011-06-28 10:43 dalsasua Assigned To dalsasua => eduardo_Argal
2012-06-25 17:16 maite Relationship added related to 0020858
2014-04-01 21:48 plujan Note Added: 0065767
2014-04-01 21:48 plujan Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker