Hi,
In my project we need to import data from third party service via cronjob running in backend side, but sometimes we encountered the validation error ‘VALUE_ERROR Message: Only values without trailing spaces are allowed. ErrorCode: nachfolgendesBlank Rule: formalePruefung]’ if the data we received contains trailing space.
If trailing space is not allowed, should kernel cut it before saving document? Or is there any configuration to enable that cutting? I searched in getA12 but could not find it yet.
In my project we receive data from different sources, so it will take effort if we have to format data for each of them before saving.
Thanks!
Hi @nguyen-sharp-drift,
I consulted with Peter Heinrich from Kernel team, and here’s his response:
As you already mentioned, values with leading or trailing spaces are reported as invalid by Kernels validation. I don’t know how you achive A12 Documents from the data the third party service provides. Kernel provides nothing to save A12 Documents, I think you mean the serialiser!? In my opionon it still makes sense that the serialiser does not change the given data - this should not be changed. I think in the short term you have to take care - for example by enhancing the logic where you map the data to the A12 Document format accordingly.
By the way: There already exists the unplanned requirement A12-15233 that targets somehow the same issue. If you want you could add a hint that your project is also interested.
Hi,
Thanks for the answer, yes I mean the serialiser, I just added a comment to A12-15233.
For now my project will go with formatting data when mapping.