cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping - File Adapter - Empty outputStream but archive with 1 byte

Former Member
0 Kudos

Hi i am making an Idoc to txt file mapping in Java, it works fine except when i have to return an empty file, in my program i dont write anything to the outputStream but XI creates an archive with 1 byte! its an 0x00 and i need it to be empty.

Anyone nows why is this?

Thanks!.

Mariano.

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

There was a similar question here recently, it seems to be a bug.

Open an OSS ticket for this.

Regards

Stefan

Former Member
0 Kudos

Thank you very much Stefan, i´ll do that. I will leave the post "not answerd" untill sap answers me...

Thanks again.

Mariano.

Former Member
0 Kudos

hi,

i don't know exactly whether it helps or not but check it once...

there is an option in Reciver File adpter-processing tab as "Empty File Handling" just select the parameter as "ignore" and try...

Former Member
0 Kudos

hi Chirumamilla, thanks for your answer, but i'd already tried every combination of configuration in communication channel ha ha.

Thanks anyway

Former Member
0 Kudos

Hi every one, here is the answer from SAP regarding this issue

-


Hi,

a patch for this will not be produced - the possible sideeffects are

legion as JCo is used all over SAP and there is an easy workaround.

If you do not want to reimplement your Mapping in Abap, you can simply

configure an Abap-Mapping to be executed after your Java Mapping, which

does nothing if the payload is bigger than one byte and which

produces a payload of 0 bytes if the source payload contains this zero

XString of length one.

Kind regards,

Christian Schmitt

Xi Development Support

-


:S

Former Member
0 Kudos

Thanks for sharing this info Mariano

- Gaurav