Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid qr codes according to validator #241

Closed
sprain opened this issue Nov 9, 2023 · 3 comments
Closed

Invalid qr codes according to validator #241

sprain opened this issue Nov 9, 2023 · 3 comments
Labels
third-party-bug A bug from a different provider is blocking

Comments

@sprain
Copy link
Owner

sprain commented Nov 9, 2023

Starting November 9, 2023 (while working on #240) it was discovered that some reference qr codes from this library are no longer accepted by the validator. They all fail with the same three errors:

(0033) - Das Datenelement <UltmtDbtr>\<AdrTp> muss befüllt sein.
(0033) - Das Datenelement <UltmtDbtr>\<Name> muss befüllt sein.
(0033) - Das Datenelement <UltmtDbtr>\<Ctry> muss befüllt sein.

Screenshot:
Bildschirmfoto 2023-11-09 um 10 23 05

  • Is there a newly enforced rule that we are not aware of yet?
  • Or is it a bug in the validator?

Detailed test report for one example:

GEFEG.FX Check
*******************
Check date        	: 09.11.2023
Check time        	: 10:15:56
File              	: qr-payment-reference-non.png
File date         	: 09.11.2023
File time         	: 10:15:56
File size         	: 1.211 Bytes
Reference standard	: QR;;CH


(Line number) - Errors
******************************************************
(0033) - Das Datenelement <UltmtDbtr>\<AdrTp> muss befüllt sein.
(0033) - Das Datenelement <UltmtDbtr>\<Name> muss befüllt sein.
(0033) - Das Datenelement <UltmtDbtr>\<Ctry> muss befüllt sein.


(0001) <?xml version="1.0" encoding="utf-8"?>
(0002) <QRCH encoding="UTF-8" eclevel="M" qrversion="7" orientation="normal">
(0003)   <Header>
(0004)     <QRType>SPC</QRType>
(0005)     <Version>0200</Version>
(0006)     <Coding>1</Coding>
(0007)   </Header>
(0008)   <CdtrInf>
(0009)     <IBAN>CH9300762011623852957</IBAN>
(0010)     <Cdtr>
(0011)       <AdrTp>S</AdrTp>
(0012)       <Name>Thomas LeClaire</Name>
(0013)       <StrtNmOrAdrLine1>Rue examplaire</StrtNmOrAdrLine1>
(0014)       <BldgNbOrAdrLine2>22a</BldgNbOrAdrLine2>
(0015)       <PstCd>1000</PstCd>
(0016)       <TwnNm>Lausanne</TwnNm>
(0017)       <Ctry>CH</Ctry>
(0018)     </Cdtr>
(0019)   </CdtrInf>
(0020)   <UltmtCdtr>
(0021)     <AdrTp></AdrTp>
(0022)     <Name></Name>
(0023)     <StrtNmOrAdrLine1></StrtNmOrAdrLine1>
(0024)     <BldgNbOrAdrLine2></BldgNbOrAdrLine2>
(0025)     <PstCd></PstCd>
(0026)     <TwnNm></TwnNm>
(0027)     <Ctry></Ctry>
(0028)   </UltmtCdtr>
(0029)   <CcyAmt>
(0030)     <Amt>25.90</Amt>
(0031)     <Ccy>CHF</Ccy>
(0032)   </CcyAmt>
(0033)   <UltmtDbtr>
(0034)     <AdrTp></AdrTp>
(0035)     <Name></Name>
(0036)     <StrtNmOrAdrLine1></StrtNmOrAdrLine1>
(0037)     <BldgNbOrAdrLine2></BldgNbOrAdrLine2>
(0038)     <PstCd></PstCd>
(0039)     <TwnNm></TwnNm>
(0040)     <Ctry></Ctry>
(0041)   </UltmtDbtr>
(0042)   <RmtInf>
(0043)     <Tp>NON</Tp>
(0044)     <Ref></Ref>
(0045)     <AddInf>
(0046)       <Ustrd></Ustrd>
(0047)       <Trailer>EPD</Trailer>
(0048)     </AddInf>
(0049)   </RmtInf>
(0050) </QRCH>


Generated by GEFEG.FX ---  http://www.gefeg.com/
@sprain sprain added bug Something isn't working help wanted Extra attention is needed check guidelines Needs to be validated against official guidelines labels Nov 9, 2023
@demianh
Copy link

demianh commented Nov 9, 2023

Something seems to be broken with the Validator. A file that worked yesterday, produces this error today:

The validation results are incomplete or not valid.
Please try again. If the error occurs again, please report this problem.

The following internal errors occurred during validation:

Error at char 20 in expression in xsl:when/@test on line 54 column 63 of EN-validate.xslt:
  XTDE1425  Cannot find a 2-argument function named Q{http://www.gefeg.com/xsltextensions}matches()
  In template rule with match="/QRCH/@eclevel" on line 51 of EN-validate.xslt
     invoked by xsl:apply-templates at file:/D:/web/wwwroot/gp/App_Data/GlobalTemp/globValSrcs/2/1/EN-validate.xslt#55
  In template rule with match="node()" on line 55 of EN-validate.xslt
     invoked by built-in template rule (text-only)
  In template rule with match="/" on line 42 of EN-validate.xslt
     invoked by xsl:apply-templates at file:/D:/web/wwwroot/gp/App_Data/GlobalTemp/globValSrcs/2/1/EN-validate.xslt#42
  In template rule with match="/" on line 42 of EN-validate.xslt
Cannot find a 2-argument function named Q{http://www.gefeg.com/xsltextensions}matches()

You can find the error, when you download the "Text" Report.

@sprain
Copy link
Owner Author

sprain commented Nov 14, 2023

Current status: I am in touch with SIX. They are looking into what's going on.

@sprain
Copy link
Owner Author

sprain commented Nov 15, 2023

Good news – the validator seems to be fixed :)

Bildschirmfoto 2023-11-15 um 09 54 27

@sprain sprain closed this as completed Nov 15, 2023
@sprain sprain removed bug Something isn't working help wanted Extra attention is needed check guidelines Needs to be validated against official guidelines labels Nov 15, 2023
@sprain sprain added the third-party-bug A bug from a different provider is blocking label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party-bug A bug from a different provider is blocking
Projects
None yet
Development

No branches or pull requests

2 participants