How to figure out errors ViewExceptions .NET API

I'm trying to insert an order using the API - and I'm getting back an error that just says 6666

How can I find what this means, and in general, is there a way to get the COM exceptions and error codes? I know how to get session.Errors, but that is empty in this case.

A I'm trying to do is this. If I remove the RecordCreate, it breaks on setting the CUSTOMER value but it doesn't say why

var view = OpenView("OE0520");

view.RecordClear();
view.RecordCreate(ViewRecordCreate.Insert);

view.Fields.FieldByName("ORDNUMBER").SetValue(order.OrderNumber, false);
view.Fields.FieldByName("CUSTOMER").SetValue(order.CustomerID, true);

Parents Reply Children
  • in reply to Vega

    I was using Session.Errors but that is empty in this case, other then that just a try/catch. I see they return a code '6666', but there's no reference as to what that means. So, I was wondering if they have the codes listed somewhere