---
title: MALFORMED_FILE_REF error condition
description: Documentation for the MALFORMED\_FILE\_REF error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/malformed-file-ref-error-class
---

# MALFORMED\_FILE\_REF error condition

[SQLSTATE: 22023](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-22-data-exception)

FileType value is malformed.

## CONFLICTING\_VALUES

The FILE value has both a file reference and file content.

## EMPTY\_VALUE

The FILE value is empty: it has neither a file reference nor file content.

## INVALID\_LOCATION

The FILE '`<path>`' returned by the UDF is not in a location allowed for this `<mode>` FILE output.

## MISSING\_URI\_KEY

The dict is missing the required 'uri' key.

## URI\_NOT\_STRING

The 'uri' field must be a string, but got `<actualType>`.

## URI\_NULL

The 'uri' field must not be null.

## WRONG\_ARITY

Expected `<expected>` fields, but got `<actual>`.

## WRONG\_TYPE

Expected `<expected>`, but got `<actualType>`.
