Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

AEMaaCS Replicator api golden publish issue


Level 3



We are using replicator api to clear dispatcher cache programmatically on AEM as a Cloud service,

Below are the lines used.


ReplicationOptions options = new ReplicationOptions();


options.setFilter(agent -> agent.getId().equals("flush"));

this.replicator.replicate(session, ReplicationActionType.DEACTIVATE, paths, options);


It is working as expected for publishers. But we are getting below exception for golden publishers.


Exception while clearing cache com.day.cq.replication.AgentNotFoundException: Replication triggered, but no agent found!


May i know how we can restrict the code to execute only for publishers not golden publishers.


Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies


Community Advisor

Hi @testtttt1 
What is golden publisher? Are you on AMS or AEMaaCS?

Please check replication agents on publisher where it is not working.

Arun Patidar


Level 5


The concept of a golden master was introduced for automating the life cycle of publish nodes. The golden master is specialized publish node never accessed by end-user, and from which all the nodes of the publish services are created. Maintenance operations such as compaction are performed on the content repository attached to golden master.