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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

401 "API ERROR" message over the weekend

(0) ShareShare
ReportReport
Posted on by 5

I hope this is a simple issue or something i overlooked. I built an integration with Dynamics that reads any new or updated data every 10m. It grabs the array of objects and sends them into a different platform. Everything was running smoothly up until 7pm on Friday. I then noticed this morning that it failed the entire weekend and started to work perfectly again Monday morning around 5am. 

I'm assuming this may be an issue with either making calls to a sandbox environment over the weekend or perhaps some type of "business hours" issue that i need to change in dynamics advanced settings? Any help would be great!

I have the same question (0)
  • BenRamos Profile Picture
    5 on at
    RE: 401 "API ERROR" message over the weekend

    Circling back i'm realizing this is an authentication error and it only happened over the weekend with a sandbox environment. Still haven't figured out why it failed between Friday 7pm and Monday 5 am (EST)

  • BenRamos Profile Picture
    5 on at
    RE: 401 "API ERROR" message over the weekend

    For anyone who reads this here's an update:

    I have set up an API integration with Dynamics and i'm just realizing i've been making calls to:

    yourorganization.crm.dynamics.com

    but I've been having strange outages (401 auth issues). I read a response in a different forum post where the user was experiencing similar 401 auth issues.

    The response in that forum post talked about playing with the URL, and how it might help to send the request to a different version of the API or playing with capitalization which i found strange.

    One response said to navigate to SETTINGS >> CUSTOMIZATIONS>>DEV RESOURCES to find your Service Root URL.....

    When i did i noticed it was actually:

    yourorganization.api.crm.dynamics.com

    Is there a real difference between the two? YES. I  tested adding in the {.api} that i was missing initially and all 401 issues disappeared. I'm not sure if it was a coincidence or not, but hey it worked! Either way i now know where to grab the wep API service rool 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 247

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 166 Super User 2025 Season 2

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 164

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans