Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Can't create a Service Item through Custom API through OData : Internal_RecordNotFound

(1) ShareShare
ReportReport
Posted on by 10

Hi,

I'm trying to create a Service Item entity through a POST request through ODATA using a custom Service Item API

When I try and create the Service Item I get this error

{
    "error": {
        "code": "Internal_RecordNotFound",
        "message": "The Service Item does not exist. Identification fields and values: No.=''  CorrelationId:  cbe1bd17-0b60-476c-835d-5c694b8f699b."
    }
}

It seems the issue is with the No Series used on the Service Item to populate the No field

The JSON body I'm sending over is

{ 
  "InstallationDate": "2016-11-30",
  "Description": "Test Description",
  "D365MinimumContractTerm": "12M",
  "D365MinimumContractTermTo": "2017-11-29",
  "SalesDate": "2016-09-25"
}

This error also occurs if a specify a null or empty "No" in the JSON

If I specify a value for "No" in the JSON I get the following error

{
    "error": {
        "code": "Application_DialogException",
        "message": "You may not enter numbers manually. If you want to enter numbers manually, please activate Manual Nos. in No. Series SM-ITEM.  CorrelationId:  8ac6a927-20bb-41d8-96d2-2a1862eb81c4."
    }
}

Creating a Service Item through the UI works fine and has no problems, but how can I get this POST request working?

Thanks

  • Suggested answer
    Vaishnavi J Profile Picture
    Vaishnavi J 3,056 on at
    RE: Can't create a Service Item through Custom API through OData : Internal_RecordNotFound

    Hi Jonathan,

    Can you send me the code for the Custom API which you have created for service item?

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Can't create a Service Item through Custom API through OData : Internal_RecordNotFound

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans