Open haimat opened 1 year ago
I need to create the SEPA XML for an Austrian bank. Unfortunately here in Austria the latest version of the pain.001.001.03 schema is not supported yet, we use the RuleBook 6 version of that schema:
pain.001.001.03
https://zv.psa.at/de/download/xml/archiv/rb-60/12-isopain00100103austrian003/file.html
When I copy over that .xsd file into the sepaxml/schemas folder and run my script, I get the following exception:
.xsd
sepaxml/schemas
sepa = SepaTransfer(config, clean=True, schema="ISO.pain.001.001.03.austrian.003") ... # adding payments sepa_xml = sepa.export(validate=True, pretty_print=False) --------------------------- Exception has occurred: XMLSchemaParseError unknown type 'AT_ExternalCategoryPurpose1Code': Schema: <xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Cd" type="AT_ExternalCategoryPurpose1Code" /> Path: /xs:schema/xs:complexType[75]/xs:complexContent/xs:restriction/xs:sequence/xs:choice/xs:element[1] Schema URL: file:///home/mfb/.local/lib/python3.10/site-packages/sepaxml/schemas/ISO.pain.001.001.03.austrian.003.xsd
Any ideas how I could fix this?
I need to create the SEPA XML for an Austrian bank. Unfortunately here in Austria the latest version of the
pain.001.001.03
schema is not supported yet, we use the RuleBook 6 version of that schema:https://zv.psa.at/de/download/xml/archiv/rb-60/12-isopain00100103austrian003/file.html
When I copy over that
.xsd
file into thesepaxml/schemas
folder and run my script, I get the following exception:Any ideas how I could fix this?