Expandir la barra de logros de la comunidad.

Get ready! An upgraded Experience League Community experience is coming in January.

Mark Solution

Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.

RESUELTAS

Deactivating a page by replication is not removing the node from publish instance

Avatar

Level 2

Hi, 

I am trying to deactivate a page by the code replicator.replicate(currentSession, ReplicationActionType.DEACTIVATE , pathToDeactivate);.

This is deactivating the page in author instance. Also, it invalidates the content in publish but the node doesn't go away from the instance. It is still seen, but, clicking on it takes to 404. I have tried various methods and yet this issue exists. Please let me know if I am missing anything here to delete the node from publ on deactivating. 

1 solución aceptada

Avatar

Respuesta correcta de
Level 4

Can you try using EventHandler. which will trigger upon deactivating page or changing property of node.

Ver la solución en mensaje original publicado

3 Respuestas

Avatar

Level 10

Verify the publish instance log file.

Avatar

Respuesta correcta de
Level 4

Can you try using EventHandler. which will trigger upon deactivating page or changing property of node.

Avatar

Level 2

Thanks for the reply. The property 'cq:lastReplicatedAction','cq:lastModified' etc get changed. The issue is the page is not getting removed from the publish instance.

I will look into eventhandler as well.