Problem with Validation of ZUGFeRD Structure

Dear all,
we have got some problems with the validation of ZUGFerd Format especially with "xRechnung"

As you recommended we build the XML-Structure and attach this file to the PDF.
The PDF-Output is set to PDF/A3-Format in the Reportbuilder.

We got the following error message:

2020-12-01 11:36:18 [INFO] Loading scenario content from file:/opt/validator-master/
2020-12-01 11:36:19 [INFO] Loading XSLT script from resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl
2020-12-01 11:36:23 [INFO] Loading XSLT script from resources/xrechnung/1.2.0/xsl/XRechnung-UBL-validation-Invoice.xsl
2020-12-01 11:36:23 [INFO] Loading XSLT script from resources/xrechnung-report.xsl
2020-12-01 11:36:24 [INFO] Loading XSLT script from resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl
2020-12-01 11:36:25 [INFO] Loading XSLT script from resources/xrechnung/1.2.0/xsl/XRechnung-UBL-validation-CreditNote.xsl
2020-12-01 11:36:25 [INFO] Loading XSLT script from resources/xrechnung-report.xsl
2020-12-01 11:36:25 [INFO] Loading XSLT script from resources/cii/16b/xsl/EN16931-CII-validation.xsl
2020-12-01 11:36:26 [INFO] Loading XSLT script from resources/xrechnung/1.2.0/xsl/XRechnung-CII-validation.xsl
2020-12-01 11:36:26 [INFO] Loading XSLT script from resources/xrechnung-report.xsl
2020-12-01 11:36:26 [INFO] Setup completed in 10121ms

2020-12-01 11:36:26 [INFO] Checking content of /tmp/xrechnung/5fc62aaf6921f.xml
2020-12-01 11:36:26 [INFO] Step DefaultCheck$$Lambda$117/0x0000000800364040 finished in 0ms
Error on line 1 column 1
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
2020-12-01 11:36:26 [INFO] Parsing war nicht erfolgreich: null -> [IOException while reading resource /tmp/xrechnung/5fc62aaf6921f.xml: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. At row null at pos null]
2020-12-01 11:36:26 [INFO] Step DocumentParseAction finished in 12ms
2020-12-01 11:36:26 [ERROR] Error processing input /tmp/xrechnung/5fc62aaf6921f.xml: IOException while reading resource /tmp/xrechnung/5fc62aaf6921f.xml: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
2020-12-01 11:36:26 [INFO] Finished check of /tmp/xrechnung/5fc62aaf6921f.xml in 12ms

2020-12-01 11:36:26 [INFO] Processing 1 object(s) completed in 70ms

Can you please help with this topic?

Best regards

Christopher

Comments

  • Dear Christopher,

    Did you try setting up like indicated in http://rbwiki.digital-metaphors.com/output/pdf/pdfa3-zugferd/ ?
    On my side, it does work to build a "Factur-X" and the generate PDF/A3b complies with verapdf validator.
  • I apologize for not responding to this thread. This was being handled via email as well.

    ReportBuilder simply provides the PDF/A-3 container for the ZUGFeRD XML invoice. The errors received in the original post dealt with the attached .xml file rather than the PDF.

    That being said, a ZUGFeRD PDF/A-3 file is slightly different from a standard PDF/A-3. The main differences are the metadata entries that define various aspects of the attached invoice.

    Currently ReportBuilder natively supports version 1.0 of these metadata entries. It is possible to use the OnGetMetadata event of the PDF device to manually edit these entries as needed.

    http://rbwiki.digital-metaphors.com/output/pdf/how-to-customize-pdfa-metadata/

    It is on our list of possible enhancements to provide native support for ZUGFeRD 2.x for a future release. (including 2.1.1 with xRechnung compliance).


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.