Skip to Content
0
Former Member
Aug 13, 2005 at 04:34 PM

The server threw an exception (Interop.SAPbobsCOM)

32 Views

Hi all, i have a problem with my plugin (works with user defined form), in the begining it works fine but after some time fails to work properly and gives an exception on the following line.

oRecordSet = (Recordset)vCompany.GetBusinessObject(BoObjectTypes.BoRecordset);

please advice what might be the problem?

code

try

{

oRecordSet = (Recordset)vCompany.GetBusinessObject(BoObjectTypes.BoRecordset);

}

catch (Exception theException)

{

vCompany.GetLastError(out Errcode, out ErrorMessage);

Console.WriteLine("{0},,,,",Errcode,ErrorMessage,theException.Message,theException.Source,theException.InnerException);

}

oCommand = oRecordSet.Command;

oCommand.Name="Stored_Procedure";