cancel
Showing results for 
Search instead for 
Did you mean: 

Unzip Using PayLoadZipBean

0 Kudos

Hello,

I am facing an issue with PayloadZipbean.

I have a file at SFTP location e.g. "xyz.zip" and it contains another file "abc.csv" in it. I need to process this CSV file.

I created SFTP communication channel and I have given file name as "xyz.zip".

In module processing, I am using PayLoadZipbean and MessageTransformBean to process this file.

MessageTransformBean is working correctly.

Processing Sequence :

0 AF_Modules/PayloadZipBean

1 localejbs/AF_Modules/MessageTransformBean

2 localejbs/CallSapAdapter

and for unzip I have mentioned parameter as zip.Mode = unzip.

Problem: Some different character set is shown in SXMB_MONI.

If you directly open any zip file in notepad++, same character set is visible.

It looks like unzip is directly opening the file  instead of extracting it.

Any help will be highly appreciated.

Thanks and Regards,

Sanjay

Accepted Solutions (0)

Answers (2)

Answers (2)

lalitch08
Discoverer
0 Kudos

I am also facing the same issue. Did you get this resolved somehow, do we need any patch for this.

iaki_vila
Active Contributor
0 Kudos

Hi Sanjay,

Have you checked in the adapter audit log if there is any exception?, may be the zip is bad formed.

Also, try to get file without payloadzipbean and to decompress it manually in order to check its structure.

Regards.

0 Kudos

Hi,

CSV file in ZIP is correct. I have checked with the file only (without zip), it works perfectly. If you have zip folder on your desktop and if you try to drag and drop it in notepad, it would give some output in notepad. Same output is in my payload.

Somehow extraction of the file is not working. Is it possible that SFTP also needs to support extraction or something like that.

Regards,

Sanjay