DevExtreme Vue - Errors and Warnings API
This section lists errors and warnings that may occur when using the DevExtreme Data Library.
E4000
Signals that a data-related error occurred in external code with which the DevExtreme data works.
E4001
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.
E4002
Occurs when the unsupported OData version in specified for the ODataStore or ODataContext object.
Acceptable OData versions are the following: 2, 3, 4.
E4003
Occurs when an unknown filter operation is used.
The available operators are: "!", "=", "<>", ">", ">=", "<", "<=", "startswith", "endswith", "contains", "notcontains".
For more information on filtering syntax, see the Filtering topic.
E4004
The thenby() method can only follow the sortBy(getter), sortBy(getter, desc), thenBy(getter, desc), or another thenBy(getter) method.
E4006
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.
E4007
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.
E4009
Occurs in a store when its byKey(key) function does not return a value.
Ensure that a value can be found for any key passed to the byKey(key) function.
E4010
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.
E4011
Occurs when calling a Custom Store method that is not implemented.
This error is specific for the CustomStore Data Store.
E4012
Occurs when a method implemented for a Custom Store returns an unexpected result.
This error is specific to the CustomStore Data Store.
E4013
Occurs when the name option is not specified for a LocalStore instance.
When creating a LocalStore instance, specify the name configuration option, which is required for identifying the data within the storage.
E4014
Occurs when an unknown key type is detected.
This error is specific for the ODataStore and ODataContext objects. The keyType property accepts the following values: String, Int32, Int64, and Guid.
E4015
Occurs when calling the objectLink(entityAlias, key) method and passing an entity alias that is not registered for the given ODataCOntext object.
E4017
Occurs when calling the update(key,values) method to modify a key(s).
This error is specific to ArrayStore Data Stores.
E4018
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.
E4019
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"] ] ]
E4021
Occurs if the total count of data records (totalCount) was not obtained when loading data.
This error is specific to the CustomStore Data Store.
This error occurs if the load method has resolved the Promise with an unspecified or empty totalCount, or if the totalCount method was not defined.
You can solve the problem by implementing the load method in the following manner.
var store = new DevExpress.data.CustomStore({ // . . . load: function (loadOptions) { var deferred = $.Deferred(); $.get('url/to/the/resource', loadOptions).done(function (response) { deferred.resolve({ data: response.data, totalCount: response.totalCount }); }); return deferred.promise(); } });
See Also
E4022
Occurs if the count of first-level groups (groupCount) was not obtained when loading data.
This error is specific to the CustomStore Data Store.
This error occurs if the load method has resolved the Promise with an unspecified or empty groupCount.
You can solve the problem by implementing the load method in the following manner.
var store = new DevExpress.data.CustomStore({ // . . . load: function (loadOptions) { var deferred = $.Deferred(); $.get('url/to/the/resource', loadOptions) .done(function (response) { deferred.resolve({ data: response.data, groupCount: response.groupCount }); }); return deferred.promise(); } });
See Also
E4024
Occurs in the ODataStore when a string function ("startswith", "endswith", "contains", "notcontains") is used to search or filter a non-string data field.
To avoid this error, disable the search and filter functions for non-string data fields.
W4000
Occurs when data returned from a server has an incorrect structure.
The server should return an array or an object with the data field holding an array.
W4001
Occurs in the ODataStore when a single field is assigned both to the keyType and fieldTypes options. Remove the field's name from one of the options.
W4002
Produced by the XmlaStore when an error occurs on loading data for certain cells. For details on the error, refer to the XMLA specification.
If you have technical questions, please create a support ticket in the DevExpress Support Center.