AnsweredAssumed Answered

erroneous 2 nodes found error

Question asked by bparis on Jul 27, 2009
Latest reply on Sep 11, 2009 by shamabbas
Hi,

I have created two subspaces in a parent space named "images".
The subspaces are respectively named "repertoire des bebes" and "répertoires des bébés".
When I try


      ParentReference companyHomeParent = new ParentReference(storeRef, null,
            "/app:company_home/cm:UCL/cm:images/cm:" + ISO9075.encode("repertoire des bebes") , Constants.ASSOC_CONTAINS, null);

I get
{http://www.alfresco.org/ws/service/repository/1.0}RepositoryFault:<ns1:errorCode>0</ns1:errorCode><ns1:message>java.lang.IllegalStateException: Failed to resolve to a single NodeRef with parameters (store=workspace:SpacesStore uuid=null path=/app:company_home/cm:UCL/cm:images/cm:repertoire_x0020_des_x0020_bebes), found 2 nodes.</ns1:message>

So I understand there is a path confusion perhaps due to the encoding… ?
What's the origin of that confusion and how to solve it ?
Alfresco is 3.1.1.

Thanks for any help,
Bernardbparis

Outcomes