We faced an issue with some of our print models after migration.
There was no error shown when opening the print models, everything looked fine.
But committing changes was not possible and the error “Error - The pending changes could not be commited to the print model“ popped up. Nothing in a log file that could explain why the error fired. It was also not possible to use the Print Model Preview with valid test data (“The preview could not be generated”). Again no hint on why.
With the help of Jasper we found out which field was problematic.
We needed more preconditions then we originally did in 2024.06. We couldn’t just add the preconditions we needed to remove all calculations and re-model them including the new precondition to be able to commit changes and use the preview.
I’m wondering if it would be possible to give more precise error messages or to get a log for errors within print models or to already get an error while opening the model.
To be thorough, here is an example for a precondition:
we have a field “country” and in our print model we only want to print the value of this field if someone is not from Germany (”DE”). So our precondition in 2024.06 was
[field_path/Country]!=“DE” (condition = [field_path/Country])
It worked fine, we never had problems. Now we needed to add
[field_path/Country]==“DE” (condition = ““)
and we needed to delete all calculations and re-build them because simply adding the precondition was not working…