on 2016 Oct 19 8:43 AM
Hi All,
This new job what i have created will be running based on last_modified >= last_extracted_dt.
if in case, we have records from source and in it, there are records deleted from source, those should get deleted from target as well (simultaneously upsert logic(Update/Insert) should also be in place). This logic should be on a existing HANA target table.
Can someone please guide me on this.
Below is the flow, i am trying to use but the delete logic is removing all records from target when it didn't find any records in source table.

Thanks,
Abdulrasheed.
Request clarification before answering.
Hi Abdul,
I thinks from the above image you are using the target table two time right. If you want to insert update and delete the data in the target table based on the source.
You can normally use the Map_Operation directly(with default op options). Enable Detect Deleted rows(s) from the table comparison table.

Regards,
Akhilesh Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Thanks for your reply. Here is what I am doing currently.
With this first two flows works fine but the last flow is deleting the expected record in target along with all records as well.
I have 6000 plus records in stage and 32 million in target where only 1 record of an ACTV_ID, i have deleted from stage for testing and i am expecting all the records of target should remain as is by deleting only 1 record from target. Target is having total three records of this ACTV_ID. Hope i am clear.
Please assist.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 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.