My Products
Help

Error when POST PurchaseReceipt to PO with DropShip

by Steinar Møller

This error is when posting a PurchaseReceipt to an PO with type DropShip.
We are making PhurchaseReceipt and adding allocation with linetype "GoodsForDropShip" this fails with error
"Error adding purchase orders to receipt: Error: Inserting 'Purchase receipt line' record raised at least one error. Please review the errors.\r\nOne or more lines contain unassigned location and/or lot/serial number.\r\n" 

When using lineType "GoodsForInventory" it works fine.
This error is both for adding directly to endpoint PurchaseReceipt and if we first post the PurchaseReceipt and then post /controller/api/v1/PurchaseReceipt/{receiptNumber}/action/addpurchaseorder

It seems to be a bug related to DropShip orders. For testing you can just try to add a receipt against a dropship order. 

2 REPLIES 2

by Steinar Møller

Hi We solved this issue now, the solution was not to send location o the allocation lines.

 

brgds Steinar

Gabriella Hennings
CHAMPION *

by Gabriella Hennings

We get the same error when posting update/PUT to the endpoint InventoryIssue. 

the error starter during yesterday.

Best regards
Gabriella Hennings
Cloud Connection AB