Skip to main content
Question

2 error messages when validating SAF-T file

  • September 16, 2026
  • 1 reply
  • 23 views

Forum|alt.badge.img+1

Dear Community,

 

When validating our SAF-T XML file, we get the following 2 error messages: 

Line: 5950, position: 7 - The element 'TaxRegistration' in namespace 'urn:StandardAuditFile-Taxation-Financial:NO' has invalid child element 'TaxAuthority' in namespace 'urn:StandardAuditFile-Taxation-Financial:NO'. List of possible elements expected: 'TaxRegistrationNumber' in namespace 'urn:StandardAuditFile-Taxation-Financial:NO'.

 

Line: 40141, position: 7 - The element 'TaxRegistration' in namespace 'urn:StandardAuditFile-Taxation-Financial:NO' has invalid child element 'TaxType' in namespace 'urn:StandardAuditFile-Taxation-Financial:NO'. List of possible elements expected: 'TaxRegistrationNumber' in namespace 'urn:StandardAuditFile-Taxation-Financial:NO'.

 

Any thought how we might solve this?

1 reply

Forum|alt.badge.img+3
  • Do Gooder (Employee)
  • September 16, 2026

Hi ​@jestor 

Most likely both errors caused the same issue: TaxRegistrationNumber is missing.

I’ve found that in the Norwegian schema, TaxRegistration must begin with TaxRegistrationNumber, and it is mandatory. Your file is writing the TaxRegistration block without it, so the validator finds TaxAuthority (line 5950) and TaxType (line 40141) sitting in the position where TaxRegistrationNumber should be.