Cloud Manager code quality · Oak index definition rules (OakPAL) · updated

IndexDetectMultipleActiveVersionsOfSameIndex: Multiple active versions of the same index

This rule fires when your code ships several versions of the same index at once, such as damAssetLucene-1-custom-1, -2 and -3 in Adobe's example. Keep only the newest version in the code base; Cloud Service keeps the old ones for a grace period and then removes them itself.

Rule keyIndexDetectMultipleActiveVersionsOfSameIndex
Adobe's rule nameMultiple active versions of the same index
TypeCode Smell
SeverityMinor
Since2023.1.0
Checked byOakPAL scan of your content packages

Why Cloud Manager flags it

Index versions exist so the old and new application versions can each use their own index during a rolling deployment. Once the new version is live, older ones are not needed in your code. If they stay in ui.apps, every deployment has to maintain all of them, which costs indexing time and repository space, and it is unclear which one queries should use. Adobe's guide says old indexes are kept for a grace period (currently 7 days) after removal from the code, then cleaned up.

Worked example

In ui.apps todayAction
damAssetLucene-1-custom-1Delete folder and filter root
damAssetLucene-1-custom-2Delete folder and filter root
damAssetLucene-1-custom-3Keep (newest)

Rolling back is not done by keeping old versions around. Adobe's guide says to roll back by creating a new version that copies the earlier definition, for example custom-4 with the contents of custom-2.

How to fix it

  1. Group index folders by base name and keep the highest -custom-N per base.
  2. Delete the older folders and their filter.xml roots.
  3. If the newest is wrong, add custom-(N+1) with the correct definition rather than restoring an old folder.
  4. Add a build check that fails when two versions of one base name exist.

Does it stop the pipeline?

Code smells feed the Maintainability Rating, which is based on the total estimated fix time as a share of development time, not on any single finding. One finding rarely moves it, but hundreds can push the rating below A, which is an important failure: the pipeline pauses until someone overrides or fixes it.

If a finding is a genuine false positive, Adobe's code quality page lets you annotate the code with @SuppressWarnings and the rule ID. In a full-stack pipeline, important failures can be overridden by a deployment manager, project manager or business lead; in a code-quality-only pipeline they cannot.

Related pages on this site

Questions

Is it safe to delete old versions from code?

Yes. Adobe keeps them on the environment for a grace period and removes them afterwards; queries already use the newest version.

How do I roll back an index change?

Deploy a new version whose definition is a copy of the earlier one.

Do product index versions count?

The rule is about your custom versions. Product indexes are managed by Adobe.

See the Cloud Service blockers in your code before Cloud Manager shows them. The free Surge Migrate readiness scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists them with file, fix and effort. Nothing is uploaded.

Sources

Rule key, type, severity and version are as listed on Adobe's page, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to AEM as a Cloud Service

Surge Migrate moves a website from any CMS to any CMS, and AEM as a Cloud Service is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Content packages installed on a local AEM as a Cloud Service SDK. See the worked examples.

On AEM 6.5 code: Scan AEM 6.5 code free. The scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists Cloud Service blockers with file, fix and effort. Nothing is uploaded.