Extended Metadata (XMD) files in CRM Analytics define formatting and display customization for datasets and lenses.
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.
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.
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.
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.
Establish and follow clear naming conventions within your development team to maintain long-term consistency and prevent this issue from recurring.
005132047

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.