gvSIG bugs #2294
Problema al exportar una tabla a Postgres
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | High | Spent time: | - | |
Assignee: | Juan Lucas Domínguez | |||
Category: | Document table | |||
Target version: | 2.1.0-2219-testing | |||
Severity: | Add-on version: | |||
gvSIG version: | 2.1.0 | Add-on build: | ||
gvSIG build: | 2218 | Add-on resolve version: | ||
Operative System: | Linux | Add-on resolve build: | ||
Keywords: | Proyecto: | |||
Has patch: | No | Hito: | ||
Add-on name: | Unknown |
Description
Existe un problema al intentar exportar un documento tipo tabla a Postgres. Los pasos son los siguientes:
- Se crea un documento de tipo tabla
- Se carga un fichero CSV
- Menú tabla --> Exportar
- Indicamos nombre de tabla y campo que tiene el identificador único
- Aparece el siguiente error
- El log es el siguiente
DEBUG [AWT-EventQueue-2] (AbstractIndexedVisitable.java:55) - The visit, beggining on position 0, has been cancelled by the visitor: org.gvsig.fmap.dal.feature.paging.impl.FeaturePagingHelperImpl$3@8793df INFO [AWT-EventQueue-2] (DefaultActionInfo.java:249) - org.gvsig.exportto.app.mainplugin:org.gvsig.exportto.app.extension.ExporttoTableExtension.execute('Exportto') INFO [AWT-EventQueue-2] (Messages.java:124) - [org.gvsig.i18n.Messages] Cannot find translation for key 'input_pk_field_name'. DEBUG [Thread-26] (BaseTaskStatus.java:191) - Terminated status Export to JDBC execution in 1 ms INFO [Thread-26] (DefaultJExporttoServicePanel.java:258) - Error exporting the store org.gvsig.exportto.ExporttoServiceException: An error has been produced exporting a store at org.gvsig.exportto.swing.prov.jdbc.ExporrtoJDBCService.export(ExporrtoJDBCService.java:212) at org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel$Export.run(DefaultJExporttoServicePanel.java:256) Caused by: java.lang.RuntimeException: Name descriptor id duplicated. at org.gvsig.fmap.dal.feature.impl.DefaultEditableFeatureType.add(DefaultEditableFeatureType.java:163) at org.gvsig.fmap.dal.feature.impl.DefaultEditableFeatureType.add(DefaultEditableFeatureType.java:154) at org.gvsig.exportto.swing.prov.jdbc.ExporrtoJDBCService.export(ExporrtoJDBCService.java:127) ... 1 more
NOTA: Si se crea una conexión para exportar la tabla, no se guardan los datos y aparece el combo vacío.
History
#1 Updated by Álvaro Anguix about 10 years ago
- Assignee set to Juan Lucas Domínguez
- Priority changed from Normal to High
- Target version set to 2.1.0-2219-testing
#2 Updated by Juan Lucas Domínguez about 10 years ago
- Status changed from New to Fixed
Fixed management of ID field, improved GUI and fixed new layer/table document name.
#3 Updated by Álvaro Anguix about 10 years ago
- Status changed from Fixed to Closed