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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Odata Connection from Data Factory

(0) ShareShare
ReportReport
Posted on by 15

I'm trying to create an application (app registrations) in MS Azure to a remote tenant that will be used by Data Factory.  The App is an Odata connection to the customer card in BC.  I continue to receive the error:

Connection failed
Failed to create odata connection to RequestUrl. Failed to get metadata of odata service, please check if service url and credential is correct and your application has permission to the resource. Expected status code: 200, actual status code: Unauthorized, response is : {"error":{"code":"Authentication_InvalidCredentials","message":"The server has rejected the client credentials. CorrelationId: db49fdef-1bd6-4180-b56e-96cc9bfa3d06."}}. Activity ID: d8dcaafe-db9b-40a2-a6a7-a2e09452369a.
I can successfully connect to this card via excel (odata connection) but not with a service app for Data Factory
Has anyone done this successfully and or is there a MS document on steps to complete?
Thank you - Jonathan
I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    What type of authentication are you using? Does it work with Postman?

    Thanks.

  • JonathanDolp Profile Picture
    15 on at

    I'm using AAD service principal with Key.

  • Suggested answer
    JAngle Profile Picture
    159 on at

    A basic authentication should be enough. On the user card you can set the key value, button for doing so. Take that value and the username. So in AAD I might have josh@somedomajn.onmicrosoft.com but the username value is just Josh. If data factory accepts that type of authentication it should work.

    Failing that you might need a different auth method: docs.microsoft.com/.../authenticate-web-services-using-oauth

    Other question being is data factory on premise? Might be that the firewall is blocking access to the BC URL

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,556 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,028 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 877 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans