Skip to Content
Former Member
Aug 29, 2008 at 07:43 AM

Invalid valid value BoYesNoEnum while update Item Prices



I have a question:

When i'm trying to update an item through the SAPbobsCOM.Item object, i get an error while updating it.

The following actions are executed:

article_prices.UserFields.Fields.Item("U_bPlist").Value = bPlist;
article_prices.UserFields.Fields.Item("U_Toeslag").Value = Convert.ToDouble(toeslag, CultureInfo.InvariantCulture);
article_prices.Currency = "EUR";
article_prices.Price = Convert.ToDouble(newPrice, CultureInfo.InvariantCulture);

if (articles.Update() != 0)
          company.GetLastError(out returnCode, out errorMessage);

The exact error i'm getting is: Invalid valid value 'B' in Enum 'BoYesNoEnum', the valid values are 'N', 'Y'

But the strange thing is that there isn't any other property i'm trying to set, and definately no property with the value 'B'. And then the other strange thing is that some items are updated, and some are not.

I tried to compare those two items (one who updates, and one who wouldnt) in the database and in SBO, but without results. I'm stunned..

Can anyone tell me what is happening?

Thanks in advance.

Jeroen Nijhuis

Edited by: Jeroen Nijhuis on Aug 29, 2008 9:43 AM