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 key | IndexDetectMultipleActiveVersionsOfSameIndex |
|---|---|
| Adobe's rule name | Multiple active versions of the same index |
| Type | Code Smell |
| Severity | Minor |
| Since | 2023.1.0 |
| Checked by | OakPAL 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 today | Action |
|---|---|
| damAssetLucene-1-custom-1 | Delete folder and filter root |
| damAssetLucene-1-custom-2 | Delete folder and filter root |
| damAssetLucene-1-custom-3 | Keep (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
- Group index folders by base name and keep the highest -custom-N per base.
- Delete the older folders and their filter.xml roots.
- If the newest is wrong, add custom-(N+1) with the correct definition rather than restoring an old folder.
- 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
- Adobe: Custom code quality rules (checked 10 Nov 2026)
- Adobe: Code quality testing in Cloud Manager (checked 10 Nov 2026)
- Adobe: Content search and indexing (checked 10 Nov 2026)
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.