When creating a Documentmodel by copy via AbstractSession.createDocument(doc) it fails if the input Documentmodel contains dynamic facets
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.core.model.NoSuchPropertyException. message: The property at 'nxts:templateId' doesn't exists
at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.makeProperties(SQLSession.java:971)
at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.makeProperty(SQLSession.java:936)
at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getProperty(SQLDocumentLive.java:155)
at org.nuxeo.ecm.core.storage.sql.coremodel.SQLComplexProperty.setPropertyValue(SQLComplexProperty.java:222)
at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.writeDocumentPart(SQLDocumentLive.java:169)
at org.nuxeo.ecm.core.api.DocumentModelFactory.writeDocumentModel(DocumentModelFactory.java:299)
at org.nuxeo.ecm.core.api.AbstractSession.writeModel(AbstractSession.java:491)
at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:805)
- is required by
-
NXP-8992 Extend rendition system
- Resolved