cancel
Showing results for 
Search instead for 
Did you mean: 

zero byte extracting in PI

Former Member
0 Kudos

Hi Experts,

i have weird situation here. We have a scenario where we are using file receiver adapter on the receiver side. We are placing the files in PI folder and MQ is picking up the files from this folder. We are using dynamic configuration for the file name for this interface. What happens is sometimes MQ is picking up zero size files even though PI is sending data in the message. File adapter is creating the file name from dynamic configuration but unable to write the data in the file even though the message is having the data and we are unable to reproduce this scenario again. This happens only for few messages.

Can you please help me on how to solve this issue.

Thanks,

Srinivas.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srinivas

If the problem is with message data , I mean if some times PI receive empty data, then you can choose the option 'ignore empty message'  option in the file receiver adapter.

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

are you creating the file directly or using temparory file name scheme?

Former Member
0 Kudos

Hi Hareesh,

Direct File name.

former_member184720
Active Contributor
0 Kudos

If your MQ is identifying the files based on the name, then you can use the temp file name scheme so that MQ won't be able to find the files.

PI will rename it to the actual file name only after writing the entire message content.

Former Member
0 Kudos

Hi Srinivas,

If XI put empty file in the directory then you can select ignore empty message option. But you confirmed XI put the file in the directory with the full data. hence issue is at the MQ end. When XI is trying to write the file in the directory, before the file completion MQ is picking the message. pls check with MQ team how they confirmed the MQ channel. is there any specific reason of using file adapter? you can use JMS adapter to send the message to MQ,

Cheers

Hidayat