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

Validation-Error: Ungültiger Content wurde beginnend mit Element 'ram:DueDateDateTime' #296

Open
akm0079 opened this issue Nov 14, 2022 · 1 comment

Comments

@akm0079
Copy link

akm0079 commented Nov 14, 2022

Hallo, wenn ich ein mit der Version 2.5.6 generiertes X-Rechnungs-XML mit dem Kosit-Validator validiere, kriege ich eine Fehlermeldung:

Schema Violation: cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element 'ram:DueDateDateTime' gefunden. '{"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":DirectDebitMandateID, "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":PartialPaymentPercent, "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":PaymentMeansID, "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":PartialPaymentAmount, "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":ApplicableTradePaymentPenaltyTerms, "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":ApplicableTradePaymentDiscountTerms, "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":PayeeTradeParty}' wird erwartet. At row 157 at pos 30

Im XML steht dann so etwas drin:

<ram:SpecifiedTradePaymentTerms>
        <ram:Description/>
        <ram:DirectDebitMandateID>hier steht eine MandatID</ram:DirectDebitMandateID>
	<ram:DueDateDateTime>
          <udt:DateTimeString format="102">20221122</udt:DateTimeString>
        </ram:DueDateDateTime>
</ram:SpecifiedTradePaymentTerms>

wenn ich die Reihenfolge der DueDateDateTime- und DirectDebitMandateID-Elemente vertausche, dann verschwiendet die Fehlermeldung.

@jstaerk
Copy link
Collaborator

jstaerk commented Jan 30, 2023

interessant, ich brauche bitte mal kurz steps to reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants