web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Unable to lookup msdyn_parties with values {}

(0) ShareShare
ReportReport
Posted on by 465

Hi,

When dual write is enabled, if you try to create a contact by going to customers page --contacts --view contacts -- add contact. you'll get this error. Is there any fix for this other than creating the contact by clicking add contact directly instead of from view contacts?

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi D365Fo user,

    Refer to the below link. You need to make use of Add contact instead of view contact. This is the only suggestion given in the Microsoft documentation if the dual write is enabled.

    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/dual-write/dual-write-troubleshooting-party-gab

    pastedimage1666697863886v1.png

    Thanks,

    Girish S.

  • D365FO user Profile Picture
    465 on at

    Hi Girish,

    I'm getting the same error when trying to create a contact by code using smmContactPersonV2Entity

    I read this but i'm not sure what relation should i do exactly

    ttsbegin;
    DirPartyTable dirPartyTable = DirPartyTable::findRec(CustTable::find(reqContract.CustAccount()).Party);  
    smmContactPersonV2Entity contactPersonEntity;
    
    NumberSeq numberSeq                         = NumberSeq::newGetNum(ContactPerson::numRefContactPersonId());
    contactPersonEntity.ContactPersonId         = numberSeq.num();
    contactPersonEntity.AssociatedPartyNumber   = dirPartyTable.PartyNumber;
    contactPersonEntity.FirstName               = contact.Name();
    
    if(contact.Email()) //assume contact is defined
    {
        contactPersonEntity.PrimaryEmailAddress = contact.Email(); 
    
    }
    
    if(contact.Phone())
    {
        contactPersonEntity.PrimaryPhoneNumber = contact.Phone();
    }
    
    contactPersonEntity.insert();
    ttscommit;


    pastedimage1666872863130v1.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans