<!–break–>Hi!I have created a custom node type with a custom association:
<type name="peas:imageHolder">
…
<associations>
<association name="peas:currentThumbnailFolder">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>peas:folder</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>
I have created an association from a node of this type to a folder beneath it like this:<cite> nodeService.createAssociation(sourceRef, targetRef, QName.createQName("http://www.peas.pro/model/content/1.0", "currentThumbnailFolder"));</cite>Earlier I have declared: <import uri="http://www.peas.pro/model/content/1.0" prefix="peas"/>
The association works and looks fine in the Node Browser.Then I export a "peas:imageHolder" node with a "currentThumbnailFolder" association to one of it's children.<strong>Here is my problem: When i try to import the node (at another place in the content tree on the same Alfresco instance) I get this error:</strong><blockquote> Failed to execute import: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 955; column 3466 due to error: Cannot find node referenced by path peas:childAssocication[5]</blockquote> In the XML-file in the ACP-file I find this at the bottom:
…
<view:associations>
<peas:currentThumbnailFolder>
<view:reference view:pathref="peas:childAssocication[5]/WorkingCopy[29]"></view:reference>
</peas:currentThumbnailFolder>
</view:associations>
</view:reference>
</view:view>
The "currentThumbnailFolder" association is pointing to a folder called "WorkingCopy" so that is correct but Alfresco doesn't seem to be able to import the exported data. This seems like a bug to me but perhaps I'm doing something wrong?Please help! Thanks!