---
title: COPY_FILE_ILLEGAL_USAGE error condition
description: Documentation for the COPY\_FILE\_ILLEGAL\_USAGE error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/copy-file-illegal-usage-error-class
---

# COPY\_FILE\_ILLEGAL\_USAGE error condition

SQLSTATE: none assigned

Illegal usage of `COPY_FILE`.

## DESTINATION\_PATH\_REQUIRED

`<function>` requires a destination path when the target column is not a `MANAGED` FILE. Pass a destination inside a Volume, or write into a `MANAGED` FILE column.

## IF\_FILE\_EXISTS\_MODE

Unrecognized mode for if\_file\_exists: `<input>`. Supported modes are: "error", "skip", and "overwrite".

## IF\_FILE\_EXISTS\_WITHOUT\_DESTINATION

if\_file\_exists can only be set if a destination is provided.
