Wednesday, 25 January 2012

Unable to trasfer files using FTP Adapter in BPEL

IF you face issues to do an FTP transfer to the remote location from your BPEL / ESB code Please check and verify the following:

  1. Check the connection details for that particular Connection factory. You would have given these connection details like host, port, username, password either in the wsdl of the process or you would have referred to a JNDI whose connection details are given in $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/{domain_name}/FTPAdapter /oc4j-ra.xml file.check these connection details with some external FTP clients too.
  2. If the connection is still failing change the port to either 21 or 22 and test it.
  3. If the password has expired, refresh the password to the existing one or change it to a new password.
  4. If the connection to the remote location is successful but the files are still not getting transferred then check the property UseSFTP in oc4j-ra.xml file.This value should be set to true in case you are making secure ftp connection.
  5. If these values are set and still not able to make the FTP connections, check the permissions on the folder.
  6. Last but not the least check if the file which has to be transferred exists and has access permissions,