Hi -
I need clarification on updating records in CDS using dataflow. Think made bad choice for the primary field of my entity.
The values of my primary field will change values with updates via dataflow over time. I have added and additional field "work item" which has unique values and set an alternate key to this field to ensure uniqueness. This new field is also used as key for field mapping of dataflow to CDS and I set a duplication check rule. Was running a dataflow where the primary field changed values and received the following error message.
Reason: Precondition Failed, Error code: 0x80060892, Message: A record that has the attribute values Work Item already exists. The entity key Work Item requires that this set of attributes contains unique values. Select unique values and try again.
Seems as if CDS tried to create a new record rather than updating the existing one . Is the primary field considered along with the new "work item" field to decide if a record is updated vs. new record created? If yes, do I need to set-up my custom entity again or is there a workaround?
Thanks in advance.