AEM as a Cloud Service: Slow Version Timeline and HTTP 500 on version preview

This article explains how to resolve slow loading of the Version Timeline and HTTP 500 errors when previewing historical page versions in Adobe Experience Manager (AEM) as a Cloud Service Author environment.

Description description

Environment

Adobe Experience Manager (AEM) as a Cloud Service Author (all versions)

Issue/Symptoms

  • The Version Timeline in the AEM Sites Console loads very slowly, sometimes taking several minutes, even for pages with only a few versions.
  • After the Timeline eventually loads, attempting to preview a historical version fails with the message: Failed to preview version.
  • The browser’s Developer Console/Network tab shows the preview request failing with HTTP 500 Internal Server Error.
  • The issue can affect specific pages or multiple pages in your site, regardless of the number of versions.

Cause

Timeline slowness is typically caused by expensive workflow-related queries in the Author environment, often due to a high volume of running, stale, or orphaned workflow instances.

Preview failures with HTTP 500 are usually due to inconsistent or missing historical page references in the version tree, often resulting from previous page moves, renames, or incomplete migrations.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review and clean up workflow instances by accessing the Workflow Instances console in AEM Author. Identify and review running, stale, blocked, or orphaned workflow instances, especially older workflows such as Generate Page and Request for Activation. Clean up eligible workflow data according to your organization’s audit and retention requirements.
  2. Validate workflow purge configuration by confirming whether workflow purge is configured and running as expected in your environment. Refer to your organization’s maintenance policies and Adobe documentation for guidance.
  3. Re-test Timeline performance after workflow cleanup by re-testing the Version Timeline loading for affected pages to confirm whether response time has improved.
  4. Investigate version preview failures if Preview fails with HTTP 500 for specific historical versions. Check for missing or inconsistent historical page references (for example, due to previous page moves, renames, or migrations). This error is often version-specific and may not affect newly created versions.
  5. Create a new version of the affected page and test Timeline and Preview functionality. If new versions work as expected, the issue is likely isolated to specific historical versions.
  6. Verify the resolution by confirming that the Version Timeline loads within a reasonable time and that Preview works for newly created versions.
recommendation-more-help
experience-cloud-kcs-help-kbarticles