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 :
Small and medium business | Business Central, N...
Answered

[Error] The contact cannot be synchronized because the company does not exist.

(0) ShareShare
ReportReport
Posted on by 2,102

Hi,

We integrate all the contacts from the CRM to the Contact-Dataverse table, and now

we tried to sync all the contacts from the Contact-Dataverse table to the Contact table in the business central, but we face the error that Company Does Not exist.

However, we have some data from the CRM side that does not contain any company [company name].

Can we sync the data without the company into the contact table? Can anyone please provide a solution for this?

pastedimage1655183729423v1.png

I have the same question (0)
  • Verified answer
    Marco Mels Profile Picture
    on at

    Hello,

    You are seeing the error "The contact cannot be synchronized because the company does not exist." because our synchronization engine, per default, only allows synchronizing Dataverse contacts that have a parent customer (in other words, once they are synchronized, they are linked to the contact of type "company" of the parent customer in Business Central).

    To override this default behavior and allow synchronization of such contacts that do not have a parent customer, you need to add this subscriber in an extension and publish it to the environment (tenant):

       [EventSubscriber(ObjectType::Codeunit, Codeunit::"CRM Synch. Helper", 'OnGetIsContactBusinessRelationOptional', '', false, false)]

       local procedure HandleOnGetIsContactBusinessRelationOptional(var Optional: Boolean)

       begin

           Optional := true;

       end;

    Thanks.

  • Inkey Solutions Profile Picture
    2,102 on at

    Hi,

    Thank You Marco Mels, we will try this solution and keep updating you on this but

    We have one question, we have the OOTB Table Config template code field in the Integration Table mapping page, please see below screen print,

    pastedimage1655195714633v1.png

    pastedimage1655195726284v2.png

    Could you please elaborate it when we use this functionality? and we tried this but it did not work, Could you tell us why it is not work?

    Thank You.

  • Inkey Solutions Profile Picture
    2,102 on at

    Hi Marco Mels,

    Thank You so much for providing the codeunit solution, This Solution is working fine now in our system.

    However, we do have questions,

    >> Is this supported way? I meant is it like we can modify any system or custom codeunit this way and override the feature or functionalities OR disable the validation? Please confirm.

    >> What if Microsoft upgrade BC version, will it get overwritten again and roll back our change?

    Kindly share your insights on the same as soon as possible so that we can determine whether we should do change at Sales side or BC side.

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    For contacts this config template is not enabled. You can verify this by creating a new contact and notice that the new contact template doesn't show up like it does when creating a new contact. This may be a bug. You can however apply the template you created to the contacts so the fields do get updated. I wasn't able to do this for the Type field though.

    You may want to raise this to our support desk / partner to so that this can be addressed or verified.

    Thanks.

  • Verified answer
    Marco Mels Profile Picture
    on at

    Hello,

    Due to the nature of BC, you are able to adjust the standard functionality via extensions in BC. If there is an issue that cannot be reproduced in standard BC (without any extension) / CRONUS company, we from Microsoft may ask you to verify if the issue does exist in your production environment without that specific extension. If it does not exist, it is an issue with the extension and you, or your partner needs to look into it yourself.

    The extensions will not be overwritten by an upgrade. In Sandbox, you may have to reinstall them after we performed an upgrade.

    Thank you.

  • Inkey Solutions Profile Picture
    2,102 on at

    Thank You So Much for the response.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans