Parameter and Argument Validation Rules and Error Messages

These validation rules and error messages apply to mobile business object parameters and arguments, and are enforced during MBO development, and, in some cases, when you deploy the MBO to Unwired Server. Messages are generated when validation rules are violated.

Parameter and argument validation rules and error messages
Severity and message Cause Action

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

The parameter name is invalid.

Enter a valid name.

Error: Invalid parameter name: '<Para Name>', name cannot be a Java or C# language.

The parameter 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 parameter names.

Error: Invalid parameter name: '<Para Name>', the length must be less than 100.

The length of the parameter name is longer than 100 characters.

Shorten the parameter name to less than 100 characters.

Error: Duplicate parameter name: '<Para Name>’.

The name of the parameter (case insensitive) is the same as an existing parameter.

Enter a valid and unique name.

Warning: No parameter mapped to argument: '<Arg Name>'

A complex type has at least one parameter within it that is not mapped to an argument.

Map all parameters within a complex type to arguments.

Error: The argument '<Arg Name>' in operation '<Oper Name>' is not nullable and does not have a parameter mapped, thus it must have a default value.

A default value is not specified for the operation's parameter, which may result in a runtime operation failure.

Specify a default value for the argument.

Error: Attribute '<Attr Name>' cannot be mapped to more than one parameter.

An attribute has more than one Propagate to mapping.

Remove additional mappings.

Error: The data type of the parameter '<Para Name>' can not map to the data type of the argument.

The datatype of the parameter and the datatype of the argument do not match.

Change the datatype of the parameter to match that of the argument. Or change the type of the argument if it is not read-only.
Note: Make sure the argument type matches that of the data source for JDBC data sources.

Warning: Parameter '<Para Name>' should not be nullable when it is mapped to a non-nullable argument.

The nullability of the parameter does not match that of the argument. For a non-nullable argument, the mapping parameter should also be non-nullable.

Change the parameter to non-nullable.

Warning: Parameter data length is larger than the mapped argument length, value truncation might occur: '<Para Name>'.

The datatype length of the parameter does not match that of the argument.

Change the datatype length of the parameter or that of the argument.
Note: Unwired WorkSpace allows the parameter datatype length to be shorter than the length of the argument.

Warning: The default value of parameter '<Para Name>' should not be set to '<NULL>' when its ‘Fill from attribute’ '<Attr Name>' is a primary key.

A null value is assigned to the parameter, and the parameter’s Fill from attribute is a primary key.

Assign a non-null value to the parameter.

Warning: The default value of argument ‘<Arg Name>’ should not be set to ‘<NULL>’ when it is not used in target mobile business object and its ‘Propagate to’ attribute ‘<Attr Name>’ is a primary key and not mapped.

This warning occurs under these conditions:

  1. The load argument is not used in the target MBO in a relationship.
  2. The load argument has a null default value.
  3. The Propagate to attribute of the load argument is a primary key and is not mapped to a data source column.

Assign a non-null default value to the load argument.

Warning: Non-updatable parameter should have ‘Fill From Attribute’ defined: ‘<Para Name>’.

A nonupdatable parameter does not have a Fill from attribute setting.

Set the Fill from attribute for the parameter.

Error: The default value of a non-updatable parameter that has no ‘Fill from Attribute’ or personalization key should be set for ‘CREATE’ type operation: ‘<Oper Name>‘

A create operation has a parameter that does not have a Fill from attribute or a personalization key set.

Specify a default value for the parameter.

Error: The default value of a non-updatable parameter that has no personalization key should be set for ‘OTHER’ type operation: ‘<Oper Name>‘

An other operation parameter does not have a personalization key set.

Specify a default value for the parameter.

Error: Data type of the bound personalization key cannot map to the parameter: ‘<Para Name>‘.

Datatype mismatch.

Change the datatype of the parameter or the datatype of the personalization key so they match.

Warning: Parameter data length is shorter than the bound personalization key’s data length, value truncation might occur: ‘<Para Name>‘.

The length of the datatypes do not match.

Change the length of the parameter or that of the personalization key so they match.

Warning: Parameter ‘<Para Name>’ should not be bound to personalization key ‘<PK Name>’ whose default value is set to ‘’ when its ‘Propagate to’ attribute ‘<Attr Name>’ is a primary key.

