cq:lastReplicated date not present in publish instance

Avatar

Avatar
Validate 1
Level 2
nidhis8242823
Level 2

Likes

2 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
nidhis8242823
Level 2

Likes

2 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
nidhis8242823
Level 2

18-01-2017

We are using a AEM 6.2 and we do not see cq:lastReplicated date present for pages(cq:pages) that have been published from author.

We have a requirement to find out the recently published pages.

 

Thanks,

Nidhi

Replies

Avatar

Avatar
Give Back 10
Level 2
huzaifaha985211
Level 2

Likes

0 likes

Total Posts

25 posts

Correct reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Affirm 5
View profile

Avatar
Give Back 10
Level 2
huzaifaha985211
Level 2

Likes

0 likes

Total Posts

25 posts

Correct reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Affirm 5
View profile
huzaifaha985211
Level 2

18-01-2017

What do the replication logs say? Have you tried using an admin account to see if it works?

In replication logs do you see a - INFO - publish : << HTTP/1.1 200 OK if not check the ACL or the replication agent. Do you see cq:lastReplicationAction ?

Avatar

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
Sham_HC
Level 10

18-01-2017

Hi Nidhi,

  Publisher will always have cq:lastReplicated  of last but one update. Usually production will have more than one publishers & using cq:lastReplicated  will not get right stat. For your requirement using cq:lastReplicated is not the right way,   Either introduce new property ( set the value )  Or use tunneling to author to get the data.

Regards,

Sham

Avatar

Avatar
Validate 1
Level 2
nidhis8242823
Level 2

Likes

2 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
nidhis8242823
Level 2

Likes

2 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
nidhis8242823
Level 2

02-02-2017

Hi Sham,

Thanks for the response.

I have only single publish instance and cq:lastReplicated and cq:lastReplicatedBy properties are not available for cq:pages.under jcr:content node.

Please let me know where i can see these properties in publish instance.

Regards,

Nidhi

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,135 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,135 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

05-02-2017

Hi,

cq:lastReplicated and cq:lastReplicatedBy are added to a page after the replication happened. But on the publish the lastModification property might give pretty much the same information.

Jörg

Avatar

Avatar
Level 1
sridharp
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
sridharp
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
sridharp
Level 1

07-02-2018

Every time we publish a page, jcr:created  Property updated with activation time in publish instance. So I think, we can relay on jcr:created property to figure out all recently published pages

Avatar

Avatar
Validate 1
Level 2
akashdeepAEM
Level 2

Likes

9 likes

Total Posts

21 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Validate 1
Level 2
akashdeepAEM
Level 2

Likes

9 likes

Total Posts

21 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
akashdeepAEM
Level 2

19-03-2018

Hi,

We may be able to catch the replication action in the preprocess() when implementing

com.day.cq.replication.Preprocessor

and write some node property like customReplicationDate for us to read later.

The other way would be to disable below config on author instance,

AEM 6 onwards cq:lastReplicationAction, cq:lastreplicated and cq:lastReplicatedBy properties are not carried over to publish by design.

In order to carry over these properties disable the below component in author instance:com.day.cq.replication.impl.ReplicationPropertiesFilterFactory