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

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,698 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
    95,329 Super User 2025 Season 2 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

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 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans