---
title: INVALID_PYTHON_WORKER_ENV_CONF error condition
description: Documentation for the INVALID\_PYTHON\_WORKER\_ENV\_CONF error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/invalid-python-worker-env-conf-error-class
---

# INVALID\_PYTHON\_WORKER\_ENV\_CONF error condition

[SQLSTATE: 42616](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-42-syntax-error-or-access-rule-violation)

The Python worker environment carried by the config "`<confName>`" is invalid.

## NON\_STRING\_VALUE

The environment variable `<varName>` must be given a string value.

## NOT\_A\_JSON\_OBJECT

The value must be a `JSON` object mapping environment variable names to string values, with no name repeated.

## TOO\_LARGE

The value is longer than `<maxBytes>` bytes, which is more than any valid environment can need.

## TOO\_MANY\_VARIABLES

The value sets `<count>` environment variables, which is more than the maximum of `<maxCount>`.

## TOTAL\_SIZE\_TOO\_LARGE

The environment variables in the value total `<size>` bytes, which is more than the maximum of `<maxSize>` bytes.
