I am trying to add employee data using the EmployeesInfo object with the following C# code and I get a return code of 1 with the message "Internal error (1) occurred". We are running 2007A (8.00.177) SP:00 PL:39.
EmployeesInfo oEmpInfo = ((EmployeesInfo)(B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oEmployeesInfo)));
oEmpInfo.FirstName = "John";
oEmpInfo.MiddleName = "Jacob";
oEmpInfo.LastName = "Johnson";
oEmpInfo.IdNumber = "111-22-3333";
iRet = oEmpInfo.Add();
if (iRet != 0)
{
B1Connections.diCompany.GetLastError(out iRet, out sFld);
}