Skip to Content
0
May 02, 2018 at 06:30 PM

Integration failure - Quantity falls into negative inventory

177 Views Last edit May 02, 2018 at 06:32 PM 2 rev

Hi Experts,

I have been adding Deliveries based on Sales Orders using service layer and i have one case in which the delivery gives me the following Error

System.Data.Services.Client.DataServiceClientException: 
{    "error" : 
{       "code" : -10,
       "message" : 
{          "lang" : "en-us",
          "value" : "Quantity falls into negative inventory  [DocumentLines.ItemCode][line: 2]"
       }
    }
 } 

i am 100% sure that the item is available in that specific warehouse in the specific batch number and everything is just fine,

i have added the delivery as a draft to check it out and try to add it manually after checking it,

the draft is just fine the items are available in the warehouse and batches are allocated just fine i could not add it even when i'm looking at the draft and knowing nothing is off.

Note that if i copied the sales order manually and inserted same batches the document add normally and everything is fine.

Thanks in advance