---
title: COPY_FILE_ERROR error condition
description: Documentation for the COPY\_FILE\_ERROR error condition on Databricks
canonical_url: https://docs.databricks.com/aws/en/error-messages/copy-file-error-error-class
---

# COPY\_FILE\_ERROR error condition

[SQLSTATE: 58030](https://docs.databricks.com/aws/en/error-messages/sqlstates.md#class-58-system-error)

Error copying a file.

## BYTE\_RANGE\_NOT\_SUPPORTED

The FILE value starts at a non-zero `offset`, so it references part of its file rather than the whole file. Copying a byte range is not supported.

## FAILED\_TO\_COPY\_FILE

Failed to copy the file at path `<source>` to `<destination>`. Cause: `<cause>`.

## FILE\_ALREADY\_EXISTS

A file already exists at the path `<path>`. Set if\_file\_exists with the modes "skip" to skip uploading this file, or "overwrite" to overwrite the existing file.

## FILE\_NOT\_EXISTS

The file at path `<path>` does not exist. Use `TRY_COPY_FILE` instead, which would return a null for files that don't exist.

## INLINE\_CONTENT\_NOT\_SUPPORTED

The FILE value carries its content inline (in the `inline` field) with no `uri`, so there is no file to copy from. Copying an inline FILE value is not supported yet.

## NO\_URI

The FILE value has no `uri`, so there is no file to copy from. Only a FILE value that names a file can be used as a copy source.
