Hello All,
I have written plugin on connection entity on procreate event and want to throw exception from it. On connection entity I also have duplicate detection rule.
I have created one duplicate connection got potential duplicate dialog clicked on Save and allowed to create duplicate record. After this, expectation is synchronous plugin should get execute and should throw error, but nothing happens could not see plugin exception and also CRM does not create record.
If I remove duplicated detection rule, Plugin triggers as expected and also get plugin error exception.
Can you please help me with this? Does this happening every connection has 2 records and when we are trying to update it create 2 instances of plugins and created deadlock?