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

Announcements

No record found.

News and Announcements icon
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 636

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

  • Suggested answer
    Rehan Satti Profile Picture
    636 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,812 Moderator on at

    Thanks for confirmation.

  • Suggested answer
    Rehan Satti Profile Picture
    636 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 753 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 583 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 302 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans