My Oracle Support Banner

A File Sent Via SFTP in Oracle API Gateway Will Not Go Outbound (Doc ID 1602281.1)

Last updated on OCTOBER 07, 2022

Applies to:

Oracle API Gateway - Version and later
Information in this document applies to any platform.


After attempting to send a file outbound though the SFTP listener to a partner, it is seen that errors occur.. There is an outbound policy and outbound listener set up in OAG to send the file to the proper directory, but this is producing an error in the OAG:

"ERROR 0006: Outbound SFTP file: failed writing to CMS SFTP. The file will remain in the output directory and will need to be returned to the scan directory."

Connection to the partner's SFTP server via FileZilla and Putty occurs without any problems.

### Steps required to reproduce the problem ###

1) Input partner's IP and login information for SFTP into OAG, in the respective outbound policy and listener for the partner.
2) Push a test file outbound by dragging the test file into the relevant folder in FileZilla.
3) Wait for an alert in OAG Manager (ERROR 0006 keeps appearing).

In the gateway trace file, something similar to the following is seen:

ERROR [7aac7940] java exception running circuit:
java.lang.RuntimeException: send failed
at com.vordel.dwe.http.ServerTransaction.sendResponse(Native Method)
at com.vordel.dwe.http.HTTPPlugin.invokeDispose(
at com.vordel.dwe.http.HTTPPlugin.invoke(


At the partner site, the error appears that resembles the following example:

ERROR [4b262940] IO error uploading file to FTP server: Failed to write to '<DIRECTORY NAME>'
at com.vordel.fileservice.client.SFTPSession.getOutputStream(
at com.vordel.circuit.InvocationEngine.invokeFilter(
at com.vordel.circuit.InvocationEngine.invokeCircuit(
at com.vordel.circuit.InvocationEngine.processMessage(
at com.vordel.dwe.dirscan.DirectoryScanner$FileScannerItem.runUnsafe(
at com.vordel.dwe.dirscan.DirectoryScanner$
Caused by: 4: /<DIRECTORY NAME> is a directory
at com.jcraft.jsch.ChannelSftp.put(
at com.jcraft.jsch.ChannelSftp.put(
at com.jcraft.jsch.ChannelSftp.put(
at com.vordel.fileservice.client.SFTPSession.getOutputStream(
... 7 more


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.