We got the impression, that import of business models is not completed / commited when we execute our custom initialization logic.
Specifically, if we have added a new field to a model and we import a document in our custom initialization logic that contains the new field, we get an error like this “Deserialization of document has failed. Reason: For the entity instance ‘/X[1]/Y[1]/NewField[1]’, the corresponding entity was not found in the corresponding document model.”
So it seems that we do not have access to the most current version of the model in our custom initialization logic.
In 2025.06 / GetA12 there is the following sentence:
Every step from the table above is executed in its own transaction and is committed right after the step passes.
This sentence is missing in 2023.06 / GetA12
Does that mean, that all initialisation steps in 2023.06 are executed in one transaction?
If so, how can I ensure, that models are properly loaded?
If not, what other reason might exist for that problem? Maybe models are cached, and the cache still delivers the old version of the model? How can i circumvent this?