on 04-03-2017 11:02 AM
Hello Experts, we have a requirement in our File ----PI----File scenario where we are required to unzip the zip file in the target folder in Al11
.
The zip file on the source can contain multiple files in any format which are required to be unzipped at the Target. we are required to achieve this in PI apart from the OS command option.
I tried using Payload zip bean in the module tab in the receiver but it seems it is not working and sending the zip file as it is to the target. Screenshot attached.
Kindly suggest.
Regards,
Shubhamcapture.png
Hi Shubham!
First, what kind of adapter is used at receiver side? If it's File adapter - it doesn't support working with attachments. You need SFTP adapter for your requirement.
Second, what is your target file naming scheme? If you use ASMA parameters to set target file name from sender ASMA parameters, the situation is possible that at target location you get your first extracted file with the name of source zip file.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
Many thanks for providing the additional parameter detail for handling filename attachments.
I used this in my receiver SFTP adapter under Advanced tab and out of 4 attachments in my case, I see last three attachments have been created with correct names but the first attachment (main document) is still taking the filename value given in the receiver SFTP adapter filename field.
How can I make sure to create the main document with same filename as coming from the zip folder?
Thanks, Sai.
Hi Subham!
Do you have constant file names inside your zip archives?
If Yes - you could use DynamicConfigurationBean to set file name.
And if you need to extract multiple files - you have to use SFTP adapter on receiver side.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Subham,
Did you try checking adapter specific message attribute, File Name on sender channel and receiver channel?
Thansk,
Nishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Nishant ,
Thanks for the above reply.
I want to unzip the source .zip file in the target folder and with the same name as in the source .zip file.
Request you to help me with the best approach for the same.
Thanks!!
Shubham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shubham,
The module configuration looks good, what error you are getting? if you cant see any error then try XPI_inspector trace or increase loggin level in ICO and check.
You can also try unzipping one file if that works try with your actual scenario.
Thanks,
Nishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.