In this article, we will explore how the Append Data Action works for a Target Data Extension with the help of some sample data.
When utilizing DESelect Segment to store selection results in Target Data Extensions, you have three key Data Actions at your disposal: Overwrite, Append, and Update. In this article, we will delve into the Append Data Action, its functionality, and how it impacts your Target Data Extensions within SFMC. Understanding these Data Actions will help you effectively manage and manipulate data to optimize your marketing campaigns.
Append Data Action: The Append Data Action adds new records to the existing ones in the Target Data Extension. If no Primary Key is specified, the new results are appended after the existing records, potentially leading to duplicates. However, when a Primary Key is defined, it's crucial to apply Prio Deduplication to avoid "Primary Key Violation" errors. Consider the following example.
Before running the Selection, let's assume the Target Data Extension contains the following data:
Customer ID | First Name | Last Name | Language | |
C-100 | Jane | Jones | jjones1955@hotmail.com | English |
C-101 | Kofi | Abimbola | kofi1234@gmail.com | Dutch |
C-102 | Paul | Chang | paul.chang@yahoo.com | Chinese |
C-103 | Maria | Juarez | MariaJuarez@outlook.com | Spanish |
Sample Selection results
Customer ID | First Name | Last Name | Language | |
C-102 | Paul | Chang | paul.chang@yahoo.com | Chinese |
C-104 | Marie | Benoit | m.benoit@gmail.com | French |
C-112 | Bjorn | Svenson | b.svenson@yahoo.com | Swedish |
C-100 | Jane | Jones | jjones1955@hotmail.com | English |
C-102 | Paul | Chang | paul.chang2@yahoo.com | English |
If there’s no Primary Key (PK) set, after running the Selection, the updated Target Data Extension will contain the following data: the data in the Target Data Extension will contain the previously existing data (in Italics) with the new results added after the last record of the existing data. The order of the newly added records will be the same as how the resulting records were generated.
Customer ID | First Name | Last Name | Language | |
C-100 | Jane | Jones | jjones1955@hotmail.com | English |
C-101 | Kofi | Abimbola | kofi1234@gmail.com | Dutch |
C-102 | Paul | Chang | paul.chang@yahoo.com | Chinese |
C-103 | Maria | Juarez | MariaJuarez@outlook.com | Spanish |
C-102 | Paul | Chang | paul.chang@yahoo.com | Chinese |
C-104 | Marie | Benoit | m.benoit@gmail.com | French |
C-112 | Bjorn | Svenson | b.svenson@yahoo.com | Swedish |
C-100 | Jane | Jones | jjones1955@hotmail.com | English |
C-102 | Paul | Chang | paul.chang2@yahoo.com | English |
If there's a Primary Key set, after running the Selection, the updated Target Data Extension will contain the following data (with PK Customer ID and Prio Deduplication): the Prio Deduplication is set on Customer ID as the unique value (as that’s the Primary Key) and the field deciding which one to keep is “Language = English”. The final data in the Target Data Extension (TDE) will be in the order of the existing records (in Italics) with new ones added at the end. In addition, if a duplicate record meets the Prio Deduplication criteria, it will be handled the same as existing and new records ie. if after Prio Dedup an existing record will be kept, then it will stay in its place in the final Target Data Extension result. If the de-duplicated record kept is new, it will be added to the end of the TDE so for example Paul Chang’s record with email paul.chang2@yahoo.com is new and added to the end of the TDE.
Customer ID [PK] | First Name | Last Name | Language | |
C-100 | Jane | Jones | jjones1955@hotmail.com | English |
C-101 | Kofi | Abimbola | kofi1234@gmail.com | Dutch |
C-103 | Maria | Juarez | MariaJuarez@outlook.com | Spanish |
C-104 | Marie | Benoit | m.benoit@gmail.com | French |
C-112 | Bjorn | Svenson | b.svenson@yahoo.com | Swedish |
C-102 | Paul | Chang | paul.chang2@yahoo.com | English |
Conclusion: DESelect Segment offers powerful Data Actions—Overwrite, Append, and Update—to manage Target Data Extensions in SFMC efficiently. Understanding the behavior of each action helps ensure accurate and streamlined data operations within your marketing campaigns.
Related Article:
Comments
0 comments
Please sign in to leave a comment.