cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Service Layer to Create Delivery

jesus_perea
Explorer
0 Kudos

Hello, I am trying to create a delivery with base document Sales Order and several lines, additional Delivery has Lots and Locations. The problem arises when I add the fields at the line level to link the base document.

I have tried to create the delivery without the base document and it works.

I have tried to create the delivery with a single line, lots, locations and it works.

But when doing so with more than one line, get the error message: "Internal error (-10) occurred"

I hope you can support me with this case.

Request:

{
	"CardCode": "CL800100200",
	"DocDate": "20181002",
	"TaxDate": "20181002",
	"DocDueDate": "20181002",
	"NumAtCard": "PRUEBA PHR",
	"DocumentLines": 
		[
			{
				"BaseType": "17",
				"BaseEntry": 579910,
				"BaseLine": 0,
				"ItemCode": "MD000001",
				"Quantity": 1,
				"WarehouseCode": "BOD01",
				"BatchNumbers": 
				[
					{
						"BatchNumber": "10350816",
						"Quantity": 1,
						"BaseLineNumber": 0
					}
				],
				"DocumentLinesBinAllocations":
				[
					{
						"BinAbsEntry": 1,
						"Quantity": 1,
						"AllowNegativeQuantity": "tNO",
						"SerialAndBatchNumbersBaseLine": 0,
						"BaseLineNumber": 0
					}
				]
			},
			{	"BaseType": "17",
				"BaseEntry": 579910,
				"BaseLine": 1,
				"ItemCode": "MD000002",
				"Quantity": 1,
				"WarehouseCode": "BOD01",
				"BatchNumbers": 
				[
					{
						"BatchNumber": "7735E",
						"Quantity": 1,
						"BaseLineNumber": 1
					}
				],
				"DocumentLinesBinAllocations":
				[
					{
						"BinAbsEntry": 1,
						"Quantity": 1,
						"AllowNegativeQuantity": "tNO",
						"SerialAndBatchNumbersBaseLine": 0,
						"BaseLineNumber": 1
					}
				]
			}
		]
}


Response:

{
    "error": {
        "code": -10,
        "message": {
            "lang": "en-us",
            "value": "Internal error (-10) occurred"
        }
    }
}

Accepted Solutions (0)

Answers (0)