0 / 0
Exceptions
Last updated: Jan 18, 2024
Exceptions (SPSS Modeler)

This section describes possible exception instances. They are all a subclass of python exception.

MetadataException Objects

This exception is thrown if an error occurs during operation of the metadata object.

UnsupportedOperationException Objects

This exception is thrown if the specific operation doesn't allow execution.

InconsistentOutputDataModel Objects

This exception is thrown if both setSparkOutputSchema and setSparkOutputData are invoked but the field names and storage type information common to both objects are inconsistent.

IncompatibleModelContentType Objects

This exception is thrown during the following scenarios:
  • Using setModelContentFormString to set model but using getModelContentToPath to get value
  • Using setModelContentFormPath to set model but using getModelContentToString to get value

DataOutputNotSupported Objects

This exception is raised in setSparkOutputData in an execution handled by function pyspark:buildmodel.

ModelInputNotSupported Objects

This exception is only raised if the script doesn't invoke the getModelContentPathByKey and getModelContentToString APIs in the pyspark:applymodel function.

ModelOutputNotSupported Objects

This exception is only raised if the script doesn't invoke the setModelContentFromPath and setModelContentFromString APIs in the pyspark:buildmodel function.

ASContextException Objects

This exception is thrown if an unexpected runtime exception occurs.

Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more