Steps to reproduce:
- Enable unresolved parties on emails
- Create a new contact record with email address : "testemail@notarealdomain.com" and last name : "testemail@notarealdomain.com"
- Create a new email activity
- Copy or type "testemail@notarealdomain.com" in TO: field
- DO NOT CLICK MAGNIFYING GLASS
- Save the draft activity.
- Receive error : "Contact With Id = 00000000-0000-0000-0000-000000000000 Does Not Exist"
Cause:
in a function that is named $hf_2 in the minified formcontrols.js file there is this block
if (this.$5Y_2.test($v_1.name) && this.get_allowUnresolvedPartiesOnEmailSend()) { this.$HV_2($v_1); var $v_2 = (this.$1_1.$6_2).$3j_3; (this.$1_1.$6_2).setCategoryForUnknownEmailItem($v_2, $v_1, this.get_allowUnresolvedPartiesOnEmailSend()); }
The name resolves to an email, the allowUnresolvedPartiesOnEmailSend resolves to true, and the category is set as an unresolved party BUT the type bound to the lookup control doesn't reset off of contact because it did find a valid contact for this address. This causes it to think that it is both a contact and an unresolved party resulting in the exception.
This is occurring for us in Microsoft Dynamics 365 Version 1612 (8.2.2.112) (DB 8.2.2.112) on-premises