cancel
Showing results for 
Search instead for 
Did you mean: 

Sending multiple files using file adapter

bhavesh_kantilal
Active Contributor
0 Kudos

The scenario I am implementing requires multiple files of different names to be picked up by my adapter. I dont want to create different file adapters for each file. I tried using the "Additonal Files" option in the sender file adapter in my configuration, but am not able to do the same. Any idea as to how the configuration for multiple files for same adapter isto be done?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I haven't tried but remembered that, you can use wild cards. So try .

regards

Shravan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

you can use sap*.xml, It will pick all files which starts from sap and having extention .xml,

you an specify on your requirement.

Regards

Piyush

Former Member
0 Kudos

Hi

sravan

I have seen this post with no reply, and when i have posted the reply and what a coincidence Your reply is there.

What is your requirement?

You have to send multiple files by using single Communication channel in one scenario?(many output file for one input file)

Or you want to use the same communication channel for multiple files having different name?( one file for one input file)

Claify this so we could help you out what should be done?

Regards

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

The scenarios I am trying to implement requires me to use different file names to be picked by the same file adapter. I cannot use wild card characters, as my file names are all not related and so is the extension of my files.

Requirement: ->Multiple files(different types, ex:.txt,.xml),

-> same communication channel

->no wildcards.

Former Member
0 Kudos

Hi bhavesh

Fundamental of adapter configuration is you have to give valid xml structure to XI, so you will define your configuration according to your requirement.

for .xml you have file as a message protocol while for .csv you have file content conversion as a message protocol.

So you have to define adpater configuration for sender side for one type of structure.

So you need a different communication channel for different extentions.

for diffrent strcutures,having same extention, you can execute this.

Please make me clear that what is your scenario?

why you need to pick all files under a directory with a same communication channel?

Regards

Piyush

Former Member
0 Kudos

are you really sure about this requirement? in XI you have to create a sender agreement for each communication channel, where you specify the message interface of the sender. each communication channel can only be used in ONE sender agreement, so you can only send one interface through a specific file adapter and i'm wondering how you achieve this when you have different extensions thus different content? If you receive XML, you would not need content conversion, if you receive txt or csv, you will need content conversion to put the data into a XML structure... (unless you receive XML with "wrong" extension txt).

So could you give some more detail on what you are doing?

best regards

Christine

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Piyush and christine,

I guess you guys have it right when u say that the xml files and other text files need separate adapters due to the file content conversion needed. The scenario I am trying to implement has 2 situations,

1. either xml files are the input

2. text files are the input

I can create different communication channels for each of the 2cases.But, the prblm am facing is that I need the same channel to pick up multiple files of different names. I cannot use wild card characters, but need my channel to pick up these files.

Example: How can the files "example.xml" and "trial.xml" be picked up suing the same adapter. I don't want to use wild card characters like "*.xml", etc.

Hope my requirementsare clear.

Former Member
0 Kudos

Hi

This means you want to pick only example.xml and trial.xml and rest of the files(excluded *.xml) should not be picked.

Regards

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Piyush,

You are correct. I just want those two files to be picked up.