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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Adding Employee through API now gives Internal_RecordNotFound error

(0) ShareShare
ReportReport
Posted on by 5

We have a Business Central integration in our product which POSTs/PATCHes to numerous endpoints. The employees endpoint is suddenly giving us problems when adding a new employee, but only since I last looked in the summer, back when it was working fine. Nothing has changed in our code or on our demo Business Central account (using demo company), so it is a little puzzling.

When creating a new employee using a POST call, a 404 error is now returned to say that the employee record does not exist:

Our request from the app log:

POSTing JSON file to api.businesscentral.dynamics.com/.../employees

{"number":"13","givenName":"FRED","middleName":"","surname":"SMITH","jobTitle":"A","addressLine1":"","addressLine2":"","city":"","state":"","country":"GB","postalCode":"","phoneNumber":"","mobilePhone":"","status":"Active","birthDate":"1970-01-01"}

The response:

{"error":{"code":"Internal_RecordNotFound","message":"The Employee does not exist. Identification fields and values: No.='13'  CorrelationId:  xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx."}}

Is anyone else experiencing a similar issue? I can only presume this has started since the recent updates to the environment (I think two since then?) As I say, nothing has changed in our code.

Any help gratefully received!

I have the same question (0)
  • Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi

    Why you are using employee filter in your POST api.

    api.businesscentral.dynamics.com/.../employees

    Try to remove filters from the API and try with GET method API.

    Thanks.

  • DWin2022 Profile Picture
    5 on at

    The filter is just to limit the fields returned in the record you get back once the employee has been created. This has always worked fine (and does with the other end points too). I've tried without a filter but it makes no difference. You still get the same error.

    GET requests are fine. It is only when trying to create/post a new employee that you get the error.

    Used to work fine until the last update.

  • Suggested answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 on at

    Hi, I also did a simple test. It doesn't look like a problem.

    Get: api.businesscentral.dynamics.com/.../employees

    pastedimage1671409330615v1.png

    Post: 

    pastedimage1671409463830v4.png

    Hope this gives you some hints.

    Thanks

    ZHU

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,344 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,742 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,231

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans