Errors and Warnings
This section lists errors and warnings that may occur when using the DevExtreme Data Library.
Signals that a data-related error occurred in external code with which the DevExtreme data works.
Occurs when the an unknown aggregating function is specified.
This error may occur in widgets that include the "summary" feature. For example, if you specify a not-valid summaryType for the DataGrid widget, this error will occur.
Occurs when the unsupported OData version in specified for the ODataStore or ODataContext object.
Acceptable OData versions are the following: 2, 3, 4.
Occurs when an unknown filter operation is used.
The available operators are: "=", "<>", ">", ">=", "<", "<=", "startswith", "endswith", "contains", "notcontains".
The thenby() method can only follow the sortBy(getter), sortBy(getter, desc), thenBy(getter, desc), or another thenBy(getter) method.
Occurs when calling a key-dependent method of the Data Store for which a key is not specified.
Occurs when the value that is set to the data configuration option of the ArrayStore object is not an array.
This option takes on an array only.
Occurs when an auto-generated key is required for a Data Store with a compound key expression.
This error is specific for the LocalStore and ArrayStore Data Stores. You can specify a compound key expression for these Data Stores by assigning an array to the key configuration option. If a key is undefined, it will be generated automatically based on the specified key expression. However, a key cannot be generated for a compound key expression. So, make sure keys are specified for data with compound key expressions.
Occurs when calling the update(key,values) method and specifying the key(s) that cannot be found.
Occurs when creating the Query object by using the createQuery method of a CustomStore.
This error is specific to the CustomStore Data Store, because this type of a DevExtreme Store does not support the creation of queries.
Occurs when calling a Custom Store method that is not implemented.
This error is specific for the CustomStore Data Store.
Occurs when a method implemented for a Custom Store returns an unexpected result.
This error is specific to the CustomStore Data Store.
When creating a LocalStore instance, specify the name configuration option, which is required for identifying the data within the storage.
Occurs when an unknown key type is detected.
Occurs when calling the update(key,values) method to modify a key(s).
This error is specific to ArrayStore Data Stores.
Occurs when the server returns a non-numeric value after the totalCount method of an ODataStore instance is called.
This error is specific to ODataStore data stores.
Occurs if a filter expression contains different group operators within a single group.
Specify a filter expression that does not contain different group operators in a single group.
The following example illustrates invalid and valid filter expressions.
//Invalid filter expression var filterExpression = [ [ "name", "contains", "A"], "and", ["team", "=", "Accounting"], "or", ["team", "=", "Management"] ] //Valid filter expression var filterExpression = [ [ "name", "contains", "A"], "and", [ ["team", "=", "Accounting"], "or", ["team", "=", "Management"] ] ]
Occurs if the store.type option of a DataSource instance holds an unknown store type.