Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

cq:lastReplicated property is not updating in publish instance

Avatar

Level 1

Hi All,

 

When we publish the page, the cq:lastReplicated property is not updated in the published instance.

While the cq:lastModified property is updated, the cq:lastReplicated property is not.

What would be the issue here, and can you help me if anyone comes across this issue?

Is it possible to show the cq:lastReplicated node data in a published instance?

 

Thanks in advance.

Kaibalya

1 Accepted Solution

Avatar

Correct answer by
Level 4

hi publish environment does not have cq:lastReplicated property. The equivalent property on a page that you would get to see on publish instance is, jcr:created. This property gets updated every time a page is published. So, technically jcr:created property's value in publish instance and cq:lastReplicated value in author instance will almost always identical. 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 4

hi publish environment does not have cq:lastReplicated property. The equivalent property on a page that you would get to see on publish instance is, jcr:created. This property gets updated every time a page is published. So, technically jcr:created property's value in publish instance and cq:lastReplicated value in author instance will almost always identical. 

Avatar

Community Advisor

@Kaibalya_123 cq:lastReplicated property is not carried over to publish by design. In order to carry it over, disable the below component in the author instance:

com.day.cq.replication.impl.ReplicationPropertiesFilterFactory

Referencehttps://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/cq-lastreplicated-not-foun...

Note: On Publisher this property is redundant, cq:lastModified on publisher captures the same info as cq:lastReplicated.

Avatar

Community Advisor

When a page is published from Author -> Publisher, the publisher see's the resource as a new item added. You should be okay to use the currentPage.jcr:created as this date can represent the last replicated date.

 

But however, just as a experiment for yourself, when looking at the Author, the jcr:created is the actual creation date of when the page was created (this date will neverchange), and you can actually find the cq:lastReplicated, as this will be the actual lastReplication date.