Missing characters when labeling documents

We are trying to label a few documents to train a custom model in Document Manager. We cannot use a pretrained model. So we have a couple of problems:

  1. OrderNumber
    We have a text field for OrderNumber, for example. The order number looks like this: ABC09-33258­1. The Field Type is String.

When labeling the document, the Order Number is extracted as ABC09332581, in other words, the dash is missing.

  1. OrderDate
    This dashes is also true when labeling dates, so 2024-04-30 becomes 20240430, but ONLY if the field type is String. If we set the field type to Date, nothing is extracted at all.

Any ideas out there?

/jeppe