[14.0] account_banking_sepa_direct_debit: Valiadation error when using pain.008.003.02 (direct debit in Germany)
MrTango opened this issue · comments
Maik Derstappen commented
When I choose the pain version for Germany, i get a validation error while generating the payment file.
PAIN Version | pain.008.003.02 (direct debit in Germany)
2021-08-15 18:29:03,393 21549 WARNING dbau odoo.addons.account_banking_pain_base.models.account_payment_order: The XML file is invalid against the XML Schema Definition
2021-08-15 18:29:03,393 21549 WARNING dbau odoo.addons.account_banking_pain_base.models.account_payment_order: b'<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.003.02">\n <CstmrDrctDbtInitn>\n <GrpHdr>\n <MsgId>PAY0002</MsgId>\n <CreDtTm>2021-08-15T18:29:03</CreDtTm>\n <NbOfTxs>1</NbOfTxs>\n <CtrlSum>59.50</CtrlSum>\n <InitgPty>\n <Nm>My Company</Nm>\n <Id>\n <OrgId>\n <Othr>\n <Id>333</Id>\n <Issr>2444</Issr>\n </Othr>\n </OrgId>\n </Id>\n </InitgPty>\n </GrpHdr>\n <PmtInf>\n <PmtInfId>PAY0002-FRST-20210815-NORM-NOcateg</PmtInfId>\n <PmtMtd>DD</PmtMtd>\n <BtchBookg>false</BtchBookg>\n <NbOfTxs>1</NbOfTxs>\n <CtrlSum>59.50</CtrlSum>\n <PmtTpInf>\n <LclInstrm>\n <Cd>CORE</Cd>\n </LclInstrm>\n <SeqTp>FRST</SeqTp>\n </PmtTpInf>\n <ReqdColltnDt>2021-08-15</ReqdColltnDt>\n <Cdtr>\n <Nm>Bernhard Derstappen</Nm>\n <PstlAdr>\n <Ctry>DE</Ctry>\n </PstlAdr>\n </Cdtr>\n <CdtrAcct>\n <Id>\n <IBAN>DE19240501100087013900</IBAN>\n </Id>\n </CdtrAcct>\n <CdtrAgt>\n <FinInstnId>\n <Othr>\n <Id>NOTPROVIDED</Id>\n </Othr>\n </FinInstnId>\n </CdtrAgt>\n <ChrgBr>SLEV</ChrgBr>\n <CdtrSchmeId>\n <Id>\n <PrvtId>\n <Othr>\n <Id>DE85ZZZ00001071356</Id>\n <SchmeNm>\n <Prtry>SEPA</Prtry>\n </SchmeNm>\n </Othr>\n </PrvtId>\n </Id>\n </CdtrSchmeId>\n <DrctDbtTxInf>\n <PmtId>\n <InstrId>L00003</InstrId>\n <EndToEndId>L00003</EndToEndId>\n </PmtId>\n <InstdAmt Ccy="EUR">59.50</InstdAmt>\n <DrctDbtTx>\n <MndtRltdInf>\n <MndtId>BM0000001</MndtId>\n <DtOfSgntr>2021-08-01</DtOfSgntr>\n </MndtRltdInf>\n </DrctDbtTx>\n <DbtrAgt>\n <FinInstnId>\n <Othr>\n <Id>NOTPROVIDED</Id>\n </Othr>\n </FinInstnId>\n </DbtrAgt>\n <Dbtr>\n <Nm>chininine</Nm>\n </Dbtr>\n <DbtrAcct>\n <Id>\n <Othr>\n <Id>081598150815</Id>\n </Othr>\n </Id>\n </DbtrAcct>\n <RmtInf>\n <Ustrd>Re.:/2021/08/0006</Ustrd>\n </RmtInf>\n </DrctDbtTxInf>\n </PmtInf>\n </CstmrDrctDbtInitn>\n</Document>\n'
2021-08-15 18:29:03,393 21549 WARNING dbau odoo.addons.account_banking_pain_base.models.account_payment_order: Element '{urn:iso:std:iso:20022:tech:xsd:pain.008.003.02}LclInstrm': This element is not expected. Expected is ( {urn:iso:std:iso:20022:tech:xsd:pain.008.003.02}SvcLvl )., line 28
2021-08-15 18:29:03,394 21549 WARNING dbau odoo.http: The generated XML file is not valid against the official XML Schema Definition. The generated XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : Element '{urn:iso:std:iso:20022:tech:xsd:pain.008.003.02}LclInstrm': This element is not expected. Expected is ( {urn:iso:std:iso:20022:tech:xsd:pain.008.003.02}SvcLvl )., line 28
github-actions commented
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.