Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Reserved item (item Number) is not on inventory while posting the sales order as shipped

Posted on by 560

Hi,

I have a procedure to call the codeunit for posting the sales order as shipped.

I have exposed it as an API and called it through Power Automate

but i got the below error.

pastedimage1681188991958v3.png

Reserved item 1005 is not on inventory
I have tried it manually also but still the same error
pastedimage1681188674568v1.png
when viewing the error call stack, it is showing
pastedimage1681188823991v2.png

"Item Jnl.-Post Line"(CodeUnit 22).ApplyItemLedgEntry line 77 - Base Application by Microsoft "Item Jnl.-Post Line"(CodeUnit 22).ItemQtyPosting line 31 - Base Application by Microsoft "Item Jnl.-Post Line"(CodeUnit 22).PostItem line 62 - Base Application by Microsoft "Item Jnl.-Post Line"(CodeUnit 22).Code line 134 - Base Application by Microsoft "Item Jnl.-Post Line"(CodeUnit 22).PostSplitJnlLine line 12 - Base Application by Microsoft "Item Jnl.-Post Line"(CodeUnit 22).RunWithCheck line 16 - Base Application by Microsoft "Sales-Post"(CodeUnit 80).RunItemJnlPostLine line 2 - Base Application by Microsoft "Sales-Post"(CodeUnit 80).PostItemJnlLine line 31 - Base Application by Microsoft "Sales-Post"(CodeUnit 80).PostItemLine line 56 - Base Application by Microsoft "Sales-Post"(CodeUnit 80).PostSalesLine line 79 - Base Application by Microsoft "Sales-Post"(CodeUnit 80).OnRun(Trigger) line 123 - Base Application by Microsoft "Sales-Post (Yes/No)"(CodeUnit 81).RunSalesPost line 12 - Base Application by Microsoft "Sales-Post (Yes/No)"(CodeUnit 81).Code line 25 - Base Application by Microsoft "Sales-Post (Yes/No)"(CodeUnit 81).OnRun(Trigger) line 10 - Base Application by Microsoft "Sales Header"(Table 36).SendToPosting line 12 - Base Application by Microsoft "Sales Order"(Page 42).PostSalesOrder line 10 - Base Application by Microsoft "Sales Order"(Page 42)."Post - OnAction"(Trigger) line 2 - Base Application by Microsoft

Any answer or suggestions to overcome this issue?

Categories:

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans