I am trying to build a data pipeline that process order data in ADF.I have two payloads of Order received event and Order Update event which have customer ID and few other keys as my primary key.I'm trying to up-sert the record as my operation. When running the records (one order received and other order update) for same customer number ADF is throwing Primary key error as it cannot insert multiple values for same customer number and other keys.
PS: Order received event is when customer gives order and Order update event is an update for that order(if the given order is either acknowledge or cancelled or held) so this update should be upserted in our sql table.I have done everything as of my knowledge in ADF such as adding keys,mapping , checking upserting and inserting boxes correctly etc.
Kindly help.