AEM Preview Publish workflow fails after LTS upgrade due to replication agent name mismatch
This article explains how to resolve an issue in Adobe Experience Manager (AEM) where the Preview Publish workflow fails to publish content after a LTS upgrade due to a mismatch between the configured replication agent name and the actual agent name.
Description description
After upgrading to a AEM Long-Term Support (LTS) release, the Preview Publish workflow stops functioning as expected. In this scenario, when attempting to publish content to the preview environment, no entries appear in the publisher logs, and the content isn’t replicated. This typically affects custom workflows that use a two-step process: first publishing to a preview environment for validation, then pushing to Production. The issue is reproducible and is often caused by a mismatch between the replication agent name configured in the custom service and the actual replication agent name present in AEM.
Environment
Adobe Experience Manager (AEM) LTS release
Symptoms
- Preview Publish workflow doesn’t replicate content to the preview environment.
- No entries appear in the Publisher logs when the workflow is triggered.
- The issue persists after the LTS upgrade.
Cause
The custom workflow process selects replication agents based on an exact name match. If the configured agent name and the actual replication agent name don’t match, the workflow fails to select the appropriate agent, resulting in no replication events and no log entries.
Resolution resolution
Follow the steps below to resolve the issue:
- Identify the replication agent name configured in your custom service for preview publishing. This is typically set in a service configuration property such as
previewReplicationAgentName. - In the AEM Author instance, navigate to the replication agents configuration (For example:
/etc/replication/agents.author/). - Locate the replication agent intended for preview publishing, and note its exact name.
- Ensure that the value set in your custom service configuration matches the actual replication agent name exactly (case-sensitive).
- If the names don’t match, update either the service configuration or the replication agent name so that both are identical.
- Save your changes, and restart the workflow process, if necessary.
- Trigger the Preview Publish workflow, and verify that entries now appear in the Publisher logs and that content is replicated to the preview environment, as expected.
- Repeat these steps in all relevant Author environments to ensure consistency.