09-11-2008 06:18 AM
01-16-2009 02:06 PM
03-10-2009 01:20 PM
12-04-2010 08:17 PM
org.alfresco.repo.node.integrity.IntegrityException: 11040027 Found 1 integrity violations:
The association child multiplicity has been violated:
Source Node: workspace://SpacesStore/3c1670d5-6001-4f31-931b-fb3729a1f135
Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/content/1.0}mlContainer], name={http://www.alfresco.org/model/content/1.0}mlChild, target class={http://www.alfresco.org/model/content/1.0}mlDocument, source role=null, target role=null]
Required child Multiplicity: 1..*
Actual child Multiplicity: 0
ParentReference parentReference = new ParentReference(this.spacesStore, idPadre, null, Constants.ASSOC_CONTAINS, Constants.ASSOC_CONTAINS);
String qname = Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, "mlContainer");
CMLCreate create = new CMLCreate("1", parentReference, "2", Constants.ASSOC_CHILDREN, qname, qname, null);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);
CMLAddAspect aspect = new CMLAddAspect();
aspect.setAspect(Constants.ASPECT_VERSIONABLE);
aspect.setWhere(new Predicate(new Reference[]{results[0].getDestination()}, this.spacesStore, null));
cml = new CML();
cml.setAddAspect(new CMLAddAspect[]{aspect});
results = WebServiceFactory.getRepositoryService().update(cml);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.