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

Notifications

Announcements

Community site session details

Community site session details

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

Type must not be in BOM Component

(1) ShareShare
ReportReport
Posted on by 53
Hi,
 
I created an API endpoint for insert Item BOM Component. While running this API post request below error return.
I have the same question (0)
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at
    Hi,
     
    Please test with type as numeric in payload like - 

    "type" : 1
     
     
    Regards,
    Saurav Dhyani
     
  • Malith Ranawaka Profile Picture
    53 on at
    Hi Saurav Dhyani,
     
    Now this error return.
     
  • Verified answer
    Malith Ranawaka Profile Picture
    53 on at
    I resolved this error in the first post with only the Parent Item No and Type then patch with other fields.
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at
    Hi Malith,
     
    Great to hear that you resolved the issue.
     
    I am sure you did something like shown below and Remove Type field from Payload.
     
        trigger OnInsertRecord(BelowxRec: Boolean): Boolean
        begin
             Rec.Type = Rec.Type::Item;
        end;
     
     
    Regards,
    Saurav Dhyani
     

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

Season of Giving Solutions is Here!

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 1,648

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 747 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 541 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans