exception #8

Closed
opened 2025-11-12 11:50:02 +00:00 by mdsfred · 2 comments
Member
Traceback (most recent call last):
  File "/lib/python3.12/site-packages/facturx/facturx.py", line 204, in xml_check_xsd
    official_schema.assertValid(t)
  File "src/lxml/etree.pyx", line 3813, in lxml.etree._Validator.assertValid
lxml.etree.DocumentInvalid: Element '{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}Name': This element is not expected. Expected is ( {urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}TypeCode )., line 10

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/lib/python3.12/site-packages/trytond/wsgi.py", line 109, in dispatch_request
    return endpoint(request, **request.view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/trytond/protocols/dispatcher.py", line 43, in rpc
    return methods.get(request.rpc_method, _dispatch)(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/trytond/wsgi.py", line 75, in wrapper
    return func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/trytond/protocols/wrappers.py", line 200, in wrapper
    return func(request, pool, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/trytond/protocols/dispatcher.py", line 196, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/trytond/modules/account_invoice_xrechnung/xreport.py", line 81, in execute
    invoice_pdf = cls.get_zugferd_pdf(invoice, invoice_xml)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/trytond/modules/account_invoice_xrechnung/xreport.py", line 168, in get_zugferd_pdf
    zugferd_pdf = generate_from_binary(
                  ^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/facturx/facturx.py", line 909, in generate_from_binary
    generate_from_file(
  File "/lib/python3.12/site-packages/facturx/facturx.py", line 1172, in generate_from_file
    xml_check_xsd(
  File "/lib/python3.12/site-packages/facturx/facturx.py", line 211, in xml_check_xsd
    raise Exception(
Exception: The Factur-x XML file is not valid against the official XML Schema Definition. Here is the error, which may give you an idea on the cause of the problem: Element '{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}Name': This element is not expected. Expected is ( {urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}TypeCode )., line 10.

Fault: The Factur-x XML file is not valid against the official XML Schema Definition. Here is the error, which may give you an idea on the cause of the problem: Element '{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}Name': This element is not expected. Expected is ( {urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}TypeCode )., line 10.
``` Traceback (most recent call last): File "/lib/python3.12/site-packages/facturx/facturx.py", line 204, in xml_check_xsd official_schema.assertValid(t) File "src/lxml/etree.pyx", line 3813, in lxml.etree._Validator.assertValid lxml.etree.DocumentInvalid: Element '{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}Name': This element is not expected. Expected is ( {urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}TypeCode )., line 10 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/lib/python3.12/site-packages/trytond/wsgi.py", line 109, in dispatch_request return endpoint(request, **request.view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/trytond/protocols/dispatcher.py", line 43, in rpc return methods.get(request.rpc_method, _dispatch)( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/trytond/wsgi.py", line 75, in wrapper return func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/trytond/protocols/wrappers.py", line 200, in wrapper return func(request, pool, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/trytond/protocols/dispatcher.py", line 196, in _dispatch result = rpc.result(meth(*c_args, **c_kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/trytond/modules/account_invoice_xrechnung/xreport.py", line 81, in execute invoice_pdf = cls.get_zugferd_pdf(invoice, invoice_xml) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/trytond/modules/account_invoice_xrechnung/xreport.py", line 168, in get_zugferd_pdf zugferd_pdf = generate_from_binary( ^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/facturx/facturx.py", line 909, in generate_from_binary generate_from_file( File "/lib/python3.12/site-packages/facturx/facturx.py", line 1172, in generate_from_file xml_check_xsd( File "/lib/python3.12/site-packages/facturx/facturx.py", line 211, in xml_check_xsd raise Exception( Exception: The Factur-x XML file is not valid against the official XML Schema Definition. Here is the error, which may give you an idea on the cause of the problem: Element '{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}Name': This element is not expected. Expected is ( {urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}TypeCode )., line 10. Fault: The Factur-x XML file is not valid against the official XML Schema Definition. Here is the error, which may give you an idea on the cause of the problem: Element '{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}Name': This element is not expected. Expected is ( {urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}TypeCode )., line 10. ```
mdsfred self-assigned this 2025-11-12 11:50:11 +00:00
Member

mds-public/edocument_xrechnung@b6b68157e3

ging bei mir - damit man nicht ewig suchen muss mal die Änderungen

https://scmforg.m-ds.de/mds-public/edocument_xrechnung/commit/b6b68157e3333be016c095a6bc242383767ee2e9 ging bei mir - damit man nicht ewig suchen muss mal die Änderungen
Author
Member
was wrong factur-xtype: https://scmforg.m-ds.de/mds-public/edocument_xrechnung/commit/50885734f31b4eb9e4174ce308f2e27772209c23
mdsfred added reference refs/tags/ver-7.0.19 2025-11-13 07:46:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mds-public/edocument_xrechnung#8
No description provided.