---
schema_version: "1"
id: f9ac5abadf2d990232e92ee6eb13b9f8fc2b06c6a92dd119405612b749de7b63
title: Configure the XMD for a Dataset
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_xmd/guides/task/bi-xmd-edit.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-xmd/guide/bi-xmd-edit.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ba702b1d1a1a4cf87a4284d03a168f5251eddc7a70a65f5631f2f52f9251d267
products:
  - Analytics Extended Metadata (XMD) Developer Guide
  - analytics
---

# Configure the XMD for a Dataset

You can configure the XMD file to override the default appearance of dataset fields and field values and to add actions to dimensions in charts and tables. Each dataset has a separate XMD file. While you can edit the XMD, you can’t export it.

## Before You Begin

You can also use the XMD API endpoints to edit an XMD file. For more information, see the _CRM Analytics REST API Developer Guide_.

| Required Editions                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Available in Salesforce Classic and Lightning Experience.                                                                                                                   |
| Available with CRM Analytics, which is available for an extra cost in **Enterprise**, **Performance**, and **Unlimited** Editions. Also available in **Developer** Edition. |

| User Permissions Needed |                                                                       |
| ----------------------- | --------------------------------------------------------------------- |
| To edit the XMD:        | Edit CRM Analytics Dataflows OR Upload External Data to CRM Analytics |

**note:** This procedure applies to CRM Analytics Datasets only. Data 360 objects (DMOs, DLOs, CIOs) don't support file-based XMD editing. Instead, you edit their presentation metadata directly in the UI through the Fields Panel. See [Access Data 360 XMD in the UI](https://developer.salesforce.com/docs/analytics/bi-dev-guide-xmd/guide/bi-xmd-access-data-360.md).

1.  Edit the dataset.

2.  Download the XMD file from the Edit page. If you download an old XMD version, CRM Analytics converts it to the current version.

    CRM Analytics ignores settings that it can’t convert.

3.  Edit the file with a text editor.

    To ensure that the JSON format is correct, validate it with a JSON editor.

4.  Save the file in UTF-8 format to ensure that CRM Analytics visualizations display international characters.

5.  Upload the updated file to the Edit page.

    CRM Analytics validates the XMD file. If the XMD isn’t valid, an error occurs and the updated XMD settings aren’t applied. All formatting reverts to the defaults.

    Each time you upload the XMD file, CRM Analytics overwrites the current dataset customizations. Changes in the XMD aren’t appended to previous customizations. Ensure that your XMD file contains all required customizations.

    The validation rules and related errors are in the [Extended Metadata (XMD) 2.0 Validation Rules and Errors](https://help.salesforce.com/articleView?id=Extended-Metadata-XMD-2-0-Validation-Rules-and-Errors&type=1) knowledge article.

## Next Steps

If the dataset metadata changes after you configure the XMD, such as a field is deleted or renamed as a result of changes to the dataflow, you must update the associated XMD. For example, if the XMD refers to the old field names, errors occur when you try to configure actions using the UI. The error also appears in the `errorMessage` field in the XMD file.

**See Also**

- [Extended Metadata (XMD) Reference](https://developer.salesforce.com/docs/analytics/bi-dev-guide-xmd/reference/bi-xmd-reference.md)
