Skip to content

[Master]Error when creating a Pick "Nothing to handle. The quantity to be picked is in bin W-09-0002, which is not set up for picking."#9532

Draft
sanjmaurya wants to merge 1 commit into
microsoft:mainfrom
sanjmaurya:bugs/Bug-642378-Main-ErrorWhenCreatingPickNothingtohandle
Draft

[Master]Error when creating a Pick "Nothing to handle. The quantity to be picked is in bin W-09-0002, which is not set up for picking."#9532
sanjmaurya wants to merge 1 commit into
microsoft:mainfrom
sanjmaurya:bugs/Bug-642378-Main-ErrorWhenCreatingPickNothingtohandle

Conversation

@sanjmaurya

@sanjmaurya sanjmaurya commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Bug 642378: [Master][ALL-E] Error when creating a Pick "Nothing to handle. The quantity to be picked is in bin W-09-0002, which is not set up for picking."

Fixes AB#642378

Issue :- Error when creating a Pick "Nothing to handle. The quantity to be picked is in bin W-09-0002, which is not set up for picking."

Cause :-

The failure is in ValidateQtyPickedInShipmentBin in WarehouseAvailabilityMgt.Codeunit.al:904. It checks the picked-not-shipped quantity only in the location's default Shipment Bin Code (W-09-0001). In the repro (step 7) the shipment bin was changed to W-09-0002, so the default ship bin shows 0 → it wrongly sets QtyPicked := 0. That cascades: QtyReservedOnPickShip becomes 0 while ReservedQtyOnInventory stays 160, so CalcAvailabilityAfterReservationImpact(40, 160, 0, 0) returns max(0, 40 − 160) = 0 → "Nothing to handle."

Solution :-

Replaced the single default-bin check with a new helper CalcQtyOnShipmentBins that sums the item's quantity across all Ship-type bins (any bin whose Bin Type has Ship = true), not just the default one. So the 160 in W-09-0002 is correctly recognized, QtyPicked stays 160, QtyReservedOnPickShip = 160, and availability becomes max(0, 40 − 0) = 40 → the pick for 40 succeeds.

The Bin Mandatory + Shipment Bin Code <> '' guard is kept, so locations without a default shipment bin behave exactly as before. Analyzer/compile is clean.

Note: this is verified by full code tracing, not a live BC run — please rebuild and re-run your exact repro to confirm the pick now creates 40.

@github-actions github-actions Bot added From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item labels Jul 16, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 16, 2026
@JesperSchulz JesperSchulz added the SCM GitHub request for SCM area label Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants