Skip to Content
Former Member
Nov 26, 2009 at 05:01 PM

Invalid valid value '1 ' in Enum 'BoYesNoEnum', the valid values are 'N','Y


I get the above error when I update a quotation with the sdk.

The only fields I adjust are the price and unitprice fields.

This doesn't happen with all my quotations tho just with a few.

I can still manually update them in SAP but can't do any update of the quotation using the sdk.

When I duplicate the quotation the error remains.


Dim oDoc As SAPbobsCOM.Documents = Nothing

oDoc = sapCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oQuotations)

If oDoc.GetByKey(Docentry) = False Then Return False


oDoc.Lines.Price = JoroFunctions.IsNull(mRs.Fields.Item("tot").Value, 0)

oDoc.Lines.UnitPrice = JoroFunctions.IsNull(mRs.Fields.Item("tot").Value, 0)

If oDoc.Update <> 0 Then


end if

Any idea what might be causing this error?