Skip to Content
0
Jun 11, 2009 at 08:02 AM

AR Invoice not always updated

32 Views

Hi guys I have a small problem. I am trying to update values in user defined fields in some open AR Invoices. Here is my code:

oInvoice.GetByKey(inv);

oInvoice.UserFields.Fields.Item("U_RFMPayFlag").Value = f;

oInvoice.Update();

I do this for all the open invoices. It works on all the invoices apart from the invoices that belong to a specific customer. In other words all the invoices get updated apart from the ones that belong to customer "X". Does anyone know why those invoices give an error?

The error message is "OINV.DocCur, 'Field cannot be updated (ODBC - 1029)'"

Thanks

Edited by: Costas Ioannou on Jun 11, 2009 10:02 AM

Edited by: Costas Ioannou on Jun 11, 2009 10:03 AM