---
title: CONNECT_ML error condition
description: Documentation for the CONNECT\_ML error condition on Databricks
canonical_url: https://docs.databricks.com/aws/en/error-messages/connect-ml-error-class
---

# CONNECT\_ML error condition

[SQLSTATE: 54000](https://docs.databricks.com/aws/en/error-messages/sqlstates.md#class-54-program-limit-exceeded)

Spark Connect ML error:

## ATTRIBUTE\_NOT\_ALLOWED

`<attribute>` in `<className>` is not allowed to be accessed.

## CACHE\_INVALID

Cannot retrieve Summary object `<objectName>` from the ML cache

because the Summary object was evicted due to non use for more than `<evictTimeoutInMinutes>` minutes.

Call `model.evaluate(dataset)` to create a new Summary object.

## DISABLED

Spark Connect ML is disabled.

## ML\_CACHE\_SIZE\_OVERFLOW\_EXCEPTION

The model cache size in current session is about to exceed `<mlCacheMaxSize>` bytes.

Remove all Python references to models no longer in use to free them from the cache.

## MODEL\_SIZE\_OVERFLOW\_EXCEPTION

The fitted or loaded model size is about `<modelSize>` bytes.

Fit or load a model smaller than `<modelMaxSize>` bytes.

## MODEL\_SUMMARY\_LOST

The model `<objectName>` summary is lost because the cached model is offloaded.

## UNSUPPORTED\_EXCEPTION

`<message>`
