cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate child error on move item action...

rkylberg
Champ in-the-making
Champ in-the-making
I get a "Duplicate child name not allowed" system error for the following setup:

1. create a space called 'import'
2. create a space called 'saved'
3. define an action rule over the 'import' space to "Move item to a specific space" assigning the 'saved' space as the destination.
4. add content to the 'import' space
5. the action will be applied and the content moved out of 'import' and into 'saved'
6. add the same content again to the 'import' space
7. observe that a system error exception is raised that a "Duplicate child name not allowed."

Copy actions and image tansform actions exhibit similar behavior. I can appreciate that allowing content to be over-written or replaced may be undesirable; however, in my application I actually want to over-write existing content. I need the move action to behave like a *nix mv command.

Is there any way to do this?

Thanks in advance for any advice on how to accomplish this.
1 REPLY 1

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

If you want to overwrite the target node you should have a look at Jeff Potts' excellent article in ECMArchitect.com : http://www.ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf
He takes this example to illustrate the custom action framework and give the source code.