Skip to Content
0
Former Member
Jan 09, 2015 at 10:15 AM

Error creating delivery notes with batch numbers and bin locations

658 Views

Hello everyone,

im having the following error when trying to add multiple items from a sales order to a delivery using batch numbers and bin locations.

As long as i am using a single item its fine. using multiple items causes the following error

Payload Role="C" id="atom1" system="0010000119" status="success" b1login="Technical User" method="Synchronous Insert" objectid="15" payload="atom2" keyname="DocEntry" keyvalue="0" DIresult="failure" DImsg="Exception : DI Error: (-5002) Invalid value [DLN1.BaseLine][line: 1]" />

this is the message i prepared and no matter how i assing line number, seriallinenumbers etc. it wont work.

<?xml version='1.0' encoding="UTF-8"?>
<CreateDelivery>
  <Document>
  <CardCode>K100002</CardCode>
  <DocDate>2014-01-08</DocDate>
  <DocDueDate>2014-01-08</DocDueDate>
  <DocNum>200027</DocNum>
  <DocumentLines>
  <row>
  <DocEntry>42</DocEntry>
  <LineNum>0</LineNum>
  <ItemCode>8705</ItemCode>
  <Quantity>10</Quantity>
  <WarehouseCode>SB</WarehouseCode>
  </row>
  <row>
  <DocEntry>42</DocEntry>
  <LineNum>1</LineNum>
  <ItemCode>8705</ItemCode>
  <Quantity>10</Quantity>
  <WarehouseCode>LH</WarehouseCode>
  </row>
  </DocumentLines>
  <BatchNumbers>
  <row>
  <BatchNumber>20150701</BatchNumber>
  <Quantity>10</Quantity>
  <BaseLineNumber>0</BaseLineNumber>
  </row>
  <row>
  <BatchNumber>20141229</BatchNumber>
  <Quantity>10</Quantity>
  <BaseLineNumber>1</BaseLineNumber>
  </row>
  </BatchNumbers>
  <DocumentLinesBinAllocations>
  <row>
  <BinAbsEntry>4</BinAbsEntry>
  <Quantity>5</Quantity>
  <BaseLineNumber>0</BaseLineNumber>
  <SerialAndBatchNumbersBaseLine>0</SerialAndBatchNumbersBaseLine>
  </row>
  <row>
  <BinAbsEntry>5</BinAbsEntry>
  <Quantity>5</Quantity>
  <BaseLineNumber>0</BaseLineNumber>
  <SerialAndBatchNumbersBaseLine>0</SerialAndBatchNumbersBaseLine>
  </row>
  </DocumentLinesBinAllocations>
  </Document>
</CreateDelivery>