on 02-11-2013 6:18 AM
Hi,
I have a File to IDoc scenario with FCC & FTPS on sender side. I need to archive the files but the file which I receive has extension .txt while I need to archive them with a different extension say .dat. How could I change the extension while archiving the files.
Hi,
if the above thing does not work...
Create one more receiver with file adapter as receiver and place the file in the archiving directory with the extension you needed...
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If I go with the option of having another config and have a receiver channel with archive dir, then I must be having the dynamic config so that I can have the same file name. I have the Java mapping code for dynamic config, but I am not sure as to how to configure for this requirement. If I create another operation mapping with the same sender Interface, I am getting error as Interface determination did not yield any actual interface. The Java mapping is correct, but the scenario is not working..Could you help out..
Hi Adarsh,
If you are using NFS protocol and archive on local network as kancham suggest you can do this using RunOS command after message processing ,
you have to create dummy folder for archive where your message is archived and then use move command/or copy command to copy/move file to your original archive folder with ur require extention
eg.
copy c:\dummy\file.txt c:\orignal\file.bak
copy c:\dummy\*.txt c:\orignal\*.bak
Regards
Gagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually my requirement is to have in archive as Original Filename (without ext) + CurrentTimestamp + “.bak”. Since as such the time stamp is added as TimeStamp_FileName.extension etc. Note how the position of timestamp is also different in my case. I dont want to have another bypass scenario. I want to archive as .bak while I get the files as .txt or .dat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I thnik it would be handled by Bypass scenario(file to file ) with receiver file communication channel with required extension,you need to create dummy objects in IR and ID and receiver file comm channel.
Regards,
Girii
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am not sure but you can try with RUN OS COMMANDS AFTER MESSAGE Processing.
Regards,
Sree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.