Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

The PMML model does not pass schema validation

Updated on September 10, 2021

During the creation of a Predictive Model rule instance, the PMML engine verifies that the PMML model that you uploaded is a well-formed XML document and adheres to its corresponding XML Schema Definition (XSD). The schema version that is used for validation is determined by the version attribute in the PMML model file.

Cause

The model file that you uploaded does not adhere to the schema definition.

Solution

Ask a PMML developer to investigate the error message that indicates the nature of the error and fix the problem. The message might contain an error code that provides hints about why the model might not have passed schema validation.

The most common errors that might be encountered are:

  • INVALID_TYPE_VALUE

    The value assigned to the variable is of a different type than what is defined in the PMML file. Check the corresponding model's DataDictionary element for the value's data type definition.

  • VALUE_NOT_IN_CONSTRAINT

    The value assigned to the variable is different from the allowed values. This definition should also be part of the DataDictionary section of the model.

    For a categorical or ordinal variable, the allowed values are defined by using the Value element under the DataField element.

    For a continuous variable, the allowed values are defined by using the Interval element under the DataField element.

  • INVALID_DECLARATION

    There is a syntax error in declaration of the PMML element. See the PMML standard to check the correct syntax.

  • INVALID_ELEMENT_LOCATION

    An element or attribute has been defined in a place that is not allowed by the PMML standard. See the PMML standard to check the correct syntax.

  • INVALID_ID_REFERENCE

    An element is referenced by an ID in one part of the PMML file, but the ID is either invalid or does not exist. Check if the referenced ID is present and valid.

  • INVALID_TYPE_DECLARATION

    The variable types are not consistent in the PMML file.

  • ATTRIBUTE_NOT_ALLOWED

    Attribute is not allowed in the tag.

  • INVALID_ATTRIBUTE_ID/NAME

    The attribute name or ID is incorrect or uses reserved values.

  • Previous topic The PMML model contains undefined functions
  • Next topic The Predictive Analytics Director portal is unresponsive

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us