AEM Assets Developer Professional study materials
AEM Assets Developer Professional study resources

Metadata Inheritance Conflict in a Multi-Brand Folder Tree

AEM Assets Developer Professional · Put your knowledge to work in context.

All case studies

Metadata Inheritance Conflict in a Multi-Brand Folder Tree

A retailer organizes assets under /content/dam/retail with brand folders (brandA, brandB) and, beneath each, campaign folders. Folder-level metadata schemas set cq:tags for brand and a custom region property. Editors report that assets in brandA/spring show brandB tags in search facets, and that region sometimes shows the parent value but sometimes is blank. A developer recently changed the folder metadata schema to add a new field and applied it at the retail root. Search is powered by the Assets search rail with default predicates.

1. Explain why brand tags appear wrong and why region is inconsistent, distinguishing folder metadata from asset metadata.

Read the worked answer

Folder metadata in AEM Assets is not automatically inherited as asset metadata in the way many expect. What happens depends on configuration:

  • Folder metadata schemas define the form shown when editing folder properties; they do not by themselves propagate values to child assets.
  • Metadata Profiles (applied to folders) are what cascade to descendants and drive default/derived values on assets at ingestion or on save. If a profile was applied at retail root and another at brandB, overlapping profiles can produce conflicting defaults.
  • Smart tags / tag inheritance may come from an applied metadata profile that maps folder context to cq:tags; if the profile at the root was edited to add a field, the cascade behavior can change for all descendants.

So brandB tags on brandA/spring assets most likely come from a root-level metadata profile (or a tag default) that was applied broadly, not from the brandA folder. region being sometimes blank suggests assets were ingested before the profile was applied (no value written) while newer assets got the default.

Confirm by inspecting an affected asset's properties (cq:tags, region) and the applied metadata profiles on each folder path.

2. How do you make search facets return correct brand values without breaking existing assets?

Read the worked answer

Do not rely on folder tags appearing magically in facets; facets read asset properties.

  1. Audit the profile chain: list metadata profiles applied at retail, brandA, brandB, and campaign folders. Remove or correct the root-level profile that injects brandB tags.
  2. Backfill assets: for existing assets missing region or carrying wrong cq:tags, run a bulk metadata update (e.g., a workflow or scripted update) that writes the correct values derived from the folder path. Because search facets use asset properties, backfilling asset metadata is required.
  3. Prevent recurrence: apply a single, clearly scoped metadata profile per brand folder, and ensure new ingestion uses it. Avoid stacking profiles at multiple levels unless you understand precedence.
  4. Reindex if needed: after bulk property changes, confirm the search index reflects new values (facet counts update).

This keeps folder organization as the source of truth for defaults while making asset-level metadata the source of truth for search.