---
title: SFTP_URI_AND_CREDENTIAL_MISMATCH error condition
description: Documentation for the SFTP\_URI\_AND\_CREDENTIAL\_MISMATCH error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/sftp-uri-and-credential-mismatch-error-class
---

# SFTP\_URI\_AND\_CREDENTIAL\_MISMATCH error condition

[SQLSTATE: 08006](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-08-connection-exception)

When loading data from an SFTP path using the 'databricks.connection' option, the
configuration in the SFTP URI does not match the Unity Catalog connection credentials
for path `<path>`. Please update your SFTP URI or Unity Catalog connection to ensure the
host, port, and user are consistent.

## HOST\_MISMATCH

The host in the URI '`<hostInUri>`' does not match the host in the credentials

'`<hostInCredentials>`'.

## MISSING\_HOST

The SFTP URI is missing a host. Please specify a valid SFTP URI in the format

'sftp\://host/path' or 'sftp\://user\@host/path'.

## PORT\_MISMATCH

The port in the URI '`<portInUri>`' does not match the port in the credentials

'`<portInCredentials>`'.

## USER\_MISMATCH

The user in the URI '`<userInUri>`' does not match the user in the credentials

'`<userInCredentials>`'.
