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...
Unanswered

Why does BC include this blank record in the API response when it's not saved to the database?

(0) ShareShare
ReportReport
Posted on by
I created custom API pages for Service Management in Business Central (Service Order, Service Item Line, Service Order Line) using standard BC tables.
 

The Problem

When I do a deep insert (POST with nested child records), the API response includes an extra blank child record that doesn't exist in the database.

Pattern:

  • Insert 1 Service Order Line → Response shows 2 (only 1 in database)
  • Insert 2 Service Order Lines → Response shows 3 (only 2 in database)


  •  

The extra record has serviceItemLineNo = 0 and other zero/empty values.

I have the same question (0)
  • Tom_Gioielli Profile Picture
    2,584 Super User 2025 Season 2 on at
    Why does BC include this blank record in the API response when it's not saved to the database?
    Moved post to BC forums.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,236

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 2,078 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans