XML Patron Export adds invalid XML for patron note when note is blank
- Product: Voyager
- Product Version: 9.2.1
- Relevant for Installation Type: Dedicated-Direct, Direct, Local
Symptoms
XML Patron Import using file generated by XML Patron Export results in error:
ERROR: 'org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 60; cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'note', because the {nillable} property of 'note' is false.'
Input file is not well formed (line 2 column 60): cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'note', because the {nillable} property of 'note' is false.
Defect Status
Issue VYG-7133 is resolved in Voyager 10.1.0
Replication Steps
- Find a patron record with a blank patron note (or add a patron note with no content in note).
- Run an XML patron export that will capture that patron record.
- Note the XML for the patron note:
<patronNote> <note xsi:nil="true"/> <type>General</type> </patronNote>
- Using the same file, run XML patron import to add the records back into the database.
- Resulting error:
ERROR: 'org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 60; cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'note', because the {nillable} property of 'note' is false.'
Input file is not well formed (line 2 column 60): cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'note', because the {nillable} property of 'note' is false.
Workaround
Delete blank patron notes from patron records in Circulation.
- Article last edited: 29-Nov-2016