Personalization Key Validation Rules and Error Messages

Validation rules are enforced when defining personalization keys, assigning them to attributes or parameters, and, in some cases, when you deploy the MBO to which the personalization key is assigned to Unwired Server. Messages are generated when validation rules are violated.

Personalization key validation rules and error messages
Severity and message Cause Action

Error: Invalid personalization key name: ‘<PK Name>‘. A valid identifier name must begin with an alphabetic character or an underscore, followed by alphanumeric characters or underscores.

The personalization key name is invalid.

Enter a valid name.

Error: Invalid personalization key name: ‘<PK Name>‘, name cannot be a Java or C# language keyword.

The personalization key name is the same as 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 personalization key names.

Error: Invalid personalization key name: ‘<PK Name>‘, name cannot be a reserved personalization parameter name.

The name of the personalization parameter is a reserved key, such as: object, binary, boolean, byte, char, date, datetime, decimal, double, float, int, integer, long, short, string, time, cle.

Specify another name for the personalization parameter.

Error: Invalid personalization key name: ‘<PK Name>‘, the length must be less than 64.

The length of personalization key name exceeds the allowed maximum.

Enter a valid name that is less than 64 characters.

Error: Duplicate personalization key name: ‘<PK Name>‘. The name is case-insensitive.

A personalization key with the same name already exists.

Enter a valid and unique name.

Error: The default value(s) of a non-nullable personalization key should not be set to ‘<NULL>’: ‘<PK Name>‘.

A null default value has been set for a non-nullable personalization key.

Set the default value for the personalization key to a non-null value.

Warning: Default value for the ‘<Type>’ data type for personalization key ‘<PK Name>‘ contains warning : ‘<Msg>’.

A structure personalization key contains a default value that generates a warning message.

Correct the problem identified by the warning message.

Error: Invalid default value ‘<Default Value>’ for the ‘<Type>’ data type of personalization key: ‘<PK Name>‘.

The default value for the datatype of the personalization key is invalid.

Set the default value to conform to the datatype.

Error: Invalid < PK Name > name: name cannot be empty.

The <PK Name> name cannot be empty.

Enter a valid value for the name of the <PK Name>.

Error: Invalid structure default value for the ‘<Type>’ data type for personalization key ‘<PK Name>‘: ‘<Msg>’.

A structure personalization key contains an invalid default value.

Correct the default value of the structure personalization key identified by the error message.

Warning: Default value exceeds allowed maximum length: ‘<PK_length>‘.

The length of the default value exceeds the data type’s maximum length.

Set the default value to conform to the data type length.

Error: Data type is not specified for the personalization key : ''<PK_name>''.

The data type is not specified for the personalization key.

Specify a proper data type for the personalization key.

Error: Structure type is missing for the personalization key : ''<PK_name>''.

The structure type for the personalization key is missing in the project.

Specify a proper structure data type for the personalization key.

Error: Structure ''<Structure name>'' contains field ''<Attribute name>'' with data type ''<BigString/BigBinary>'', and cannot be used as a personalization key.

A structure data type containing data type BigString or BigBinary has been defined as personalization key data type.

Change the structure data type to a non-BigObject-attribute structure or use any other simple type.

Error: The length of personalization key ''<PK name>'' is not specified, set to <default length> by default. Update the length to avoid truncation if necessary.

The personalization key was set to a default length because the personalization key length was not specified.

Update the personalization key length to avoid possible data truncation.