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?

 

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,289 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans