You attempted to set a property value for a cursor or database object that was not in the range or type defined for that property.
Check for valid values and change the value to match the property type.