---
title: Create & Edit Target Data Extensions
slug: segment/create-and-edit-target-data-extensions
docTags: 
createdAt: 2026-01-15T19:52:16.628Z
---

## Create a Target Data Extension

1. On the **Output&#x20;**&#x73;tep, click the **Create Data Extension** button.
2. Provide the name, description, and location of your Data Extension.

:::hint{type="warning" indent="1"}
Avoid saving Target Data Extensions in the roo&#x74;*&#x20;DESelect* folder as this is a system folder. Instead, save them in the *Data Extensions&#x20;*&#x66;older and subfolders.&#x20;
:::

3. Indicate in the Options if your new Data Extension needs to be sendable or testable and if you need to enable the Retention Settings. Click **Continue.**
4. Now you can see all the fields from the Selected Data Extensions on the left.
5. Choose the fields you would like to see in your new Target Data Extension. Select them by:
   - drag-and-dropping them to the right.
   - double-clicking on them.
   - clicking the **Add all fields** button to add all fields of a selected Data Extension at once.
6. Fields on the right-hand side will constitute your Target Data Extension. You can click on the pencil icon and see the details of the field (Field Information). You can edit: name, length of the field, and indicate if it’s a Primary Key and/or Nullable.

::Image[]{src="https://support.deselect.com/hc/article_attachments/29414448311697" size="50" width="2914" height="1312" isUploading="false" darkWidth="2914" darkHeight="1312" showCaption="false"}

:::hint{type="success" indent="1"}
Define Target Data Extension fields' maximum length property based on the maximum size of data to be stored in them. For example, if you always store a five-digit CustomerId then limit the field length to five characters.
:::

7. If you are satisfied with your new Data Extension, click **Save Data Extension**. Alternatively, click **Cancel** to return to the mapping screen without creating the new Data Extension.
8. Click **Create**. Your new Data Extension is now created in Marketing Cloud and available to use within Unaric Segment to write the results of your Selection.

:::hint{type="info"}
Creating a Target Data Extension generates the field mappings automatically. As such,  if your new Target Data Extension includes **Id** and **Email** fields, the source **Id** and **email** fields will be mapped to the target **Id&#x20;**&#x61;nd **Email&#x20;**&#x66;ields respectively.
:::

:::hint{type="success"}
Use only the necessary fields from Available Data Extensions to your Target Data Extensions instead of selecting all fields. This will lead to less data population.
:::

## Edit Target Data Extension Fields

You can modify and add fields to existing Target Data Extensions.&#x20;

1. On the **Output&#x20;**&#x73;tep, click the **Tools&#x20;**&#x62;utton on the right and choose **Edit Data Extension.**

::Image[]{src="https://support.deselect.com/hc/article_attachments/29412996484497" size="70" width="1475" height="373" isUploading="false" darkWidth="1475" darkHeight="373" showCaption="false"}

2. On the screen that opens now, you can:
   - Click the pencil icon on a field to change the properties of that field. You can change settings like **Name**,**&#x20;Length**,**&#x20;Default Value**, and indicate if a field is *Nullable / Primary Key*.

::Image[]{src="https://deselect.com/wp-content/uploads/2020/03/Accounts-sata-extension-taget-definition-in-DESelect-1024x364.png.webp" size="80" width="1024" height="364" isUploading="false" darkWidth="1024" darkHeight="364" showCaption="false"}

:::Paragraph{listStyleType="disc" indent="2"}
Add a new field to the Target Data Extension by:
:::

:::Paragraph{listStyleType="disc" indent="3"}
drag-dropping a field from the Available Fields section to the section on the right.
:::

:::Paragraph{listStyleType="disc" indent="3"}
double-click a field in the Available Fields section.
:::

:::Paragraph{listStyleType="disc" indent="3"}
use the **Add all fields** button to add all fields of a selected Data Extension.
:::

3. Click the **Update Target Data Extension** button to save the changes to the Data Extension or click **Cancel** to return without changes.

### Delete sendable field

If you are trying to delete a field that is being used in a subscriber relationship, you will receive this message:

::Image[]{src="https://support.deselect.com/hc/article_attachments/9174462684433/Screenshot_2022-09-16_at_14.45.19.png" size="50" width="822" height="452" isUploading="false" darkWidth="822" darkHeight="452" showCaption="false"}

Normally, this can be removed, however, once done, the field being used in the subscriber relationship will be automatically changed to the next field listed on your Target Data Extension.

In case you proceed with deleting the field and decided to add it again on your Target Data Extension, you will be encountering the message below.

::Image[]{src="https://support.deselect.com/hc/article_attachments/9174466662929/Screenshot_2022-09-16_at_14.46.19.png" size="40" width="814" height="646" isUploading="false" darkWidth="814" darkHeight="646" showCaption="false"}

This is because the field name of the priorly deleted field used in your subscriber relationship (since the Target Data Extension is not being updated yet) will have the same field name as what you are adding. Thus, you can provide a new name for the field that you are adding and you can proceed as you normally would.

:::hint{type="success"}
In this scenario, our recommendation will be to remove the field and add it again in two update steps:

1. Remove the field and click **Update Target Data Extension**.
2. Edit the Target Data Extension again and add the field.
3. Click **Update Target Data Extension** to finish.
:::

### Modify a field as a *Primary Key* o&#x72;*&#x20;Nullable*

If you find that the **Primary Key** an&#x64;**&#x20;Nullable** properties of your fields are grayed out and cannot be edited, you must delete the current Target Data Extension field and re-add it.&#x20;

::Image[]{src="https://support.deselect.com/hc/article_attachments/9176686005777/Screenshot_2022-09-16_at_16.02.11.png" size="50" width="828" height="686" isUploading="false" darkWidth="828" darkHeight="686" showCaption="false"}

### Add a field set as *Primary Key* o&#x72;*&#x20;Not nullable* field to an existing Target Data Extension

If the Target Data Extension has records on it and you try to add new columns that are non-nullable (like *Primary Keys*, or regular fields without the **Nullable** checkbox marked), the update of the Data Extension will result in an error, because adding the column will make the existing records invalid (as they don't have a value for the newly added column)

The workaround consists in empty the Target Data Extension from the Email Studio (opening the **Data Extension > Records > Clear Data**), and trying to perform the modification again.
