I am trying to update a list of Contacts which is failing because of duplicate being detected. My duplicate rule field 'Action on Edit' and 'Action on Create' is set to Allow.
code:
if(confirmedMatchesUpdates.size() > 0) {
//Duplicate rules 'alert' on attempted insert of a duplicate
try {
update confirmedMatchesUpdates;
}
catch (DMLException e) {
System.debug('retry!');
update confirmedMatchesUpdates;
}
}
Action on Edit
field is set toAllow
, shouldn't it allow the update?