# Updating Data

You can update the data of a **vector/raster spatial data source** or a **non-spatial data source**. This process allows you to replace the file that provides data to the data source (DS).

**1. Open the Update Interface**

Select the **Update Data** function to access the interface where you can:

* upload a **new file**,
* select an **existing file** already stored in JMap Cloud.

{% hint style="warning" %}
If the selected file is not compatible with the existing data source, an error message will appear.
{% endhint %}

**2. View and Edit Information**

The interface displays the current properties of the data source:

* **Name**,
* **Coordinate Reference System (CRS)** (for spatial DS),
* **Description**,
* **Tags**.

You can keep these values as they are or update them as needed.

**3. Review and Configure Attributes**

The **attributes** of the new file are shown. You can **index specific attributes** to facilitate searches.\
Depending on the **file format**, some **additional parameters** must be completed. These are explained in the [spatial data file](https://docs.jmapcloud.io/en/jmap-cloud-portal/user-guide-for-jmap-cloud-portal/creating-data-sources/vector-raster-data-files#file-settings) and [tabular data file](https://docs.jmapcloud.io/en/jmap-cloud-portal/user-guide-for-jmap-cloud-portal/creating-data-sources/non-spatial-tabular-data-files#file-settings) sections.

A **new table** is created in JMap Cloud with the updated data. The **previous table** is automatically deleted.

**4. Finalize the Update**

Click **Save**. Once the changes are applied, the status of the data source is updated to **Ready**.

{% hint style="warning" %}
If the **CRS of the new file** is different from the one configured for the data source, the data will **not be displayed** on the map when using the **View Information** function.
{% endhint %}

**5. Impact on Map Layers**

The new file may differ from the original in terms of **format**, **CRS**, **geometries**, or **attributes**.\
In such cases, you will need to **update the configuration of the map layers** that use this data source.
