Live Copy - ContentCopyAction -Can't create new target as its parent is missing | Community
Skip to main content
Krishna_C
Level 3
November 18, 2015
Solved

Live Copy - ContentCopyAction -Can't create new target as its parent is missing

  • November 18, 2015
  • 4 replies
  • 2111 views

Hi Everyone,

I am facing in issue while creation of lie copies. 

I have a content tree something that looks like 

Source

     page1

        page2

            page3

                page4

                    page5

I am going to activate these pages one by one in sequence using Java Replicator API based on user approval, I have a live copy with rollout configuration having actions  ContentUpdate,ContentCopy,ContentDelete,EditProperties,OrderChildren and trigger as active/publish

Now the issue is when I activate the pages one by one some times the copies are created perfectly fine but some times copies are created only up to a certain level like (page2, page3) . When I went through the  logs it clearly says that  

com.day.cq.wcm.msm.impl.actions.ContentCopyActionFactory$ContentCopyAction Can't create new target at "destinationPath", as its parent does not exist 

But I could see that the parent page created in tree and even the log also says it 

ContentCopyActionFactory$ContentCopyAction Created Resource at "parentPageDestination/jcr:content/" for "parentSourcePage/jcr:content" 

I am assuming that the child copy trigger is happening  before the parent is copied completely, but the logs shows the triggers happening in sequential order. This was working fine with AEM 5.6   but after 6.1 Update I am facing the issue .

I could see the issue happening even when I try tree activation .

Any suggestion to fix this please?

 

Thanks,

Krishna 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

As you have analyzed well, it looks like child page sync is getting called before the parent page. Please log a support ticket for the same !

4 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
November 18, 2015

As you have analyzed well, it looks like child page sync is getting called before the parent page. Please log a support ticket for the same !

Krishna_C
Krishna_CAuthor
Level 3
November 19, 2015

Thanks Lokesh. I will raise one . 

Lokesh_Shivalingaiah
Level 10
November 19, 2015

here is where you can raise a support ticket

https://daycare.day.com/public/contact.html

February 19, 2024

Hi @krishna_c  ,

 

Good analysis , you must raise a support ticket with adobe it is must. 

In other way if you remove the node and update the component again it could fix this issue.