The parameter is bound to a misconfigured personalization key.

Redefine the personalization key according to the message, or remove the mapping.

Error: The nullability of the parameter ‘<Para Name>’ should be the same as the personalization key: ‘<PK Name>’.

Parameter and personalization key nullability mismatch.

Change the nullability of the parameter or that of the personalization key.

Error: Data type of the parameter ‘<Para Name>’ must be the same as that of its selected synchronization parameter.

Datatype mismatch.

Change the datatype of the parameter or that of the synchronization parameter so they match, or map the parameter to a different synchronization parameter.

Warning: Parameter data length is shorter than the ‘Synchronization Parameter’ length, value truncation might occur: ‘<Para Name>’.

The datatype lengths do not match. At runtime, when the synchronization parameter passes its value to the load argument, the value may be truncated.

Change the length of either parameter so they match.

Error: Data type of the attribute cannot map to the parameter: ‘<Para Name>’.

Datatype mismatch.

Change the datatype of the parameter or that of the attribute so they match, or map to another appropriate attribute.

Warning: Parameter data length is larger than that of the attribute it propagates to, value truncation might occur: ‘<Para Name>’.

The datatype lengths do not match. At runtime, when the parameter passes its value to the propagated attribute, the value may be truncated.

Change the datatype length so they match.

Warning: The maximum length of the operation parameter is different from the fill from attribute’s: ‘<Para Name>’.

The datatype lengths do not match. At runtime, when the attribute passes its value to the parameter, the value may be truncated.

Change the datatype length so they match.

Error: Binary parameter default value cannot exceed 16384 byte: ‘<Para Name>’.

The default value is too long.

Shorten the default value.

Warning: Association target <MBO Name>’s parameter ‘<Para Name>’ must have personalization key or default value defined when it is not a target parameter of an association.

There is no source from which the parameter value can be set.

Set a default value or specify a personalization key for the parameter.

Warning: Default value, personalization key, or synchronization parameter is not defined for the argument: ‘<Arg Name>’.

There is no source from which the load argument value can be set.

Specify the value of the load argument from a default value, a personalization key, or a synchronization parameter.

Error: Synchronization parameter ‘<Sync Para Name>’ cannot be mapped to more than one argument.

Two or more arguments map to the same synchronization parameter.

Change the mapping so only one argument maps to the synchronization parameter.

Warning: Non-nullable argument ‘<Arg Name>’ cannot map to a nullable synchronization parameter ‘<Sync Para Name>’.

There is a nullability mismatch between the load argument and the synchronization parameter to which it maps.

Change the nullability of either so they match.

Error: Data type of the selected old value argument cannot map to the parameter ‘<Para Name>’ of operation ‘<Oper Name>’.

Datatype mismatch.

Change the datatype of the Old value argument or that of the parameter so they match.

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

The parameter of the operation is not mapped to an argument.

Map the parameter to an argument.

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

The load argument is not mapped to an argument.

Map the load argument to an argument.

Error: Argument ‘<Arg Name>‘ of type < Type>, does not allow length greater than <Arg Length>.

The argument length exceeds the maximum length allowed for its datatype.

Shorten the argument length to a valid length for the given type according to the message.

Error: Invalid default value ‘<Default Value>’ for the ‘<Type>’ data type: ‘<Arg Name>‘.

The argument default value is not valid for its datatype.

Change the default value to conform to the argument’s datatype.

Warning: Default value exceeds maximum length: ‘<Arg Length>‘.

The argument default value length exceeds the argument’s length.

Change the default value to conform to the argument’s length.

Error: Invalid structure default value for the ‘<Type>’ data type of argument ‘<Arg Name>‘: ‘<Msg>’.

The structure argument default value contains errors.

Correct the default value using the Edit values dialog according to the error message.

Error: Personalization key can’t be directly assigned to load argument: ‘<Arg Name>‘ of mobile business object which has a scheduled cache policy.

The load argument is directly assigned a personalization key while the MBO is in a cache group that uses a scheduled cache policy.

Move the MBO to a cache group that does not use a scheduled cache policy, or remove the personalization key from the load argument.

Error: Invalid < object type > name: name cannot be empty.

The <object type> name cannot be empty.

Enter a valid value for the name of the <object type>.