on 2020 Jul 09 10:41 AM
Hi,
I would like to take 2 files with same name but different extension from a folder in SFTP.
In that FTP folder we will have lots of pair files, for example 5 PDFs and 5 XMLs. Each pair of PDF + XML has same name:
File1.PDF
File1.XML
File2.PDF
File2.XML
...
What we need to do is to take every pair with same name: 1 PDF + 1 XML (File1.PDF + File1.XML), leaving in the folder the other 4 PDFs + 4 XMLs. We will take the other pairs next time.
Is this possible?
Thanks.
Is it not possible with "namePart" attribute?
I will try that before developing custom adapter module.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course, this is the standard feature of handling additional files.
The XML is then ideally the main payload and the PDF will be handled as an attachment.
Hi Iker,
If the goal is to process the files in pairs - then use the correlation functionality to match them.
If you want to keep an order - still some queing may be helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have a fixed file name for all the pairs and do you have a fixed number of pairs?
name part will work to pick two different naming formats of files, so a good fit for .xml and .pdf for a similar filename.
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is not possible with the standard adapter configuration, there are two ways to achieve this
1. Custom adapter module
OR 2. script run before the pick of file
The script can club the files into Process and main folder on every run and only process folder files are picked up by the channel.
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.