cancel
Showing results for 
Search instead for 
Did you mean: 

ReceiverFTPAdapter-same file with 2 different names in the same directory

Former Member
0 Kudos

Hi all,

In a Proxy to File scenario, At PI we are generating target file by using conversion of XML to Plain in file/sFTP adapter.

Here, i have to create 2 files(content of the file is common in 2 files) in same target directory.

Below are the approaches we tried:

1.Staging directory on servers - where we can Run a OS command to place the file in the archiving directory.

2. Configure 1 more receiver service interface, receiver agreement and receiver sFTP channel to send the file into both the directories at the same time.

Please suggest any other appraoches other than the above.

Regards,

Divya

Edited by: Divya_10 on Jun 14, 2011 10:30 AM

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

thanks for suggestions it helped us alot

Former Member
0 Kudos

Hi Divya

You have an additional option using same design and configuration objects.

Just change the interface determination inserting 2 times your receiver interface and the related interface mapping.

If the name of the 2 files has to be completely different (and not just the same name with appended a different timestamp in the file name itself), then I think you need to create 2 different receiver interfaces.

Regards,

Giuseppe

Former Member
0 Kudos

Hi,

Since you are creating 2 files with same content in one directory, assume that either the files have different names or different extensions.

In that case, if using multimapping you will face an issue with dynamic filename as multimapping does not allow you to store more than one filename in the message header.

If you have the option of naming the files using variable substitution, then suggest you go for multimapping.

Other than this, the two other options that you have mentioned works fine. Only issue with using a script is its monitoring if the script fails.

Regards

Shabarish_Nair
Active Contributor
0 Kudos
2. Configure 1 more receiver service interface, receiver agreement and receiver sFTP channel to send the file into both the directories at the same time.

go for this option / One receiver and two interface determinations, two receiver agreements will also help

Former Member
0 Kudos

Hi Divya

If target folder is the same, you can try with a 1:n multimapping defining rules so that you will always create 2 messages.

You will need to use add timestamp as file construction mode to distinguish between those 2 files.

Regards,

Giuseppe