Skip to main content

Notifications

Announcements

No record found.

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.
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 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
     
  • 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.
  • Malith Ranawaka Profile Picture
    53 on at
    Type must not be in BOM Component
    Hi Saurav Dhyani,
     
    Now this error return.
     
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 on at
    Type must not be in BOM Component
    Hi,
     
    Please test with type as numeric in payload like - 

    "type" : 1
     
     
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,281 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,019 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans