org.openbravo.base.exception.OBException: Error in OrderLoader: org.hibernate.exception.DataException: could not execute batch at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:471) at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:200) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:155) at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:87) at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:54) at org.openbravo.retail.posterminal.importprocess.OrderImportEntryProcessor$OrderLoaderRunnable.processEntry(OrderImportEntryProcessor.java:64) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:373) at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:294) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute batch at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188) at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1490) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1470) at org.openbravo.dal.service.OBDal.flush(OBDal.java:265) at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:462) ... 12 more Caused by: org.hibernate.exception.DataException: could not execute batch at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:118) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113) at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:129) at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:105) at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:147) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.getBatch(JdbcCoordinatorImpl.java:201) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3155) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3690) at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:90) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:478) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:356) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39) at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1484) ... 15 more Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, Description, IsDelivered, IsInvoiced, IsPrinted, IsSelected, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, AD_OrgTrx_ID, Generatetemplate, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, EM_Obdisc_Addpack, Iscashvat, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Poss_Businessdate, EM_Decposl_Beginsale, Confirmcancelandreplace, EM_Decposl_Endsale, EM_Obpos_Applications_ID, EM_Obpos_Sendemail, EM_DECKT_Opened, EM_DECKT_Countopened, EM_Obpos_App_Cashup_ID, EM_Obpos_Createdabsolute, EM_OBPOS_NotInvoiceOnCashUp, EM_Obpos_Isdeleted, Iscancelled, EM_Obpos_Islayaway, EM_Obpos_Prepaymentamt, EM_Obpos_Prepaymentlimitamt, EM_Obpos_Prepaymentlaylimitamt, EM_Saft_Registerorder, EM_Obpos_Rounding_Amount, EM_OBRACR_HasError, EM_Obrtser_Znumber, EM_Obrtser_Documentnumber, EM_Obrtser_Fiscalboxid, EM_Obrtser_Registeruuid, EM_Obrtser_Refznumber, EM_Obrtser_Refdocumentnumber, EM_Obposis_Customer_Invoice, EM_Obrtser_Refregisteruuid, EM_Obrtser_Refdocdatetime, EM_Obmtr_Selected, EM_Dectd_Printmode, EM_Dectd_Email, EM_Decsc_Excode, EM_Decposl_Message_ID, EM_Decrtse_Origrefdocno, EM_Orirep_Isprinted, C_Order_ID) values ('BA598267A1564ED4AC2C0EB6E2E1DCC5', 'F3FFA7D7D6CD41A092165038BF2EACE1', 'Y', '2021-11-08 17:56:43.256+01', '1B07183B892D4522A8B722C1FCF44504', '2021-11-08 17:56:44.672+01', '1B07183B892D4522A8B722C1FCF44504', 'Y', '231204/0005098', 'CO', '--', 'N', 'Y', '4AB1BD3CEB1B4EAF9D3F144491DC3E87', '4AB1BD3CEB1B4EAF9D3F144491DC3E87', '', 'Y', 'N', 'Y', 'N', '2021-11-08 00:00:00+01', '2021-11-08 00:00:00+01', '2021-11-08 00:00:00+01', 'CFC5BF28C0904B64B404D22BFACC418A', '8BB991F87BFC459ABA87E19FB665E029', '8BB991F87BFC459ABA87E19FB665E029', 'N', '102', 'B', '32B22A5A74B54241BD9CC7AB5D7B499E', 'I', 'A', 'I', 'P', '0', '5', '-20.48', '-24.99', '1327CFADA36C41489D7844ABAB5EE6E4', 'FCBB0E655D1C4555B4E1A1FF78882538', 'Y', 'N', '5F41D6FD377A46F5BD61F5F7756BEBB0', 'N', 'N', 'F3FFA7D7D6CD41A092165038BF2EACE1', 'N', 'N', 'A361C532513D46C5835496D330F6B0AE', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', '2021-08-19 00:00:00+02', '2021-11-08 17:56:21.22+01', 'N', '2021-11-08 17:56:38.685+01', '3C41E285A3124E11A8BAD7829FE01724', 'N', 'N', '0', '389D1E786494436EDBCF88025E81D10C', '2021-11-08 17:56:43.256+01', 'N', 'N', 'N', 'N', '-24.99', '-24.99', 0, 'N', '0', 'N', 800, 67, '53SNS303814', '23120004', 660702312001, 1, 'N', '00000000', '08/11/2021 17:56', 'N', 'print', '', '660702312312040000509820211108175643', '478DB6E77854C6135A95C1884B3AB50E', '', 'N', '81C1AD976C9586E08430670231328013') was aborted: ERROR: numeric field overflow Detail: A field with precision 10, scale 0 must round to an absolute value less than 10^10. Call getNextException to see other errors in the batch. at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:145) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2179) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:479) at org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:835) at org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1556) at jdk.internal.reflect.GeneratedMethodAccessor269.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114) at com.sun.proxy.$Proxy75.executeBatch(Unknown Source) at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:119) ... 26 more Caused by: org.postgresql.util.PSQLException: ERROR: numeric field overflow Detail: A field with precision 10, scale 0 must round to an absolute value less than 10^10. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) ... 35 more