Skip to content

SAF-T validator maxlength does not validate correct length when text contain CRLF #49

Open
@ErlSol

Description

The SAF-T validator will accept text larger than maxlength if the text contains the Windows newline characters CRLF (CarriageReturn +
LineFeed).

For instance if we have this value in the GeneralLedgerEntries.Journal.Transaction.Line.Description field:

Foo
Bar

Where the newline character is CRLF and then change the xsd schema to have maxlength 7 for this field. The validator will accept this file but other tools (as SSIS xml import) will correctly evaluate this as 8 characters.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions