SFTP Connector Error Codes

SFTP Create Connection Errors

Error Code

Message

FTP_UNKNOWN_HOST

The host could not be found.

FTP_CONNECT_TIMEOUT_EXCEEDED

A connection could not be established within options.timeout seconds.

FTP_CONNECT_TIMEOUT_EXCEEDED

The username/password is invalid or permission to access the directory isdenied.

FTP_INVALID_PORT_NUMBER

The port number is invalid.

FTP_INVALID_CONNECTION_TIMEOUT

The options.timeout value is either a negative value, zero, or greater than 20 seconds.

FTP_INVALID_DIRECTORY

The directory does not exist on the remote FTP server.

FTP_INCORRECT_HOST_KEY

The host key does not match the presented host key on the remote FTP server.

FTP_INCORRECT_HOST_KEY_TYPE

The host key type and provided host key type do not match.

FTP_MALFORMED_HOST_KEY

The host key is not in the correct format. (e.g. base 64, 96+ bytes)

FTP_PERMISSION_DENIED

Access to the file or directory on the remote FTP server is denied.

FTP_UNSUPPORTED_ENCRYPTION_ALGORITHM

The remote FTP server does not support one of NetSuite’s approved algorithms. (e.g. aes256-ctr, es192-ctr, es128-ctr)

AUTHENTICATION_FAIL_TOO_MANY_INCORRECT_AUTHENTICATION_ATTEMPTS

There are too many incorrect authentication attempts.

NO_ROUTE_TO_HOST_FOUND

No route to the host can be found.

CONNECTION_RESET

The connection has been reset.

CONNECTION_CLOSED_BY_HOST

The connection is closed by the host.

THE_REMOTE_PATH_FOR_FILE_IS_NOT_VALID

The file’s remote path is invalid.

SFTPCREDENTIAL_ENCODING_ERROR

There is an SFTP credential encoding error.

UNABLE_TO_GET_SFTP_SERVER_ADDRESS

The SFTP server address is unavailable.

SFTP Connection Upload Errors

Error Code

Message

CONNECTION_CLOSED_BY_HOST

The connection is closed by the host.

CONNECTION_RESET

The connection has been reset.

FTP_NO_SUCH_FILE_OR_DIRECTORY

The file or directory does not exist.

FTP_TRANSFER_TIMEOUT_EXCEEDED

The transfer is taking longer than the specified options.timeout value.

FTP_INVALID_TRANSFER_TIMEOUT

The options.timeout value is either a negative value, zero or greater than 300 seconds.

FTP_FILE_ALREADY_EXISTS

The options.replace existing value is false and a file with the same name exists in the remote directory.

THE_REMOTE_PATH_FOR_FILE_IS_NOT_VALID

The file’s remote path is invalid.

FTP_PERMISSION_DENIED

Access to the file or directory on the remote FTP server is denied.

SFTP Connection Download Errors

Error Code

Message

FTP_MAXIMUM_FILE_SIZE_EXCEEDED

The file size is greater than the maximum file size allowed by NetSuite.

FTP_NO_SUCH_FILE_OR_DIRECTORY

The file or directory does not exist.

FTP_TRANSFER_TIMEOUT_EXCEEDED

The transfer is taking longer than the specified options.timeout value

FTP_INVALID_TRANSFER_TIMEOUT

The options.timeout value is either a negative value, zero or greater than 300 seconds.

FTP_PERMISSION_DENIED

Access to the file or directory on the remote FTP server was denied

CONNECTION_RESET

The connection has been reset

THE_REMOTE_PATH_FOR_FILE_IS_NOT_VALID

The file’s remote path is invalid.

CONNECTION_CLOSED_BY_HOST

The connection is closed by the host.

Related Topics

SFTP Connector SuiteApp
Setting Up the SFTP Connector SuiteApp
Roles and Permissions for SFTP Connector SuiteApp
SFTP Connector Limitations
Creating SFTP Connector Folders in NetSuite File Cabinet
Setting Up Outbound Configuration Records
Encryption and Decryption Using Node Forge
Setting Up Inbound Configuration Records
Setting Up Decryption Configuration Records

General Notices