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 :
Customer experience | Sales, Customer Insights,...
Unanswered

Unauthorized using O Data in Azure Data Factory V2 and CRM API

(0) ShareShare
ReportReport
Posted on by 5

1) Start an Edge Browser

2) Paste a Dynamics CRM link (in our case: https://xxxxxx.api.crm4.dynamics.com/api/data/v9.1 )

3) I can see the data collections which the API returns:

pastedimage1617702349282v2.png

4) Now start Azure Data Factory and click ‘Copy data’:

pastedimage1617702367881v3.png

5) Go to ‘Source’ – ‘Generic protocol’ and click button ‘New connection’ right on the screen.

Select ‘O Data:

pastedimage1617702386253v4.png

 6) Enter the same URL used in Edge and provide an authentication type, user name and password. After that click 'Test connection’.

 pastedimage1617702398677v5.png 

 

The error message is: 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 

The user is an AAD user and is admin in Dynamics CRM. Using Edge with this user is showing the user has enough permissions. 

Why is the connection failing in ADF?

 

I have the same question (0)

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans