Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

401 "API ERROR" message over the weekend

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!

  • BenRamos Profile Picture
    BenRamos 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.

  • BenRamos Profile Picture
    BenRamos 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)

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