We have a document model that contains a transient field where the data is actually retrieved from a 3rd party source and we have no control over the data that we get from there (but we trust the source).
When saving a document based on the model, it fails with the following error:
com.mgmtp.a12.dataservices.document.exception.DocumentValidationException: Document is not valid:
[Entity: /Root[1]/FormHelpers[1]/SomeStringField[1] Type: VALUE_ERROR Message: Es sind nur Werte erlaubt, die nicht mit einem Leerzeichen beginnen. ErrorCode: fuehrendesBlank Rule: formalePruefung]
The field itself is marked as transient and is defined of type “String” without any further restrictions.
We already enabled the “Line Breaks Permitted” option, but I can’t find an option to permit leading spaces.
How can we avoid this error?