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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016313
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 01. General setupminoralways2011-03-15 17:372011-03-17 00:00
ReporteradrianromeroView Statuspublic 
Assigned Toadrianromero 
PriorityhighResolutionfixedFixed in Version3.0RC6
StatusclosedFix in branchFixed in SCM revision8965c2e90963
ProjectionnoneETAnoneTarget Version
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016313: When importing a big number of POS orders (500 different orders with 2 lines each) an appears

DescriptionWhen importing a big number of POS orders (500 different orders with 2 lines each) an appears. The error is:
ERROR org.openbravo.erpCommon.ad_process.ImportProcessData - SQL error in query: UPDATE AD_PInstance SET IsProcessing='N', Updated=to_date(now()), Result=to_number(?), ErrorMsg=TO_CHAR(?) WHERE AD_PInstance_ID = ?Exception:org.postgresql.util.PSQLException: ERROR: value too long for type character varying(2000)
ERROR org.openbravo.erpCommon.ad_process.ImportProcess - Unable to unlock instance - javax.servlet.ServletException: @CODE=0@ERROR: value too long for type character varying(2000)

The problem is in the ErrorMsg column, because the message is bigger than the column size.
Steps To Reproduce- Master Data Management || Import Data || Import Orders
- Import 1000 lines (500 different orders)
- The process fails
Proposed SolutionThe column type MsgText could be changed to LONG
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks backport 00159832.50MP28 closedadrianromero When importing a big number of POS orders (500 different orders with 2 lines each) an appears 

-  Notes
(0034909)
hgbot (developer)
2011-03-15 17:44

Repository: erp/devel/pi
Changeset: 8965c2e909635e44e7e63b28b3a5a4d3761b8dcd
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Mar 15 17:44:07 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8965c2e909635e44e7e63b28b3a5a4d3761b8dcd [^]

Fixes issue 0016313: When importing a big number of POS orders (500 different orders with 2 lines each) an appears
It has been protected the import code to not to save more than 2000 characters in the ErrorMsg field

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_process/ImportOrder.java
M src/org/openbravo/erpCommon/ad_process/ImportProcess.java
---
(0034910)
adrianromero (manager)
2011-03-15 17:44

*Testing the issue

Follow the steps to test and verify that now it does not appear the error and the message generated is less than 2000 characters.

* Other areas affected

No other areas affected. It has only been modified the Import classes.

It has been implemented this fix instead of changing the type of the ErrorMsg field to long because the implemented fix is a local fix that does not affect any other area. To change the type of the ErrorMsg field would be more risky because it will affect globally to the execution of processes all over the application
(0034966)
jonalegriaesarte (reporter)
2011-03-16 19:08

Verified

- Issue History
Date Modified Username Field Change
2011-03-15 17:37 adrianromero New Issue
2011-03-15 17:37 adrianromero Assigned To => adrianromero
2011-03-15 17:37 adrianromero Modules => Core
2011-03-15 17:37 adrianromero Issue generated from 0015983
2011-03-15 17:37 adrianromero Relationship added blocks 0015983
2011-03-15 17:44 hgbot Checkin
2011-03-15 17:44 hgbot Note Added: 0034909
2011-03-15 17:44 hgbot Status new => resolved
2011-03-15 17:44 hgbot Resolution open => fixed
2011-03-15 17:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8965c2e909635e44e7e63b28b3a5a4d3761b8dcd [^]
2011-03-15 17:44 adrianromero Note Added: 0034910
2011-03-16 19:08 jonalegriaesarte Note Added: 0034966
2011-03-16 19:08 jonalegriaesarte Status resolved => closed
2011-03-16 19:08 jonalegriaesarte Fixed in Version => 3.0RC6
2011-03-17 00:00 anonymous sf_bug_id 0 => 3217700


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker