Validation rules and messages

These validation rules are applicable for importing resources:

  • The import fails if an Allocation class is provided as a resource reference, and this error message is logged:

    APACS266=Allocation class "{0}" is provided as a resource reference. Allocation classes can only be referenced via the classes components.

    Where {0} = Allocation class name.

  • The import fails if the required resource reference for primary import class is not provided, and this error message is logged:

    APACS372=Required resource reference '{0}' for primary import class '{1}' is not provided.

    Where, {0} = resource reference field, {1} = class name.

  • The import fails if the provided resource reference is not a parent class of the primary import class, and this error message is logged:

    APACS373=Resource reference "{0}" is not a parent class of the primary import class "{1}".

    Where, {0} = resource reference field, {1} = class name.

  • All class names in the mapping must be valid. Else, this error message is logged:

    APACS110=There is no class defined with name "{0}".

    Where {0} = Class name.

  • All Class.attribute mappings must be valid. Else, this error message is logged:

    APACS107=Unknown attribute name "{0}" for class "{1}" while importing resource "{2}".

    Where {0} = attribute name, {1} = class name, {2} = name of the resource being imported.

  • If a referenced parent resource does not exist, the resource is not created, and this warning message is logged:

    APACS143=Resource not resolved for resource reference: {0}.

    Where {0} = Class.resource name.

  • If a referenced Allocation parent resource does not exist, the resource is not created, and this warning message is logged:

    APACS144=Allocation Resource not found for "{0}" with components "{1}" and "{2}".

    Where {0} = Allocation class name

    {1} = First component resource reference in the ‘Class Name.Resource Name’ form.

    {2} = Second component resource reference in the ‘Class Name.Resource Name’ form.

These are the various messages logged when importing resources:

  • If resources are rejected during the validation process, a summary of rejection is reported after the completion of the import process. For example:

    APACS102=Rejected {0} resources for class "{1}".

    Where {0} =Number of resources rejected during the import process.

    {1} = Class name of import for which the resources are rejected.

  • A final message is logged to indicate the number of resources truncated that are successfully imported. The duration of the process is also logged. For example:

    APACS101=Imported {0} resources for class "{1}" (duration {2}).

    Where {0} = Number of resources successfully imported.

    {1} = Class name for which resources are imported.

    {2} = Duration of import, in H:mm:ss format, for example ‘0:01:23’ for 1 minute, 23 seconds.

  • If the attribute value for a class and resource exceeds 255 characters, the attribute value is limited to 255 characters, and this warning message is logged. For example:

    APACS385=Value for attribute "{0}" of class "{1}" and resource "{2}" exceeds maximum length. Truncated the value to: "{3}"

    Where {0} = Attribute name.

    {1} = Class name for which the attribute value is specified.

    {2} = Resource name.

    {3} = The reduced attribute value.

  • If the number of data validation warnings exceed a limit of 1000 messages, a summary of validation is reported. For example:

    APACS384={0} data validation warnings found. Details for the first {1} are logged.

    Where {0} = Actual number of data validation warnings.

    {1} = Limited number of data validation warnings reported.

  • The resource is not created if the resource name exceeds 255 characters, and a warning message is logged. For example:

    APACS386=Resource name "{0}" of class "{1}" exceeds maximum length.

    Where {0} = Resource name.

    {1} = Class name.