Bug #2892
Import wrong 'noname' empty columns in metadata.ods
| Statut: | Closed | Début: | 10/09/2020 | |
|---|---|---|---|---|
| Priorité: | High | Echéance: | ||
| Assigné à: | - | % réalisé: | 100% |
|
| Catégorie: | Import | Temps passé: | - | |
| Version cible: | TXM 0.8.2 |
Description
Console output :
-- IMPORTER - Reading source files
Warning: the 8the column name is empty
Warning: the 9the column name is empty
...
-- INJECTING METADATA - [txmid, textorder, date, title, terms, pages, noname, noname] in texts of directory /home/sheiden/TXM-0.8.1/corpora/HOBBES-10-0/txm/HOBBES-10-0
004 ....
Sorting texts using the 'textorder' metadata values: [A86417:3, A43978:2, A43998:4, A43995:1]
-- COMPILING - Building Search Engine indexes
-- Scanning structures&properties to create for 4 texts...
004 .Error while processing A43995 (file: /home/sheiden/TXM-0.8.1/corpora/HOBBES-10-0/txm/HOBBES-10-0/A43995.xml) text XML-TXM file : null. Error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[135,140]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributeNotUnique?text&noname
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[135,140]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributeNotUnique?text&noname
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604)
at org.txm.importer.SAttributesListener.scanFile(SAttributesListener.java:221)
at org.txm.importer.SAttributesListener$scanFile.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at org.txm.scripts.importer.xtz.XTZCompiler.doScanStep(XTZCompiler.groovy:120)
at org.txm.scripts.importer.xtz.XTZCompiler._process(XTZCompiler.groovy:91)
at org.txm.importer.xtz.Compiler.process(Compiler.java:66)
at org.txm.importer.xtz.ImportModule$1.run(ImportModule.java:211)
Error while importing corpus during 'compiler' step, reason=not set.
See sample file attached.
Solution¶
The metadata build step creates the "noname" properties when a column name is empty.
The solution is to skip the column and display a warning message.
Révisions associées
fix the "noname" empty metadata values refs #2892
Historique
#1 Mis à jour par Serge Heiden il y a environ 5 ans
- Fichier metadata.ods ajouté
#2 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 80
#3 Mis à jour par Serge Heiden il y a plus de 4 ans
- Description mis à jour (diff)
#4 Mis à jour par Sebastien Jacquot il y a presque 2 ans
- % réalisé changé de 80 à 100
#5 Mis à jour par Sebastien Jacquot il y a presque 2 ans
- Statut changé de New à Closed