Unintended live copy auto-publishing during programmatic rollout

This article describes why live copies are published automatically during programmatic rollout in Adobe Experience Manager (AEM) and outlines steps to configure rollout configurations to prevent this behavior.

Description description

Environment

  • Adobe Experience Manager 6.5.2

Issue/Symptoms

  • Live copy pages are published immediately after a programmatic rollout.
  • The master (blueprint) page remains unpublished.
  • Rollout configurations that include an activation action are present on the live copy.

Cause

Including a rollout configuration that triggers activation (such as activate) causes the TargetActivateAction to execute, which triggers replication and publishes the live copy. This occurs during programmatic rollouts when the configuration includes an activation-triggering action.

Resolution resolution

To fix unintended live copy auto-publishing, follow these steps:

  1. Review the rollout configurations applied to your live copy:

    • In the AEM interface, navigate to the live copy page and check the assigned rollout configurations.
    • Look for any configuration that includes an activation action.
  2. Replace or remove activation-triggering rollout configurations if you don’t want live copies to publish automatically:

    • Use a configuration that doesn’t include the activation action, such as the default rollout configuration.

      Example rollout configuration (XML):

      code language-none
      <rolloutConfig>
          <trigger>ROLLOUT</trigger>
          <actions>
              <action>contentSync</action>
          </actions>
      </rolloutConfig>
      
  3. For programmatic rollouts (using the RolloutManager API or scripts):

    • Ensure that only content synchronization actions are included in the rollout configuration.
    • Don’t include the activate action unless you want live copies to be published automatically.
  4. Test the updated configuration:

    • Perform a programmatic rollout and verify that live copies aren’t published unless explicitly intended.
    • Confirm that the master page’s publish status doesn’t affect the live copy’s publish status unless configured to do so.
recommendation-more-help
experience-cloud-kcs-help-kbarticles