Document Service: Error in validating field

Hi ,

I Create the Document Service and i consume the Service in to the visualStudio … When i run the Code in Visual Stdio it shows the Error… in Console Creation has been Cancelled …

In exception Blog it shows that ERROR:Error in validating Field ,Creation is cancelled .My visual Studio Code is attached Below …

salestable.SalesId = “SO-101367”;
salestable.CustAccount = “1101”;
salestable.InvoiceAccount = “1101”;
salestable.CurrencyCode = “USD”;
salestable.CustGroup = “20”;
salestable.LanguageId = “en-us”;
salestable.ShippingDateRequested = Convert.ToDateTime(“02/14/2017 12:00 AM”);
salestable.ShipCarrierDlvType = SO.AxdEnum_ShipCarrierDlvType.Ground;
salestable.ShipCarrierDlvTypeSpecified = true;
salestable.Payment = “N001”;
salestable.PurchOrderFormNum = “POhgfkafk”;
salestable.DlvMode = “10”;
salestable.DeliveryDate = Convert.ToDateTime(“2/14/2017”);
SalesOrderSO.SO.AxdEntity_SalesLine salesline = new SO.AxdEntity_SalesLine();//SalesLine
salesline.CurrencyCode = “USD”;
salesline.CustAccount = “1101”;
salesline.ShippingDateRequested = Convert.ToDateTime(“02/14/2017 12:00 AM”);
salesline.ItemId = “1000”;
salesline.SalesQty = 1;
salesline.SalesUnit = “ea”;
salesline.SalesId = “SO-101365”;
salesline.SalesQtySpecified = true;
salesline.CustGroup = “20”;

It says that validation of a field failed. Why don’t you use the debugger to see what’s going on? The debugger will tell you more than we can.
I can’t even review your code, because it’s just a snippet and not the whole thing.