- Este debate tiene 6 respuestas, 2 mensajes y ha sido actualizado por última vez el hace 3 años, 6 meses por  DNG. DNG.
- 
		AutorEntradas
- 
		
			
				
22 abril, 2022 a las 2:22 pm #65043 DNGParticipante DNGParticipanteHola buen día, necesito crear una nueva compañía y al intentar crearla desde “configuración inicial de Cia”, cargándole el plan de cuentas que viene por defecto, me da un error y no me permite hacerlo. les dejo la info para ver si pueden ayudarme. ——————————- 
 ===========> DB.getSQLValue: select count(1) from information_schema.sequences where sequence_schema = ‘libertya’ and sequence_name = ‘seq_c_location’ [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:117)
 at org.openXpertya.util.CPreparedStatement.executeQuery(CPreparedStatement.java:162)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1340)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1328)
 at org.openXpertya.model.MSequence.getNextID(MSequence.java:1533)
 at org.openXpertya.util.DB.getNextID(DB.java:1990)
 at org.openXpertya.model.PO.saveNew(PO.java:2399)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1327)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> MLocation.saveNew: No NextID (-1) [128]
 ——————————-
 ===========> DB.executeUpdate: Update=UPDATE AD_OrgInfo SET C_Location_ID=0 WHERE AD_Org_ID=1010288 [Setup_1650637269214] [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1067)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1052)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1022)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1330)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> DB.saveError: DBExecuteErrorrr – ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción [128]
 ——————————-
 ===========> MSetup.createData: Location NOT inserted [128]
 ——————————-
 ===========> DB.getSQLValue: select count(1) from information_schema.sequences where sequence_schema = ‘libertya’ and sequence_name = ‘seq_ad_preference’ [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:117)
 at org.openXpertya.util.CPreparedStatement.executeQuery(CPreparedStatement.java:162)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1340)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1328)
 at org.openXpertya.model.MSequence.getNextID(MSequence.java:1533)
 at org.openXpertya.util.DB.getNextID(DB.java:1990)
 at org.openXpertya.model.MSetup.getNextID(MSetup.java:1898)
 at org.openXpertya.model.MSetup.createPreference(MSetup.java:1863)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1336)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> DB.executeUpdate: Update=INSERT INTO AD_Preference (AD_Preference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Attribute,Value,AD_Window_ID) VALUES (-1,1010248,0,’Y’,CURRENT_TIMESTAMP,0,CURRENT_TIMESTAMP,0,’C_Country_ID’,’119′,NULL) [Setup_1650637269214] [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1067)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1052)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1022)
 at org.openXpertya.model.MSetup.createPreference(MSetup.java:1877)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1336)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> DB.saveError: DBExecuteErrorrr – ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción [128]
 ——————————-
 ===========> MSetup.createPreference: Preference NOT inserted – C_Country_ID [128]
 ——————————-
 ===========> DB.getSQLValue: select count(1) from information_schema.sequences where sequence_schema = ‘libertya’ and sequence_name = ‘seq_m_warehouse’ [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:117)
 at org.openXpertya.util.CPreparedStatement.executeQuery(CPreparedStatement.java:162)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1340)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1328)
 at org.openXpertya.model.MSequence.getNextID(MSequence.java:1533)
 at org.openXpertya.util.DB.getNextID(DB.java:1990)
 at org.openXpertya.model.PO.saveNew(PO.java:2399)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1346)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> MWarehouse.saveNew: No NextID (-1) [128]
 ——————————-
 ===========> DB.executeUpdate: Update=INSERT INTO M_Warehouse_Acct (M_Warehouse_ID, C_AcctSchema_ID, AD_Client_ID,AD_Org_ID,IsActive, Created,CreatedBy,Updated,UpdatedBy ,W_Differences_Acct,W_InvActualAdjust_Acct,W_Inventory_Acct,W_Revaluation_Acct) SELECT 0, p.C_AcctSchema_ID, p.AD_Client_ID,0,’Y’, CURRENT_TIMESTAMP,100,CURRENT_TIMESTAMP,100,p.W_Differences_Acct,p.W_InvActualAdjust_Acct,p.W_Inventory_Acct,p.W_Revaluation_Acct FROM C_AcctSchema_Default p WHERE p.AD_Client_ID=1010248 AND NOT EXISTS (SELECT * FROM M_Warehouse_Acct e WHERE e.C_AcctSchema_ID=p.C_AcctSchema_ID AND e.M_Warehouse_ID=0) [Setup_1650637269214] [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1067)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1052)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1022)
 at org.openXpertya.model.PO.insert_Accounting(PO.java:3184)
 at org.openXpertya.model.MWarehouse.afterSave(MWarehouse.java:152)
 at org.openXpertya.model.PO.doAfterSave(PO.java:4054)
 at org.openXpertya.plugin.handlersPO.PluginPOAfterSaveHandler.processActualAction(PluginPOAfterSaveHandler.java:22)
 at org.openXpertya.plugin.handlersPO.PluginPOHandler.processPO(PluginPOHandler.java:72)
 at org.openXpertya.model.PO.handlePersistence(PO.java:4044)
 at org.openXpertya.model.PO.saveFinish(PO.java:1886)
 at org.openXpertya.model.PO.saveNew(PO.java:2403)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1346)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> DB.saveError: DBExecuteErrorrr – ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción [128]
 ——————————-
 ———–> MWarehouse.insert_Accounting: #-1 – Table=M_Warehouse_Acct from C_AcctSchema_Default. Sentence: INSERT INTO M_Warehouse_Acct (M_Warehouse_ID, C_AcctSchema_ID, AD_Client_ID,AD_Org_ID,IsActive, Created,CreatedBy,Updated,UpdatedBy ,W_Differences_Acct,W_InvActualAdjust_Acct,W_Inventory_Acct,W_Revaluation_Acct) SELECT 0, p.C_AcctSchema_ID, p.AD_Client_ID,0,’Y’, SysDate,100,SysDate,100,p.W_Differences_Acct,p.W_InvActualAdjust_Acct,p.W_Inventory_Acct,p.W_Revaluation_Acct FROM C_AcctSchema_Default p WHERE p.AD_Client_ID=1010248 AND NOT EXISTS (SELECT * FROM M_Warehouse_Acct e WHERE e.C_AcctSchema_ID=p.C_AcctSchema_ID AND e.M_Warehouse_ID=0) [128]
 ===========> MSetup.createData: Warehouse NOT inserted [128]
 ——————————-
 ===========> DB.getSQLValue: select count(1) from information_schema.sequences where sequence_schema = ‘libertya’ and sequence_name = ‘seq_m_locator’ [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:117)
 at org.openXpertya.util.CPreparedStatement.executeQuery(CPreparedStatement.java:162)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1340)
 at org.openXpertya.util.DB.getSQLValue(DB.java:1328)
 at org.openXpertya.model.MSequence.getNextID(MSequence.java:1533)
 at org.openXpertya.util.DB.getNextID(DB.java:1990)
 at org.openXpertya.model.PO.saveNew(PO.java:2399)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1356)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> MLocator.saveNew: No NextID (-1) [128]
 ——————————-
 ===========> MSetup.createData: Locator NOT inserted [128]
 ——————————-
 ===========> DB.executeUpdate: Update=UPDATE AD_ClientInfo SET C_BPartnerCashTrx_ID=1012631,M_ProductFreight_ID=0 WHERE AD_Client_ID=1010248 [Setup_1650637269214] [128]
 org.postgresql.util.PSQLException: ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción; State=25P02; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1067)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1052)
 at org.openXpertya.util.DB.executeUpdate(DB.java:1022)
 at org.openXpertya.model.MSetup.createData(MSetup.java:1372)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1587)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)
 caused by: org.postgresql.util.PSQLException: ERROR: inserción o actualización en la tabla «c_bpartner» viola la llave foránea «adclient_cbpartner»
 Detail: La llave (ad_client_id)=(1010248) no está presente en la tabla «ad_client».; State=23503; ErrorCode=0
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:136)
 at org.openXpertya.util.CPreparedStatement.executeUpdate(CPreparedStatement.java:258)
 at org.openXpertya.model.PO.saveNew(PO.java:2634)
 at org.openXpertya.model.PO.save(PO.java:1863)
 at org.openXpertya.model.MSetup.createEntities(MSetup.java:1551)
 at org.openXpertya.apps.form.VSetup.run(VSetup.java:856)
 at org.openXpertya.apps.form.FormFrame$2.run(FormFrame.java:473)——————————- 
 ===========> DB.saveError: DBExecuteErrorrr – ERROR: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción [128]
 ——————————-
 ===========> MSetup.createData: ClientInfo not updated [128]Servidor = localhost : 1099 (16-11-2020) 
 Tunnel=false, Objects=false, Process=false
 Base de datos = DESKTOP-7E1LCIG : 5432 / libertya
 Esquema = libertya
 Usuario = Supervisor
 Perfil = System Administrator
 Compañía = distri
 Organización = *
 Fecha = 2022-04-22 00:00:00
 Impresora = Microsoft Print to PDF
 Implementation-Title = CCTools Libertya
 Implementation-Version = Libertya 20201124-0746
 Specification-Vendor = (C) 2005-2006 FUNDESLE.
 Specification-Title = Herramientas de Cliente oxp
 Specification-Version = Libertya
 Implementation-URL = http://www.openxpertya.org
 Implementation-Vendor = SERVICIOS_DIGITALES
 OXPHome = XP
 Language=[Español (Argentina),Locale=es_AR,AD_Language=es_AR,DatePattern=DD.MM.YYYY,DecimalPoint=false]
 MClient[0-distri]
 Documentos Multi-idioma = true
 BaseLanguage = false/false
 PDF License=true
 Java HotSpot(TM) Client VM 25.131-b11
 Windows 10 10.0
 === Environment === 1023684508
 Libertya (r) Versión 21.0_16-11-2020 – Software Libre de Gestión- (c) 2020 DISYTEL; Implementación: Versión 21.0 20220422-0845 – ${env.CONSULTORA_OXP}
 DESKTOP-7E1LCIG/192.168.54.178
 CConnection[name=localhost{DESKTOP-7E1LCIG-libertya-libertya},AppsHost=localhost,AppsPort=1099,RMIoverHTTP=false,type=PostgreSQL,DBhost=DESKTOP-7E1LCIG,DBport=5432,DBname=libertya,BQ=false,FW=false,FWhost=,FWport=0,UID=libertya,PWD=cordoba2015]
 Database=PostgreSQL – 9.5.7 – Driver =PostgreSQL JDBC Driver – 42.0.0.jre6 – via DataSource
 DB_PostgreSQL[jdbc:postgresql://DESKTOP-7E1LCIG:5432/libertya?encoding=UTF-8]
 AppsServerOK=true, DatabaseOK=true=== Context === 
 #AD_Client_ID == 0
 #AD_Client_Name == distri
 #AD_Language == es_AR
 #AD_Org_ID == 0
 #AD_Org_Name == *
 #AD_PrintColor_ID == 100
 #AD_PrintFont_ID == 130
 #AD_PrintPaper_ID == 103
 #AD_PrintTableFormat_ID == 1000006
 #AD_Role_ID == 0
 #AD_Role_Name == System Administrator
 #AD_Session_ID == 1033749
 #AD_User_ID == 100
 #AD_User_Name == Supervisor
 #C_BP_Group_ID == 1010217
 #C_BankAccount_ID == 1010204
 #C_CashBook_ID == 1010195
 #C_ConversionType_ID == 114
 #C_Country_ID == 119
 #C_DocTypeTarget_ID == 1010779
 #C_Letra_Comprobante_ID == 1010161
 #C_Region_ID == 1000027
 #C_TaxCategory_ID == 1010048
 #C_Tax_ID == 1010282
 #C_UOM_ID == 100
 #CheckCuitControl == N
 #Date == 2022-04-22 00:00:00
 #GL_Category_ID == 1010098
 #IsPOSJournalActive == N
 #M_Locator_ID == 1010472
 #M_PriceList_ID == 1010597
 #M_Warehouse_ID == 1010241
 #POSJournalSupervisor == Y
 #PasswordExpirationActive == N
 #PrintPreview == Y
 #Printer == Microsoft Print to PDF
 #SalesRep_ID == 100
 #ShowAcct == N
 #ShowAdvanced == Y
 #ShowTrl == Y
 #StdPrecision == 2
 #SysAdmin == Y
 #UniqueKeyActive == N
 #User_Level == S
 #User_Org == 0
 #YYYY == Y
 $AmortizationAppPeriod == A
 $C_AcctSchema_ID == 1010016
 $C_Currency_ID == 118
 $Element_AC == Y
 $Element_BP == Y
 $Element_OO == Y
 $Element_PR == Y
 $FactAcctBalanceActive == Y
 $HasAlias == Y
 $M_Amortization_Method_ID == 1000001
 0|WindowName == Menú
 2|WindowName == Configuración Inicial de Compañía
 3|WindowName == Configuración Inicial de Compañía
 4|WindowName == Configuración Inicial de Compañía
 AutoCommit == Y
 P1000036|AD_FTDoc == 1002145
 P1000064|C_BankAccount_ID == 1010205
 P1010096|M_Warehouse_ID == 1010241
 P1010096|ProductChangePriceVariation == 30
 P1010098|InventoryKind == IO
 P103|Type == S
 P123|Batch_Payment_Rule == -1
 P123|C_ElectronicPaymentBranch_ID == -1
 P139|M_Warehouse_ID == 1010241
 P143|AD_Org_ID == 1010053
 P143|C_DocTypeTarget_ID == 1010532
 P143|C_Tax_ID == 1010085
 P143|M_Warehouse_ID == 1010241
 P165|Classname == org.openXpertya.JasperReport.LaunchInOut
 P169|M_Warehouse_ID == 1010241
 P183|C_DocTypeTarget_ID == 1010509
 P183|C_Region_Delivery_ID == 1000094
 P184|M_Warehouse_ID == 1010241
 P189|DataType == S
 P194|C_Charge_ID == -1
 P260|M_AttributeSet_ID == -1
 P344|M_CostElement_ID == 1010016
 P344|M_CostType_ID == 1010016
 P|AllowExchangeDifference == 0.01
 P|AuditReferenceCurrencyISOCode == USD
 P|AutoCommit == Y
 P|AutoNew == Y
 P|C_DocType_ID == 1010521
 P|C_Dockey == 018a9567ea15470312c40d3e5d6bbcd4
 P|C_Region_ID_FACTURA_ARCIBA == 1000082
 P|Client == 0
 P|ConversationSecurityPolicy == E
 P|DIF_CAMBIO_ARTICULO == DIFCAMBIO
 P|DIF_CAMBIO_PTO_VENTA == 1
 P|DIF_CAMBIO_TARIFA_CREDITO == DIF_DE_CAMBIO_CREDITO
 P|DIF_CAMBIO_TARIFA_DEBITO == DIF_DE_CAMBIO_DEBITO
 P|DeclaracionValores_FilterProductValues == RECUPERO;RECHAZO
 P|DocAction == CO
 P|EmailValidControl_BPLocation == V
 P|EmailValidControl_User == V
 P|FindAddEndWildcard_Description == N
 P|FindAddEndWildcard_Documentno == N
 P|FindAddEndWildcard_Name == N
 P|FindAddEndWildcard_Value == N
 P|FiscalDescription_VoidedDocument == ANULADO
 P|InfoMaxRowsAllowed == 1000
 P|InfoRowCountMethod == C
 P|LOCAL_AR == Y
 P|L_AR_CFMontoMaximo == 1000
 P|L_AR_LibroIVA_CFMontoMaximoAgrupacion == 1000
 P|L_AR_MaxOrderLineQty == 999
 P|Language == Español (Argentina)
 P|LogTransactionEvents == N
 P|LookupMaxRowsAllowed == 1000
 P|M_Warehouse_ID == 1010241
 P|Maintenance_Inventory == 6
 P|MantenimientoPadron == 3
 P|MenuCollapsed == N
 P|MultiOrgTransactionFilterRulesPropertiesFileLocation == /ServidorOXP/utils/replicacion/filters/MultiOrgTransactionFilterRules.properties
 P|NCFiscal_ComprobanteOriginal_ClaveTiposDocumentoPedido == SOSOTD;SOSOTH
 P|OpenTrxLowerLimit == 6
 P|OpenTrxTimeOutMS == 3600000
 P|OpenTrxUpperLimit == 10
 P|Organization == 0
 P|POSCashJounal_ValidDiff == 0.5
 P|PathPadronCSV == C:\\descarga
 P|PorcentajeDeAumentoDePrecio == 100
 P|ReasonVoid == Anulación
 P|RejectedCheckDocTypeKey == RCD
 P|ReplicationEventsActive == Y
 P|Role == 0
 P|SinPercepcionNCManual == ‘N’
 P|SkipColumnsFilterRulesPropertiesFileLocation == /ServidorOXP/utils/replicacion/filters/SkipColumnsFilterRules.properties
 P|TransferDueDateDays == 1
 P|URL_IMAGE_OP == URL_IMAGE_OP
 P|URL_IMAGE_RC == URL_IMAGE_RC
 P|WAIT_FOR_WORKER_SECONDS == 0
 P|WSFEX_PROVIDER_CLASS == org.libertya.locale.ar.electronicInvoice.utils.LYEIWSFEX
 P|WSFE_PROVIDER_CLASS == org.libertya.locale.ar.electronicInvoice.utils.LYEIWSFE
 P|Warehouse == 0
 P|WindowTabCollapsible == Y
 P|WindowTabPlacement == Left
 java.naming.provider.url == jnp://localhost:1099=== System === 
 awt.toolkit=sun.awt.windows.WToolkit
 file.encoding=UTF-8
 file.encoding.pkg=sun.io
 file.separator=\
 java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
 java.awt.printerjob=sun.awt.windows.WPrinterJob
 java.class.path=C:\Users\feded\AppData\Local\Temp\temp84.jar;C:\ServidorOXP\.\lib\batik-awt-util.jar;C:\ServidorOXP\.\lib\batik-dom.jar;C:\ServidorOXP\.\lib\batik-svggen.jar;C:\ServidorOXP\.\lib\batik-util.jar;C:\ServidorOXP\.\lib\batik-xml.jar;C:\ServidorOXP\.\lib\CMPCS.jar;C:\ServidorOXP\.\lib\JasperReports.jar;C:\ServidorOXP\.\lib\jboss.jar;C:\ServidorOXP\.\lib\jsp-api-2.0.jar;C:\ServidorOXP\.\lib\oracle.jar;C:\ServidorOXP\.\lib\OXP.jar;C:\ServidorOXP\.\lib\OXPApps.jar;C:\ServidorOXP\.\lib\OXPInstall.jar;C:\ServidorOXP\.\lib\OXPRoot.jar;C:\ServidorOXP\.\lib\OXPSLib.jar;C:\ServidorOXP\.\lib\OXPXLib.jar;C:\ServidorOXP\.\lib\postgresql.jar;C:\ServidorOXP\.\lib\sqlj.jar;C:\ServidorOXP\.\lib\sqlServer.jar;C:\ServidorOXP\.\lib\sybase.jar;C:\ServidorOXP\.\lib\XOXPTools.jar;C:\ServidorOXP\.\lib\swing-layout-1.0.jar;C:\ServidorOXP\.\lib\PDFRenderer.jar;C:\ServidorOXP\.\lib\JasperReports.jar;
 java.class.version=52.0
 java.endorsed.dirs=C:\Java\jdk1.8.0_131\jre\lib\endorsed
 java.ext.dirs=C:\Java\jdk1.8.0_131\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
 java.home=C:\Java\jdk1.8.0_131\jre
 java.io.tmpdir=C:\Users\feded\AppData\Local\Temp\
 java.library.path=C:\Java\jdk1.8.0_131\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\PostgreSQL\9.5bin;C:\Java\jdk1.8.0_131\bin;C:\Java\jdk1.8.0_131\jre\bin;C:\Java\jdk1.8.0_131\jre\bin\client;C:\PostgreSQL\9.5\bin;C:\Users\feded\AppData\Local\Microsoft\WindowsApps;;.
 java.runtime.name=Java(TM) SE Runtime Environment
 java.runtime.version=1.8.0_131-b11
 java.specification.name=Java Platform API Specification
 java.specification.vendor=Oracle Corporation
 java.specification.version=1.8
 java.vendor=Oracle Corporation
 java.vendor.url=http://java.oracle.com/
 java.vendor.url.bug=http://bugreport.sun.com/bugreport/
 java.version=1.8.0_131
 java.vm.info=mixed mode
 java.vm.name=Java HotSpot(TM) Client VM
 java.vm.specification.name=Java Virtual Machine Specification
 java.vm.specification.vendor=Oracle Corporation
 java.vm.specification.version=1.8
 java.vm.vendor=Oracle Corporation
 java.vm.version=25.131-b11
 line.separator=os.arch=x86 
 os.name=Windows 10
 os.version=10.0
 path.separator=;
 sun.arch.data.model=32
 sun.awt.enableExtraMouseButtons=true
 sun.boot.class.path=C:\Java\jdk1.8.0_131\jre\lib\resources.jar;C:\Java\jdk1.8.0_131\jre\lib\rt.jar;C:\Java\jdk1.8.0_131\jre\lib\sunrsasign.jar;C:\Java\jdk1.8.0_131\jre\lib\jsse.jar;C:\Java\jdk1.8.0_131\jre\lib\jce.jar;C:\Java\jdk1.8.0_131\jre\lib\charsets.jar;C:\Java\jdk1.8.0_131\jre\lib\jfr.jar;C:\Java\jdk1.8.0_131\jre\classes
 sun.boot.library.path=C:\Java\jdk1.8.0_131\jre\bin
 sun.cpu.endian=little
 sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
 sun.desktop=windows
 sun.io.unicode.encoding=UnicodeLittle
 sun.java.command=org.openXpertya.OpenXpertya
 sun.java.launcher=SUN_STANDARD
 sun.jnu.encoding=Cp1252
 sun.management.compiler=HotSpot Client Compiler
 sun.os.patch.level=
 suppressSwingDropSupport=true
 user.country=AR
 user.dir=C:\ServidorOXP
 user.home=C:\Users\feded
 user.language=es
 user.name=feded
 user.script=
 user.timezone=America/Buenos_Aires
 user.variant=25 abril, 2022 a las 2:34 pm #65045 Federico CristinaSuperadministrador Federico CristinaSuperadministradorBuenas, estás intentando crear una nueva compañía a fin de contar con dos compañías distintas dentro de una misma instancia de Libertya? En general lo que se hace es utilizar directamente la compañía Libertya, adecuando su razón social, información impositiva, etc.; en lugar de crear una nueva compañía. Saludos! 25 abril, 2022 a las 3:50 pm #65047 DNGParticipante DNGParticipanteBuen día, gracias por responder!!! ya tengo una compañía funcionando (reemplace a Libertya en su momento) y necesito agregar otra distinta. Es posible? 26 abril, 2022 a las 12:24 pm #65049 Federico CristinaSuperadministrador Federico CristinaSuperadministradorBuenas, Probablemente puedas utilizar la opción Crear Compañía desde Plantilla, seleccionando Libertya (o el nombre que tenga si es que fue modificado) como plantilla. IMPORTANTE: Previo a estas actividades se sugiere realizar una copia de respaldo de la base de datos. Tené en cuenta que si bien es posible contar con 2 compañías en una misma instancia de Libertya, hay una salvedad. Los upgrades de versión realizan cambios: – Estructurales de la base de datos (afecta a Libertya por completo) 
 – En el diccionario de datos a nivel sistema (afecta a Libertya por completo)
 – Sobre permisos de acceso a ventanas, entradas en los árboles de menú, eventuales artículos o entidades comerciales de índole impositiva, etc. (afecta sólo a la compañía Libertya).Esto se debe a que los upgraders de versión no conocen las posibles compañías que un usuario pueda llegar a crear, y en ese caso será necesario crear estas entradas manualmente. Una alternativa a este escenario es contar con otra instancia de Libertya, ya sea en otra base de datos distinta en el mismo servidor o bien en un servidor aparte. Saludos! 
 Federico26 abril, 2022 a las 12:34 pm #65050 DNGParticipante DNGParticipanteBuen dia, gracias nuevamente!!! perfecto, ahora te consulto como puedo hacer para que tenga otra base de datos en el mismo servidor? hay info en algun lado al respecto? desde ya gracias! 2 mayo, 2022 a las 1:42 pm #65052 Federico CristinaSuperadministrador Federico CristinaSuperadministradorBuenas, si no necesitás utilizar el servidor de aplicaciones LY, tener 2 bases de datos en un mismo servidor simplemente implica crear una nueva base de datos (con un nombre distinto claro) y restaurar allí un dump de Libertya que coincida con la versión de binarios a utilizar. Luego al iniciar el cliente de escritorio Libertya, se puede especificar el nombre de la base de datos en la configuración de conexión. Por el contrario, si necesitás que cada instancia tenga su propio servidor de aplicaciones Libertya, deberás tener 2 directorios con los binarios, por ejemplo ServidorOXP1 y ServidorOXP2. Luego deberás configurar para cada caso el nombre de la base de datos, los puertos acordemente, dado que cada servidor LY debe escuchar en puertos distintos, etc. desde Configurar.sh / Configurar.bat. No es una actividad muy trivial a realizar. Una alternativa adicional es que virtualizes las instancias, por ejemplo con VirtualBox; en donde en un mismo server físico tengas dos Máquinas Virtuales, cada una corriendo su propia instancia de Libertya. Slds! 3 mayo, 2022 a las 11:29 pm #65057 DNGParticipante DNGParticipanteExcelente muchas gracias!!! 
- 
		AutorEntradas
- Debes estar registrado para responder a este debate.