cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Sender Adapter, Empty Archive Files

Former Member
0 Kudos

Hi,

When I retrieve files using a FTP sender Communication Channel and I checked the Archive check box (including an existing directory), the file is archived but it does not have any content. It is completely empty.

The original file contains data and is processed correctly. The original file is a csv and I use FCC to convert it to XML.

Anybody any suggestions?

Ron

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Bug fix by SAP

Former Member
0 Kudos

Hi,

which oss note ? or what was the solution given by SAP ?

Regards.

Mickael

Former Member
0 Kudos

Have you tried placing a file into the location using FTP? It help isolate the problem to whether it's with the adapter or the FTP connection.

Former Member
0 Kudos

Hi,

I think it's not the connection because the file is also processed by PI (routing and mapping). The Audit log indicates that everything is performed successful. Als the step copying the file from FTP Directory to the Archive Directory.

Ron

Former Member
0 Kudos

Hi,

Just try moving the file from source folder to archive folder using direct ftp operations instead of using adapter...or PI...

Check the result after this and also check the permissions at the archive folder level also...

HTH

Rajesh

Former Member
0 Kudos

Hi

This directory is also used for other interfaces and the Receiver Adapter is writing the files correctly into the directory. So I don't think it's somthing with permissions.

Ron

Edited by: Ron van der Sterren on Jan 4, 2010 11:48 AM

former_member190389
Active Contributor
0 Kudos

I would suggest you to change the location of archive and try it out.

Regards

Progirl

Former Member
0 Kudos

Hi,

Can you show the channel configuration of the FCC and the archiving configured in the File adapter channel?

This will help us to know the scenario which you are trying to perform.

Regards,

Soorya

Former Member
0 Kudos

Hi,

The scenario is FTP --> IDOC scenario.

The config is as follows: (not mentioned = not used)

Source:

Source Directory: /Out

Filename File*.csv

FTP Connection:

Server: a.b.nl

Port: 21

Dataconnection: Passive

Connection Security: None

Username: user

Password: pass

Connect mode: Per File Transfer

Transfer mode: Binary

Processing:

Quality of Service: Exactly once

Poll Interval: 60 secs

Processing Mode: Archive

Add Timestamp: checked

Archive directory : /usr/sap/Interfaces/

File Type: Text

FCC:

Documentname: File

Recordset Name: Lines

Recordset Structure: Line,*

Recordset Sequence: Ascending

Key field type: String (Case sensitive)

Line.fieldSeparator ;

Line.endSeparator nl

Line.fieldNames VBELN, POSNR, RREL

Best regards

Ron

former_member190389
Active Contributor
0 Kudos

Hi,

Could you check the audit logs in the communication channel, if it is working fine?

former_member190389
Active Contributor
0 Kudos

Hi,

Could you check the audit logs in the communication channel, if it is working fine?

Former Member
0 Kudos

Hi,

The audit log states the following concerning the archive

File "File29122009045242.csv" has been successfully deleted on FTP server "a.b.nl" after sending and moving to "/usr/sap/Interfaces/Archive/20091229-170826-642_File29122009045242.csv"

So it should be succesfull.

The file 20091229-170826-642_File29122009045242.csv exists in the directory but it is empty (size = 0)

Regards

Ron

Former Member
0 Kudos

Try changing file type to binary in the processing section.