Skip to content

Error

FX-SCH-A-001019: A line attachment needs a file-type attribute

In short

Error: fails the selected checks.

FX-SCH-A-001019 means an embedded attachment in your line's additional document reference is missing the mimeCode attribute. Add it to ram:AttachmentBinaryObject with an allowed MIME type that matches the file.

On this page

What it means

This rule checks whether mimeCode exists on ram:AttachmentBinaryObject inside a line's ram:SpecifiedLineTradeAgreement/ram:AdditionalReferencedDocument. An empty attribute satisfies this presence check. The test does not inspect the MIME value or the attachment's contents.

Why it matters

The mimeCode attribute declares the embedded attachment's file type.

How to fix it

Check the attachment's actual format. Add its corresponding allowed MIME type to mimeCode, such as application/pdf for a PDF. If your software omits the attribute, have its export corrected. Export and recheck.

Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice

Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta

The rule as published

Attribute '@mimeCode' is required in this context.

Where this rule applies

Rule set Version
Factur-X 1.09 EXTENDED 1.0.9-2
ZUGFeRD 2.5 EXTENDED 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-001019 still fails, and which other rules do.

Updated 6 November 2026