on 06-26-2007 11:24 PM
Hello all,
I have a simple scenario of sending the file from shared directory to FTP. When I execute the sceanrio..sender is picking up the file ..No issues in SXMB_MONI...but when I checked in the message monitoring...at adapter level for file receiver which is using FTP..This is what its throwing...
Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 550 '/': File exists.
Looks like some thing to do with the directory path...and also FTP is built on UNIX environment...
I tried all the possibilities for target directory.....
1) /
Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 550 '/': File exists.
2) \
Connect to FTP server "ftp.abc.com", directory "\"
Error Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 257 "/\" is the current directory.
Error Exception caught by adapter framework: com.sap.aii.adapter.file.ftp.FTPEx: 257 "/\" is the current directory.
Error Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 257 "/\" is the current directory..
AND when I check the FTP server its creating the directory with "\"
3) ./
Success Connect to FTP server "ftp.abc.com", directory "./"
Error Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 550 './': File exists
Error Exception caught by adapter framework: com.sap.aii.adapter.file.ftp.FTPEx: 550 './': File exists
4) .\
Success Connect to FTP server "ftp.abc.com", directory ".\"
Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 257 "/.\" is the current directory.
Error Exception caught by adapter framework: com.sap.aii.adapter.file.ftp.FTPEx: 257 "/.\" is the current directory.
Error Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 257 "/.\" is the current directory..
EVEN HERE it created the ".\" folder on FTP site.
5) Finally tried "."
Success Connect to FTP server "ftp.abc.com", directory "."
Error Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 550 '.': File exists
Error Exception caught by adapter framework: com.sap.aii.adapter.file.ftp.FTPEx: 550 '.': File exists
Error Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 550 '.': File exists.
Error The message status set to NDLV.
I AM pretty sure that it works with out mentiong any directory path as some of the unix system allow that...But in XI target directory is mandatory field....
DID ANYONE FACED THIS KINDAA ISSUE BEFORE..ANY HELP IS GREATLY APPRECIATED AND
OBVIOUSLY POINTS WILL AWARDED....
Regards,
Raju
Just try it, it works on our systems. Exactly like I typed it in my last message. I think you should only use the periods in your project, no "/"'s or "\"'s.
Message was edited by:
Paul Reimius Schroeder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same kind of error:
Success Connect to FTP server "ftp.abc.com", directory "test"
2007-06-27 10:04:49 Error Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 257 "/test" is the current directory.
2007-06-27 10:04:49 Error Exception caught by adapter framework: com.sap.aii.adapter.file.ftp.FTPEx: 257 "/test" is the current directory.
Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 257 "/test" is the current directory..
2007-06-27 10:04:49 Error The message status set to NDLV.
First confirm from your third party FTP providers....I mean to the FTP server to which you are connecting is following RFC 959...If its not then throws all kinds of weird errors as in your case....
SAP says " The application of FTP should follow specification RFC 959. The specification can be found on the Internet under www.ietf.org/rfc/rfc0959.txt.".
If its not the only way is to write a batch file and connect to FTP and push the file there....Look for operating system level commands...in your receiver CC...
Hope this helps......
Regards,
Ravi
Here is the result:
Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 550 '.': File exists
Error Exception caught by adapter framework: com.sap.aii.adapter.file.ftp.FTPEx: 550 '.': File exists
Error Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 550 '.': File exists.
Error The message status set to NDLV.
Raju,
ftp -s:
<shared>\abc.txt >
<shared>\ftpresult\ftpresult.txt
MOVE
<yoursource directory>\*.txt
<shared>\archive ( to archive the file)
and in abc.txt:
open <ftp>
<user>
<password>
put
<source directory of your file>\*.txt
quit
you can even check your ftpresult.txt file to see whether it executed perfectly or not....and finally use that batch file in the receiver communication channel with full path..
Hope this helps,
Regards,
Ravi
My recommendation for directory path is to just have it the same as the file name
Directory: example.abc.com
File name Sceme: 'example.abc.com'
I wonder if maybe you have a file on the system that is called example.abc, so when you try to create the file example.abc.com it gives you the file exists error. I'm just throwing ideas, I don't really know much about unix.
Also, what are your processign parameters?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Raju,
did you check-in the "Create Target Directory" flag in the receiver CC?
Regards,
Andras
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mamidi,
From your Desktop go to Command prompt and give FTP <Ip address or Ftp location>. Then it asks for username and password. Give them as you have in FTP communication channel. Then give the command PWD. It gives you the directory name. Put it in your reciever communication channel and run your scneario. Check once again by logging from CMD prompt and give ls. You can see the file whether it created or not.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.