cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with „Empty-File Handling“ in PI 7.11

Former Member
0 Kudos

Hi,

Iu2019m working in PI 7.11 with file adapter, Sender CC, option: Empty-File Handling: Process Empty Files.

What I want to do is giving target file the system-date, if the source file is empty.

But I always get a mapping error in RTWB: Premature end of file.

It seems that the payload is empty.

Any idea?

Thanks a lot in advance!

Rene Dong

Edited by: Rene Dong on Aug 31, 2010 4:20 PM

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

when its an empty file your payload will be null

so ideally you can either

1. use a adapter module and handle this

2. use a java mapping that checks the empty payload and take action

Former Member
0 Kudos

Hi, Vijayakumar,

u r right. we made an adapter module to solve this problem.

Regards

Rene

former_member576507
Discoverer
0 Kudos

Hi Rene,

Could you please share your Adapter Module Code to handle empty file. We are facing the same situation.

Thanks in Advance.

Answers (1)

Answers (1)

Former Member
0 Kudos

What I want to do is giving target file the system-date, if the source file is empty.

The error you are getting makes sense. You should do a check in the mapping, if the payload is empty then use brute force to pass the system date.