cancel
Showing results for 
Search instead for 
Did you mean: 

Create a message with empty file in Service pack 9

Former Member
0 Kudos

Hello.

I have the Service pack 9, and when PI read an emtpy file delete it inmediately.

Is there any way to create the message with an empty file? How?

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

Look into empty file handling in the file adapter. Below is from the sap help documentation for the file adapter.

Sender File adapter

Handling of Empty Files

Specify how empty files (length 0 bytes) are to be handled.

u25CB       Do Not Create Message

No XI messages are created from empty files.

The files are processed according to the selected Processing Mode.

For example, if the processing mode is Delete, empty files are deleted in the source directory.

u25CB       Process Empty Files

XI messages are created with an empty main payload.

The files are processed according to the selected Processing Mode.

u25CB       Skip Empty Files

No XI messages are created from empty files.

Empty files are skipped and remain in the source directory.

Receiver File adapter

Select the Handling of Empty Messages:

u25CB       Write Empty File

An empty file (length 0 bytes) is put in the target directory.

u25CB       Ignore

No file is put in the target directory.

Former Member
0 Kudos

Hi,

I dont think there is some standard option to handle empty file in SP 9 PI 7.0.

As per SAP Note: 821267, Up to and including XI 3.0 SP18 / PI 7.0 SP9 empty files in the sender adapter will not trigger the creation of a message. If an empty message is sent to a receiver channel, no output file will be created.

Starting with XI 3.0 SP19 / PI 7.0 SP10 the channel's behavior can be configured in Integration Builder.

Regards,

Vineetha.