Skip to Content
0

multiple files zipped into single zip file at the receiver.

Dec 05, 2017 at 12:04 PM

105

avatar image

I have a multiples files at sender i need to zip it into a single file at the receiver.

when i put multiple files in my sender channel the files will be individually zipping into different folders,but i need them in single zip file.I used AF_Modules/PayloadZipBean in receiver channel module tab and zipmode as zip.All.If any one know about this please comment it.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Dec 05, 2017 at 12:58 PM
1

Hi Prashant,

Two things that come to my mind:

1) Are you sure all your files get sent in a single PI message, i.e. are you using the "additional files" configuration in the sender adapter?

2) The zip mode that would put the main payload and all attachments into a single file is called "zipAll" (without period). Can you double check that you did not include the period that you have in your questions?

Regards,

Patrick

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Patrick,

I used advanced selection for source file to pick multiple files from different folders and i used zip.mode without period also(zipAll) it is not an issue.All the files are picking from sender but at receiver it is creating individual zip files at receiver.

0
Former Member

Hi Prashant,

Can you post screenshots of your sender and receiver channel configuration?

Are the files showing as attachments of a single message in your message monitor?

Regards,

Patrick

0

No every file is processing with different message ID,my requirement is all the files need to zipped in one one file.

0
Former Member

If you are processing each file in a separate message ID, you cannot zip them into one archive using the PayloadZipBean module as it would only ever apply to a single message. The "additional files" option I mentioned will take care of storing all your files into a single message. If you must process the files in separate messages, you'll have to revert to a script-based solution, i.e. you'll have to execute a shell script after you have posted your files to your target directory that detemines if all needed files are there and performs the zip action.

0
prashanth reddy Dec 06, 2017 at 10:50 AM
0

I didn't solved this as of now.

Share
10 |10000 characters needed characters left characters exceeded
Chih-Chieh Chan Dec 08, 2017 at 08:59 AM
0

Hi, Prashant

Two things to check:

1.Did you put PayloadZipBean the last module before executing CallSapAdapter module

2.Please check if your module configuration the same as following picture, which works fine for zip all files into 1 compressed file.

Jay


1.jpg (98.7 kB)
2.jpg (20.7 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

This is how you should get the result you want - but only if you have all files attached to a single message. As that doesn't seem to be the case, it would really be helpful if you could update the question and share your configuration.

0