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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Transfer Order Base Quantity to Receive Must Be 0

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I am using a custom OData web service page to modify Transfer Order lines and post shipments and receipts. I am able to set the "Qty to Ship" field on each line and post a shipment. After posting the shipment, I set the "Qty to Receive" fields for the in-transit lines and get the error "Base Qty. to Receive must be 0" when posting a receipt.

For receipts, my C# code sets the "Qty to Receive" fields, saves changes, and calls a ServiceEnabled procedure in the BC extension. This procedure passes the Transfer Order header to the codeunit, "TransferOrder-Post Receipt". This is similar to what I have done for posting purchase receipts and customer return receipts.

I am able to post a shipment from my code and then manually receive it in the BC UI and it works just fine.

Has anyone run into this before?

Thank you,

Noah

I have the same question (0)
  • S.Kawamura Profile Picture
    1,532 on at

    Hi,

    How about comparing the record after setting the "Qty to Receive" programmatically with the record after setting the "Qty to Receive" manually, field by field?

    If you entered it manually, the UI action may have changed something other than "Qty to Receive", so it would be better to identify it.

    S.Kawamura

  • Suggested answer
    Noah Miller Profile Picture
    5 on at

    Thank you for the reply.

    I compared the two records and I could not find any difference. I noticed my call to the ServiceEnabled procedure, for receipt posting, failed on the original machine but worked on another. After it worked on the second machine, it worked on the first. Not exactly sure what happened there but everything is working now without any code changes. Thank you again.

    Noah

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 521 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 306 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans