We have crated a custom property of type d:text, originally defined als <multiple>true</multiple>.
Trying to change it to only allow single values causes a problem when trying to delete old nodes that were created under the original model.
Exception:
Unable to delete Space due to system error: Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnUpdateNodePolicy.onUpdateNode(org.alfresco.service.cmr.repository.NodeRef) in transaction 25c1866e-1b32-11e1-a8f2-b7e9e5abd43b
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: A single-valued property of this type may not be a collection
This makes sense to me as the old properties were obviously stored as collections, and now the new model is saying they should be Strings
BUt it raises the question: how to deal with an change of model of this nature? Is there a procedure to "update" old nodes to the new model? It would be OK in this case to simply preserve the first value in the collection and forget about the rest.