While trying to clear a standard credit note of one of our customers, the customer is getting this error.
The invoice transaction code (KSA-2) must exist and respect the following structure: NNPNESB where NN (positions 1 and 2) = invoice
subtype: 01 for tax invoice 02 for simplified tax invoice P
(position 3) = 3rd Party invoice transaction, 0 for false, 1 for true N
(position 4) = Nominal invoice transaction, 0 for false, 1 for true E
(position 5) = Exports invoice transaction, 0 for false, 1 for true S
(position 6) = Summary invoice transaction, 0 for false, 1 for true B
(position 7) = Self billed invoice.
The actual cause of the error is unknown. Please help with this.
The related xml is given below.
<cbc:UBLVersionID xmlns=ββ>2.1</cbc:UBLVersionID>
<cbc:ProfileID xmlns=ββ>reporting:1.0</cbc:ProfileID>
<cbc:ID xmlns=ββ>SR/1/202410/000016</cbc:ID>
<cbc:UUID xmlns=ββ>2d72c9ff-bca3-4225-a29d-c03f13cb2828</cbc:UUID>
<cbc:IssueDate xmlns=ββ>2024-10-29</cbc:IssueDate>
<cbc:IssueTime xmlns=ββ>01:20:31</cbc:IssueTime>
<cbc:InvoiceTypeCode xmlns=ββ name=β0100000 β>381</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode xmlns=ββ>SAR</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode xmlns=ββ>SAR</cbc:TaxCurrencyCode>
<cac:BillingReference xmlns=ββ>
cac:InvoiceDocumentReference
cbc:IDSRD/202410/000012</cbc:ID>
</cac:InvoiceDocumentReference>
</cac:BillingReference>
<cac:AdditionalDocumentReference xmlns=ββ>
cbc:IDICV</cbc:ID>
cbc:UUID44</cbc:UUID>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference xmlns=ββ>
cbc:IDPIH</cbc:ID>
cac:Attachment
<cbc:EmbeddedDocumentBinaryObject mimeCode=βtext/plainβ>BTOI42b0iHlCFancWCKroHZOWVg3M2hIttEBoM+79+E=</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AccountingSupplierParty xmlns=ββ>
cac:Party
cac:PartyIdentification
<cbc:ID schemeID=βCRNβ>null</cbc:ID>
</cac:PartyIdentification>
cac:PostalAddress
cbc:StreetNameZaid Ibn Al Khattab </cbc:StreetName>
cbc:BuildingNumber7580</cbc:BuildingNumber>
cbc:CitySubdivisionNameAl Olya</cbc:CitySubdivisionName>
cbc:CityNameAl Khobar </cbc:CityName>
cbc:PostalZone34447</cbc:PostalZone>
cac:Country
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID310903726100003</cbc:CompanyID>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameMass Vision Trading </cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty xmlns=ββ>
cac:Party
cac:PartyTaxScheme
cbc:CompanyID300000432310003</cbc:CompanyID>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameSaudi Arabian Oil Company</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentMeans xmlns=ββ>
cbc:PaymentMeansCode1</cbc:PaymentMeansCode>
cbc:InstructionNotereturn</cbc:InstructionNote>
</cac:PaymentMeans>
<cac:TaxTotal xmlns=ββ>
<cbc:TaxAmount currencyID=βSARβ>28.37</cbc:TaxAmount>
</cac:TaxTotal>
<cac:TaxTotal xmlns=ββ>
<cbc:TaxAmount currencyID=βSARβ>28.37</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID=βSARβ>189.12</cbc:TaxableAmount>
<cbc:TaxAmount currencyID=βSARβ>28.37</cbc:TaxAmount>
cac:TaxCategory
<cbc:ID schemeAgencyID=β6β schemeID=βUN/ECE 5305β>S</cbc:ID>
cbc:Percent15.0</cbc:Percent>
cac:TaxScheme
<cbc:ID schemeAgencyID=β6β schemeID=βUN/ECE 5153β>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal xmlns=ββ>
<cbc:LineExtensionAmount currencyID=βSARβ>189.12</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID=βSARβ>189.12</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID=βSARβ>217.49</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID=βSARβ>0.0</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID=βSARβ>0.0</cbc:ChargeTotalAmount>
<cbc:PrepaidAmount currencyID=βSARβ>0.0</cbc:PrepaidAmount>
<cbc:PayableRoundingAmount currencyID=βSARβ>0.0</cbc:PayableRoundingAmount>
<cbc:PayableAmount currencyID=βSARβ>217.49</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine xmlns=ββ>
cbc:ID1</cbc:ID>
<cbc:InvoicedQuantity unitCode=βPCEβ>1.0</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=βSARβ>189.12</cbc:LineExtensionAmount>
cac:TaxTotal
<cbc:TaxAmount currencyID=βSARβ>28.37</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=βSARβ>217.49</cbc:RoundingAmount>
</cac:TaxTotal>
cac:Item
cbc:NameTable </cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDS</cbc:ID>
cbc:Percent15.0</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID=βSARβ>189.12</cbc:PriceAmount>
cac:AllowanceCharge
cbc:ChargeIndicatortrue</cbc:ChargeIndicator>
cbc:AllowanceChargeReasondiscount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=βSARβ>0.0</cbc:Amount>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>