Skip to main content
Community site session details

Community site session details

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

Return Authentication_InvalidCredentials error when using OData and API Batch

(0) ShareShare
ReportReport
Posted on by 140

Hi Experts,

 

One of our customer encounters one strange issue when using OData or API Batch.

 

It always returns error "Web service call failed because user could not be authenticated or authorized.".

 

But with the same user credentials, they can call OData service successfully. Customer uses Basic Auth.

 

Is it relate to the user permission? Can anyone shed me some ideas on this issue?

 LogScreenshot.png

Thanks

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Return Authentication_InvalidCredentials error when using OData and API Batch

    Hello,

    Suggestion is to use Postman for testing and use OAUTH for authentication. Basic Authentication is being deprecated at least in latest SaaS release of BC.

    Thank you.

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans