Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Odata Connection from Data Factory

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
  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: Odata Connection from Data Factory

    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

  • JonathanDolp Profile Picture
    JonathanDolp 15 on at
    RE: Odata Connection from Data Factory

    I'm using AAD service principal with Key.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Odata Connection from Data Factory

    Hello,

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

    Thanks.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans