Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

[Bug] Exception thrown when Allow Unresolved Parties on Emails = true and contact email address is the same as last name

Posted on by

Steps to reproduce:

  1. Enable unresolved parties on emails
  2. Create a new contact record with email address : "testemail@notarealdomain.com" and last name : "testemail@notarealdomain.com"
  3. Create a new email activity
  4. Copy or type "testemail@notarealdomain.com" in TO: field
  5. DO NOT CLICK MAGNIFYING GLASS
  6. Save the draft activity.
  7. 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

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: [Bug] Exception thrown when Allow Unresolved Parties on Emails = true and contact email address is the same as last name

    Hi Matti,

    Thank you very much for sharing this bug.

    I only have one D365 OP environment. Version 1612 (8.2.5.4) (DB 8.2.5.4) on-premises.

    I tested it and didn't encounter this bug.

    So this bug may appear in Version 1612 (8.2.2.112) or earlier versions of the D365 OP.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans