

# Exceptions
<a name="aws-glue-api-exceptions"></a>

This section describes AWS Glue exceptions that you can use to find the source of problems and fix them. For more information on HTTP error codes and strings for exceptions related to machine learning, see [AWS Glue machine learning exceptions](exceptions-machine-learning.md).

## AccessDeniedException structure
<a name="aws-glue-api-exceptions-AccessDeniedException"></a>

Access to a resource was denied.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## AlreadyExistsException structure
<a name="aws-glue-api-exceptions-AlreadyExistsException"></a>

A resource to be created or added already exists.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## ConcurrentModificationException structure
<a name="aws-glue-api-exceptions-ConcurrentModificationException"></a>

Two processes are trying to modify a resource simultaneously.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## ConcurrentRunsExceededException structure
<a name="aws-glue-api-exceptions-ConcurrentRunsExceededException"></a>

Too many jobs are being run concurrently.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## CrawlerNotRunningException structure
<a name="aws-glue-api-exceptions-CrawlerNotRunningException"></a>

The specified crawler is not running.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## CrawlerRunningException structure
<a name="aws-glue-api-exceptions-CrawlerRunningException"></a>

The operation cannot be performed because the crawler is already running.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## CrawlerStoppingException structure
<a name="aws-glue-api-exceptions-CrawlerStoppingException"></a>

The specified crawler is stopping.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## EntityNotFoundException structure
<a name="aws-glue-api-exceptions-EntityNotFoundException"></a>

A specified entity does not exist

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.
+ `FromFederationSource` – Boolean.

  Indicates whether or not the exception relates to a federated source.

## FederationSourceException structure
<a name="aws-glue-api-exceptions-FederationSourceException"></a>

A federation source failed.

**Fields**
+ `FederationSourceErrorCode` – UTF-8 string (valid values: `AccessDeniedException` \$1 `EntityNotFoundException` \$1 `InvalidCredentialsException` \$1 `InvalidInputException` \$1 `InvalidResponseException` \$1 `OperationTimeoutException` \$1 `OperationNotSupportedException` \$1 `InternalServiceException` \$1 `PartialFailureException` \$1 `ThrottlingException`).

  The error code of the problem.
+ `Message` – UTF-8 string.

  The message describing the problem.

## FederationSourceRetryableException structure
<a name="aws-glue-api-exceptions-FederationSourceRetryableException"></a>

A federation source failed, but the operation may be retried.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## GlueEncryptionException structure
<a name="aws-glue-api-exceptions-GlueEncryptionException"></a>

An encryption operation failed.

**Fields**
+ `Message` – UTF-8 string.

  The message describing the problem.

## IdempotentParameterMismatchException structure
<a name="aws-glue-api-exceptions-IdempotentParameterMismatchException"></a>

The same unique identifier was associated with two different records.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## IllegalWorkflowStateException structure
<a name="aws-glue-api-exceptions-IllegalWorkflowStateException"></a>

The workflow is in an invalid state to perform a requested operation.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## InternalServiceException structure
<a name="aws-glue-api-exceptions-InternalServiceException"></a>

An internal service error occurred.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## InvalidExecutionEngineException structure
<a name="aws-glue-api-exceptions-InvalidExecutionEngineException"></a>

An unknown or invalid execution engine was specified.

**Fields**
+ `message` – UTF-8 string.

  A message describing the problem.

## InvalidInputException structure
<a name="aws-glue-api-exceptions-InvalidInputException"></a>

The input provided was not valid.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.
+ `FromFederationSource` – Boolean.

  Indicates whether or not the exception relates to a federated source.

## InvalidStateException structure
<a name="aws-glue-api-exceptions-InvalidStateException"></a>

An error that indicates your data is in an invalid state.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## InvalidTaskStatusTransitionException structure
<a name="aws-glue-api-exceptions-InvalidTaskStatusTransitionException"></a>

Proper transition from one task to the next failed.

**Fields**
+ `message` – UTF-8 string.

  A message describing the problem.

## JobDefinitionErrorException structure
<a name="aws-glue-api-exceptions-JobDefinitionErrorException"></a>

A job definition is not valid.

**Fields**
+ `message` – UTF-8 string.

  A message describing the problem.

## JobRunInTerminalStateException structure
<a name="aws-glue-api-exceptions-JobRunInTerminalStateException"></a>

The terminal state of a job run signals a failure.

**Fields**
+ `message` – UTF-8 string.

  A message describing the problem.

## JobRunInvalidStateTransitionException structure
<a name="aws-glue-api-exceptions-JobRunInvalidStateTransitionException"></a>

A job run encountered an invalid transition from source state to target state.

**Fields**
+ `jobRunId` – UTF-8 string, not less than 1 or more than 255 bytes long, matching the [Single-line string pattern](aws-glue-api-common.md#aws-glue-api-regex-oneLine).

  The ID of the job run in question.
+ `message` – UTF-8 string.

  A message describing the problem.
+ `sourceState` – UTF-8 string (valid values: `STARTING` \$1 `RUNNING` \$1 `STOPPING` \$1 `STOPPED` \$1 `SUCCEEDED` \$1 `FAILED` \$1 `TIMEOUT` \$1 `ERROR` \$1 `WAITING` \$1 `EXPIRED`).

  The source state.
+ `targetState` – UTF-8 string (valid values: `STARTING` \$1 `RUNNING` \$1 `STOPPING` \$1 `STOPPED` \$1 `SUCCEEDED` \$1 `FAILED` \$1 `TIMEOUT` \$1 `ERROR` \$1 `WAITING` \$1 `EXPIRED`).

  The target state.

## JobRunNotInTerminalStateException structure
<a name="aws-glue-api-exceptions-JobRunNotInTerminalStateException"></a>

A job run is not in a terminal state.

**Fields**
+ `message` – UTF-8 string.

  A message describing the problem.

## LateRunnerException structure
<a name="aws-glue-api-exceptions-LateRunnerException"></a>

A job runner is late.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## NoScheduleException structure
<a name="aws-glue-api-exceptions-NoScheduleException"></a>

There is no applicable schedule.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## OperationTimeoutException structure
<a name="aws-glue-api-exceptions-OperationTimeoutException"></a>

The operation timed out.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## ResourceNotReadyException structure
<a name="aws-glue-api-exceptions-ResourceNotReadyException"></a>

A resource was not ready for a transaction.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## ResourceNumberLimitExceededException structure
<a name="aws-glue-api-exceptions-ResourceNumberLimitExceededException"></a>

A resource numerical limit was exceeded.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## SchedulerNotRunningException structure
<a name="aws-glue-api-exceptions-SchedulerNotRunningException"></a>

The specified scheduler is not running.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## SchedulerRunningException structure
<a name="aws-glue-api-exceptions-SchedulerRunningException"></a>

The specified scheduler is already running.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## SchedulerTransitioningException structure
<a name="aws-glue-api-exceptions-SchedulerTransitioningException"></a>

The specified scheduler is transitioning.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## UnrecognizedRunnerException structure
<a name="aws-glue-api-exceptions-UnrecognizedRunnerException"></a>

The job runner was not recognized.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## ValidationException structure
<a name="aws-glue-api-exceptions-ValidationException"></a>

A value could not be validated.

**Fields**
+ `Message` – UTF-8 string.

  A message describing the problem.

## VersionMismatchException structure
<a name="aws-glue-api-exceptions-VersionMismatchException"></a>

There was a version conflict.

**Fields**
+ `message` – UTF-8 string.

  A message describing the problem.