cancel
Showing results for 
Search instead for 
Did you mean: 

[ACP import] ImporterBinding : duplicated names

gric
Champ in-the-making
Champ in-the-making
Hi,
  best whishes to you all for this new year !

I've been trying to create an AMP module, which imports an ACP file on its first running.
I've configured my bootstrap-context as follows :


<property name="importer" ref="spacesBootstrap"/>
        <property name="bootstrapViews">
            <list>
                <props>
                    <!– path must exist –>
                    <prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.scripts.childname}</prop>
                    <prop key="location">alfresco/module/my-module/bootstrap/myArchive.acp</prop>
                    <prop key="uuidBinding">UPDATE_EXISTING</prop>
                </props>
            </list>
        </property>


But it seems my 'uuidBinding' property is not working at all : whatever the value I use (REMOVE_EXISTING, REPLACE_EXISTING, UPDATE_EXISTING, ...), I'm always getting this :
Caused by: org.alfresco.error.AlfrescoRuntimeException: 00030001 Bootstrap failed      
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:361)                                                                                
        at org.alfresco.repo.module.ImporterModuleComponent.executeInternal(ImporterModuleComponent.java:107)                                                                
        at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)                                                                        
        … 51 more                                                                   
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 64; column 16 due to error: Duplicate child name not allowed: script.js     
        at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)      
        at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:379)                                                                             
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:228)                                                                               
        at org.alfresco.repo.importer.ImporterBootstrap.doImport

Can someone explain me how I'm supposed to use this property ? I suspect it works with UUID, and not cm:name… But then, how can I replace a node which has the same name ?

Thanks !

PS : I use 3.4b
2 REPLIES 2

bibulle
Champ in-the-making
Champ in-the-making
Hi,

Have you some news on this Thread ?

Got the same problem…. Smiley Sad

jservajean
Confirmed Champ
Confirmed Champ
import is failing because "script.js" already exist in the repo with a different UUID from the one in the acp for this file.
Deleting the file in the repository before passing the AMP should help.
Getting started

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.