Hello experts,
currently we are trying to insert data into a table via DWC data flow. Now we want to prevent that the data flow creates duplicate entries in the target table. Problem is that the field we have to check is NOT a primary key.
EDIT: The primary key UUID is also used saved on other tables ad referenced via association.
The db table itself has a UUID as primary key and a second data field "example" for a string 100. We need to check if there is already a entry in the table (e.g. "Foobar" in data field "example").
Which approach would you recommend inside the data flow?
BR,
Christian
Request clarification before answering.
Hello Christian,
you could use the delete mode in the data flow:
1. First you would delete all the records in the target that come from the source with the same field value in this one field.
2. After that you would upsert the new records in the target.
Does that work for you?
Kind regards
Sven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.