Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

The company on the selected Contact must match the company for the current Order record

(1) ShareShare
ReportReport
Posted on by 34
We're getting this error when trying to select a contact for a sales order record in D365 Sales:

Business process error
The company on the selected Contact must match the company for the current Order record:


The contact does not have a Company in its record, but we can't add a Company to the contact - we get this: 

Company: Company can be filled in only when 'Is Customer' or 'Is Vendor' is set to Yes

Of course, this is just an associated contact for the Customer record - it isn't a Customer or Vendor itself. The Customer has the same Company as the Order.
 
How would we turn off the company matching requirement? Is there something else I'm missing?
 
 
 
 
 
 
  • Verified answer
    SB-02051736-0 Profile Picture
    34 on at
    The company on the selected Contact must match the company for the current Order record
    By Company I mean the Company field representing the legal entity that the Order belongs to - not the Customer / Account. This is a multi-entity deployment.

    I think I found the problem. The column was Contact Person but the table was Contact. The version I wanted was the Contact Person column from the Contact for Customer or Vendor table. That seems to resolve the issue as it doesn't check for the legal entity (Company) that owns the Contact, but rather looks through the Customer or Vendor relationship with the Company.
  • Leah Ju Profile Picture
    Microsoft Employee on at
    The company on the selected Contact must match the company for the current Order record
    Hi,
    Did you check if any workflow or plugin is running on the Order table?
    I'm testing in the environment and it doesn't reproduce your error.
    By "company" do you mean account?
    Through checking:
    The order has the following two relationship with account and contact:
    I populated each of these two columns with two unrelated accounts and contacts and did not get an error message.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans