Hello @Pankaj Singh !
Okay got it it is the whole Setup
since you want to perform a pure Insert operation where the ContactID
(GUID) should be autogenerated by Dataverse, you need to change the approach to avoid the Upsert behavior.
To remove key columns from mapping:
- Navigate to the Mapping tab in the Copy Data activity.
- Make sure the ContactID column, or any other key column, is not mapped. If it is, ADF will require a value for this column, which can lead to the error you've encountered.
- By excluding the ContactID from mapping, Dataverse will generate a new GUID for each record automatically.
- Set Write Behavior to Insert:
- While ADF's UI doesn't explicitly offer an "Insert" option like it does for other sinks, you can ensure an insert operation by not mapping any key columns and not setting the dataset to perform an Upsert.
- Not mapping key columns indicates that the operation should be an insert.
- Optionally pre-populate data in Dataverse:
- Should you choose to assign GUIDs yourself or prevent conflicts, consider pre-generating GUIDs in your data source. If you prefer automatic GUID generation by Dataverse, make sure the ContactID is neither in the source data nor mapped in the copy activity.
--
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards