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...
Unanswered

How to connect Business Central OnPrem to Common Data Service

(1) ShareShare
ReportReport
Posted on by

In Dynamics 365 Business Central v160 (16.5) we use OAUTH 2.0 as connection protocol instead of previous legacy protocols. After adding consent to the Azure AD app so that the solution can be injected to CDS, an error may be shown to the user and an event is written in the application event log file.

pastedimage1601043947906v1.png

Application event log file:
Server instance: BC160
Category: Runtime
ClientSessionId: ed651d76-4dfc-41dc-804d-e96cff845704
ClientActivityId: 87f46331-46b0-4079-9c8b-10158b32d51c
ServerSessionUniqueId: 3cbfde90-7a7c-4e6a-8923-7c96b358f888
ServerActivityId: 9042176b-76ec-4ab3-961d-7f57318fa56a
EventTime: 09/25/2020 13:48:39
Message (NavNCLDialogException): This message had personal data removed. The original may still be in transient telemetry. Find it using the transientTelemetryId.
ParentException: NavNCLDialogException
Failed to acquire an access token for %1.

A workaround does exist. Download the following package from https://www.nuget.org/packages/Microsoft.Identity.Client/4.14.0. Extract the files and from \lib\net45, copy the following files to the Service folder of the NST (%programfiles%\Microsoft Dynamics 365 Business Central\160\Service).

Microsoft.Identity.Client.dll

Microsoft.Identity.Client.xml

NOTE: we expect version 14.0, a higher version will not work with 16.5.

Restart the NST. After that, that specific error will no longer occur and the CDS connection can be enabled or redeployed.

Thanks.

I have the same question (0)
  • Andy Sather Profile Picture
    on at

    Thanks Marco

  • Kazuma Nagayoshi Profile Picture
    on at

    Is this on-premises environment built with Docker? If you're in a Docker environment, you can ask them for help with an issue on GitHub.

    github.com/.../navcontainerhelper

  • Community Member Profile Picture
    on at

    A new Common Data Service onboarding experience will be provided, where users will be able to connect to a Common Data Service environment and associate a Business Central company with a Common Data Service business unit. This will allow for multiple companies to connect to a Common Data Service environment. During setup, the Common Data Service connection entities from the default Common Data Service database will be synchronized.

    Extensibility support for developers developing Business Central integrations for Common Data Service is provided. With the extensibility support, Business Central Extensions can be written to add fields and tables to the synchronization process, also extending existing tables. In addition, transformation can be created, transforming and mapping values.

  • BCCluj Profile Picture
    5 on at

    Hi Marco,

    Could it be that the same problem persist for BC17 Cu1 Om Prem?

    After the admin consents, the page in BC stays open forever and nothing happens.

    When closing it, the same message "Failed to acquire an access token for " appears.

  • Greg Enns Profile Picture
    1,106 on at

     Marco Mels Are these the steps still applicable for BC20 on-prem to connect to CRM in the cloud?

    I have Oauth working for my Production BC14 on-prem, but trying to get BC20 on-prem test environment connected to my cloud CRM sandbox environment and running into problems. Thanks in advance!

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,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans