web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,684 Moderator on at
    RE: Adding Employee through API now gives Internal_RecordNotFound error

    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
    RE: Adding Employee through API now gives Internal_RecordNotFound error

    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
    92,819 Super User 2025 Season 2 on at
    RE: Adding Employee through API now gives Internal_RecordNotFound error

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,285

#2
Sumit Singh Profile Picture

Sumit Singh 2,725

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,526

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans