web
You’re offline. This is a read only version of the page.
close
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...
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,530 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

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 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans