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 :
Small and medium business | Business Central, N...
Suggested Answer

ODATAV4 Batch call Business central using Oauth2.0 is throwing strange error (Resource not found for the segment 'v2.0'.)

(0) ShareShare
ReportReport
Posted on by 634

Hi Bc Experts,

I am working on posting a batch call on standard job journal which is exposed as web service. Getting a very strange (error. Resource not found for the segment 'v2.0'.)

{
    "responses": [
        {
            "id""kkg",
            "status"404,
            "headers": {
                "content-type""application/json; charset=utf-8"
            },
            "body": {
                "error": {
                    "code""BadRequest_NotFound",
                    "message""Resource not found for the segment 'v2.0'."
                }
            }
        }
    ]
}

pastedimage1655797001293v1.png

Although the request is working perfectly in single API call. 

Regards 

Rehan Satti

I have the same question (0)
  • Suggested answer
    Rehan Satti Profile Picture
    634 on at

    After spending some time, I figured it out that, we have to use the company onwards url for successful request.

    I hope it might help some one else.

    pastedimage1655802209232v1.png

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Thanks for confirmation.

  • Suggested answer
    Rehan Satti Profile Picture
    634 on at

    Let me add some more light on current behavior on  OData call from Authentication prospective.

    Microsoft feature of Web Service Access Keys (Basic Auth) for Business Central Online is removed in Business Central 2022 release wave 1.

    However I can still use Basic Auth for single API call it works perfectly fine.  

    When I try to use basic Auth with batch call Although call is success full but it return  " Web service call failed because user could not be authenticated or authorized."

    pastedimage1655882121790v1.png

    we have to use OAuth2.0 for a successful batch call in business central.

    pastedimage1655882668821v2.png

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans