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...
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,362 Super User 2025 Season 2 on at
    Type must not be in BOM Component
    Hi,
     
    Please test with type as numeric in payload like - 

    "type" : 1
     
     
    Regards,
    Saurav Dhyani
     
  • Malith Ranawaka Profile Picture
    53 on at
    Type must not be in BOM Component
    Hi Saurav Dhyani,
     
    Now this error return.
     
  • Verified answer
    Malith Ranawaka Profile Picture
    53 on at
    Type must not be in BOM Component
    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,362 Super User 2025 Season 2 on at
    Type must not be in BOM Component
    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

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
Sumit Singh Profile Picture

Sumit Singh 2,674

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,580

#3
YUN ZHU Profile Picture

YUN ZHU 2,115 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans