Skip to Content
Former Member
Apr 05, 2012 at 05:05 PM

Cannot create Invetory Transfer through DI Server


I'm trying to create an Inventory Transfer through the DI Server, but no matter what I try I keep getting -5002 Not enough data.

I've tried through the DTW sending just DocDate and FromWarehouse for the document and ItemCode, WarehouseCode and Quantity for the row and it worked. DTW template only specifies CardCode as mandatory, but this is wrong (works fine without) and DI Server still returns -5002 even with CardCode.

SDK documentation for DI API for the Add method of the StockTransfer object only states "You must values for the mandatory properties, and then call the Add method.", but stops well short of specifying which properties are mandatory. So typical!

Using v8.81.315 PL07. Not using serial numbers or batches. XML stream follow. Thanks for your help!

05/04/2012 17:44:22 Request

<?xml version="1.0" encoding="UTF-16"?>

<env:Envelope xmlns:env="">





<dis:AddObject xmlns:dis="">
























05/04/2012 17:44:22 Response (Fault)

<?xml version="1.0"?>

<env:Envelope xmlns:env="">










<env:Text xml:lang="en">Not enough data </env:Text>