Loading

Understanding XMD Retrieval Behavior When Dataset and Lens Share the Same API Name

Julkaisupäivä: Aug 18, 2026
Kuvaus

Extended Metadata (XMD) files in CRM Analytics define formatting and display customization for datasets and lenses.

What Causes This

A scenario can arise where both a dataset and a lens share the same API name. For example, if a dataset is named `Sales_Data` and a lens is also named `Sales_Data`, retrieving the XMD through the Metadata API can lead to confusion because the retrieval process does not distinguish between the dataset's XMD and the lens's XMD when the names match.

Why It Happens

When retrieving wave XMD through the Metadata API, the system returns the XMD associated with the dataset and its type if both a dataset and a lens share the same API name. This is due to the current platform design, which allows this flexibility to support internal development and entity-level referencing of components.

This is expected system behavior, but developers who are unaware of it may experience discrepancies during deployments or find that the retrieved XMD is not the one they intended.

Ratkaisu

This article explains how to avoid confusion when a dataset and a lens in CRM Analytics share the same API name, since the Metadata API retrieval process prioritizes the dataset's XMD in that situation.

How to Resolve It

To avoid this conflict, assign unique API names to your datasets and lenses. If sharing the same API name is unavoidable, explicitly retrieve or deploy each component with its correct metadata reference, or remove the unintended XMD that is retrieved from the source org.

Best Practices

Establish and follow clear naming conventions within your development team to maintain long-term consistency and prevent this issue from recurring.

Knowledge-artikkelin numero

005132047

 
Ladataan
Salesforce Help | Article