# eXtreme DB UDA Error Codes

> The following error codes indicate non-fatal error conditions that might be returned by the eXtremeDB runtime while processing UDA operations:

> Mnemonic Constant Name
> Value
> Meaning
> MCO_E_UDA
> 500
> `UDA` Error Code base
> MCO_E_UDA_TOOMANY_ENTRIES
> 501
> Allocated entry number exceeded
> MCO_E_UDA_NAME_TOO_LONG
> 502
> Long entry name
> MCO_E_UDA_DUPLICATE
> 503
> Duplicate entry name
> MCO_E_UDA_DICT_NOTFOUND
> 504
> Dictionary (entry) not found by `dict_no`, name or connection
> MCO_E_UDA_STRUCT_NOTFOUND
> 505
> Structure not found by `struct_no` or name
> MCO_E_UDA_FIELD_NOTFOUND
> 506
> Field not found by `field_no` or name
> MCO_E_UDA_INDEX_NOTFOUND
> 507
> Index not found by `index_no` or name
> MCO_E_UDA_IFIELD_NOTFOUND
> 508
> Indexed field not found by `ifield_no` or name
> MCO_E_UDA_COLLATION_NOTFOUND
> 509
> Collation not found (by `collation_no` or by name)
> MCO_E_UDA_STRUCT_NOT_CLASS
> 510
> Structure is not a class, so some operations are not allowed
> MCO_E_UDA_WRONG_KEY_NUM
> 511
> Key number in `lookup()` and `compare()` differs from index spec
> MCO_E_UDA_WRONG_KEY_TYPE
> 512
> Key types in `lookup()` and `compare()` differs from index spec
> MCO_E_UDA_WRONG_OPCODE
> 513
> Invalid `OPCODE` (e.g. not `MCO_EQ` for hash index)
> MCO_E_UDA_SCALAR
> 514
> Attempt to get `mco_uda_length()` on scalar field
> MCO_E_UDA_NOT_DYNAMIC
> 515
> Attempt to call`mco_uda_field_alloc/free()` for non-vector or optional struct field
> MCO_E_UDA_WRONG_VALUE_TYPE
> 516
> Type of value and field are different in `mco_uda_put()`
> MCO_E_UDA_READONLY
> 517
> Attempt to call `mco_uda_put()` for read-only fields: `oid`, `autoid`, `autooid`
> MCO_E_UDA_WRONG_CLASS_CODE
> 518
> Invalid class code
> MCO_E_UDA_DICT_NOT_DIRECT
> 519
> In `mco_uda_db_open()`, entry holds database pointer, not dictionary
> MCO_E_UDA_INDEX_NOT_USERDEF
> 520
> Attempt to call `mco_uda_register_udf()` for non-userdef index
> MCO_E_UDA_EVENT_NOTFOUND
> 521
> event not found (by `event_no`)
> Invalid return codes
> 522-599
> Values between 522 and 599 are not valid eXtremeDB return codes

> Related Topics