> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/generalites/merging-elements.md).

# Merging elements

## What the merge tool does

Dastra's **item merge** feature has been designed to simplify the management of duplicates and similar items in your compliance data. It lets you **combine several identical or similar items** into a single one, without having to manually perform the **complex linking to all the associated entities** (processing activities, controllers, records, etc.).

This feature aims to **ensure the consistency of your referential** while **limiting manual handling**, saving you time and increasing reliability.

## On which elements can the merge tool be used?

The merge tool can be used on:

* Processing activities
* Assets
* Stakeholders
* Datasets
* Data glossaries
* Measures
* Categories of data subject
* Tasks
* Compliance controls (applied controls and reference controls)
* Compliance tests (operational tests and reference tests)

{% hint style="info" %}
Merging compliance controls and tests is done from the library or the project of the Compliance module, via grouped actions. You can select up to 30 items to merge. For the details of this operation, see the [Controls](/en/features/compliance/library/controls.md) and [Tests](/en/features/compliance/library/tests.md) pages.
{% endhint %}

## How do I merge elements?

Simply select the items you wish to merge:

<div align="left"><figure><img src="/files/PBtCZHxttShzUjhxM4pt" alt=""><figcaption><p><br></p></figcaption></figure></div>

Then click on "Choose a grouped action" and "Merge data":

\
![](/files/4sWg7iRdq2wi5IEXOlpH)

You will then be taken to a dedicated page that lets you:

Select the main element to be retained after merging.

Choose the fields of the elements to be deleted that you wish to retrieve into the main element.\
![](/files/kjpfRgA5AHjZAFOi4WFf)

<figure><img src="/files/6kMoxd3zUTySpXvNda1y" alt=""><figcaption></figcaption></figure>

If fields do not appear on this page, the values of the fields in the retained element are automatically retained.\
\
You can then click the "Save" button to launch the merge.

{% hint style="info" %}
The entities (processing activities, analyses, etc.) associated with the deleted elements are automatically re-attached to the retained element, avoiding any loss or disconnection in your record.
{% endhint %}

## Data quality tool — automatic duplicate detection

Dastra includes a **data quality tool** that automatically scans your repository to detect potentially duplicate items, without requiring a manual pre-selection.

### How automatic detection works

The algorithm uses **explainable scoring**: for each pair of potential duplicates, it analyses several dimensions (name, publisher, organisational unit, URL, category) and assigns a **confidence score**. This score lets you make an informed decision before merging or deleting anything.

### Supported modules

The data quality tool is available for:

* Assets
* Measures
* Stakeholders
* Datasets
* Data glossaries
* Processing activities
* Categories of data subjects

### How to access the tool

In each of these modules, click the **main menu button** (⋮ or "Actions") and select **"Data quality tool"**. All detected duplicates are listed with their confidence score. You can then choose to **merge** or **delete** each identified duplicate.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.dastra.eu/en/features/generalites/merging-elements.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
