Object Query Validation Rules and Error Messages

Validation rules are enforced during object query development, and, in some cases, when you deploy the MBO to Unwired Server. Messages are generated when validation rules are violated.

Object query validation rules and error messages
Severity and message Cause Action

Error: Object query cannot have an empty name.

An empty string is specified as the object query name.

Enter a valid name.

Error: Invalid object query name: '<Query Name>'. A valid identifier name must begin with an alphabetic character or an underscore, followed by alphanumeric characters or underscores.

An invalid object query name exists.

Enter a valid name.

Error: Invalid object query name: '<Query Name>', name cannot be a Java or C# language.

The object query name is a Java or C# keyword, such as binary, boolean, byte, char, date, datetime, time, decimal, double, float, object, int, integer, long, short, string, switch, and so on.

Do not use Java or C# keywords as object query names.

Error: Invalid object query name: '<Query Name>', the length must be less than 64.

The length of the object query name is longer than 64 characters.

Shorten the object query name.

Error: Duplicate object query name: '<Query Name>'.

The object query name is a duplicate.

Enter a valid and unique name.

Error: Duplicate name: '<Query Name>' in the mobile business object.

The object query name is the same as the MBO to which it belongs.

Enter a valid and unique name.

Error: The name: '<Query Name>' duplicates with an operation name.

The object query name is the same as an operation in an MBO to which they both belong.

Enter a valid and unique name.

Error: The name: '<Query Name>' duplicates with an attribute name.

The object query name is the same as an attribute in an MBO to which they both belong.

Enter a valid and unique name.

Error: Query name '<Query Name>' is a reserved word.

The object query name is a reserved word: pull, downloadData, find, or load.

Enter a valid name.

Error: Query definition cannot be empty.

The object query definition is empty.

Define a valid object query.
Note: Unwired WorkSpace validates only whether the object query is empty, but does not validate its syntax.

Warning: No attribute is mapped to parameter ‘<Para Name>’.

The object query parameter has no attribute mapping.

Specify an attribute mapping for the parameter.