cancel
Showing results for 
Search instead for 
Did you mean: 

Export/import using ACP fails on bootstrapped content

gjferrier
Champ in-the-making
Champ in-the-making
Hi,

I am trying to use the export/import functionality to move data between two equivalent systems.  The export works and I am able to create a .acp zip file with all of the content from the workspace://SpacesStore store.  The problem occurs at the point of the importing.  I should have mentioned that the RM module is installed.  Anyway, files bootstrapped in the RM module are being identified as duplicates at the point at which they are found in the import package and the import is aborted, with the following exception -

Failed to import package due to Failed to import package at line 3491; column 40 due to error: Duplicate child name not allowed: onCreate_supersedes.js caused by: Failed to import package at line 3491; column 40 due to error: Duplicate child name not allowed: onCreate_supersedes.js
org.alfresco.tools.ToolException: Failed to import package due to Failed to import package at line 3491; column 40 due to error: Duplicate child name not allowed: onCreate_supersedes.js
   at org.alfresco.tools.Import.execute(Import.java:239)
   at org.alfresco.tools.Tool.start(Tool.java:232)
   at org.alfresco.tools.Import.main(Import.java:60)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 3491; column 40 due to error: Duplicate child name not allowed: onCreate_supersedes.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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:232)
   at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:199)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:152)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy89.importView(Unknown Source)
   at org.alfresco.tools.Import.execute(Import.java:235)

Seems like a bit of a catch-22.  What have I missed?

MTIA

G.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Doesn't RM have its own export/import tools?

gjferrier
Champ in-the-making
Champ in-the-making
I wasn't aware there were specific import/export tools for RM, maybe that's what I've missed …

Putting RM to the side for a minute won't this issue present itself anytime that bootstrapped content is exported from a system and an attempt is made to import it?