Multiple Archive directories in Sender file channel

Hi Experts,
My requirment is to have multipple archive direcotories in Sender file channel.
We have multiple source dirs  e.g.
c:/abc/
c:/bcd/
c:/cde/
and we want to archive the files from these source dirs to corresponding archive directories e.g.
c:/abc/archive
c:/bcd/archive
c:/cde/archive
I can see that we can have only 1 archive directory when the processing mode is kept as  "Archive"
How can we achive the same , Please help
Thanks in Advance,
Jyoti

Hello,
I guess you don't have option to archive files in different directories using single CC.
You can archive the files in 1 directory and then run a OS script, which will place the files in different directories (using NFS as protocol).
Some reference:
http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/10392. [original link is broken] [original link is broken] [original link is broken]
-Rahul

Similar Messages

  • Multiple directory locations in Sender File adapter

    Hi All,
              I have a scenario where my single adapter needs to poll from 7 different directory locations. Is it posible to configure all seven sorce directory location in single sender file adapter.
    Regards,
    Xier

    Hi,
    I apologize for wrong information, actually I never tried but it's possible after seeing this.
    Note:821267
    11. File Sender: Processing Multiple Source Directories
    Q: Can the File Sender Adapter be configured to poll multiple source directories from a single channel?
    A: This functionality is available starting with XI 3.0 Support Package 14 as well as PI 7.0.
    raj.

  • .csv file Vs .txt file Content conversion sender file channel

    Hi Experts,
                     I have a file with filename say input.csv.I want to do content conversion for these .CSV file.Is it same like we have to do for .txt file say input.txt.
    when i open my .csv file in notepad, i get multiple rows with each field separated by ';'.what are the content conversion parameters we have to define for .csv file and can we mention input.csv as the file name as a source file name.
    Thanks
    Deepak

    Hi,
    Use the following parameters for Sender file channel in case of reading .csv file
    Recordset Structure.fieldSeparator -
    Recordset Structure.endSeparator -
    'nl'
    Recordset Structure.fieldNames -
    provide field names separated with ,
    Regards
    Seshagiri

  • Error in Sender File Channel

    Dear all,
    I'm trying to execute a File to File scenario.But I'm getting this error in the sender file channel.
    "Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID a0ff7230-8793-11dc-a4d5-001558e4827d(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: NWMssSQLServer JDBC DriverSQLServerViolation of PRIMARY KEY constraint 'PK__XI_AF_MSG__2B090089'. Cannot insert duplicate key in object 'dbo.XI_AF_MSG'.."
    The file is not getting picked, the processing mode is set to "Delete". Please help me out in resolving it.
    Any hep would be rewarded.
    Regards,
    Younus

    Hi,
    Check whether you have given the filename to other communication channel as well. Because it seems to execute another interface where you have a JDBC been used.
    If so change the file name in CC and in your file and check it once again.
    Regards,
    Nithiyanandam

  • How to raise Alerts for Sender File Channel

    Hi All,
    For Sender File Channels , we can find out the status of the adapter through RWB as to whether it is Content Conversion related exception or Folder path not found exception & etc .
    I wanted to know as to whether there is any way where can rasie alerts for Sender File Channels (similar to what we do for Reciever File Channels) as well.
    Regards
    Vinay P.

    I found it myself .
    In Alert Configuration while we are adding alerts for a particular aler category , the following parameters needs to be checked .
    Connected to Message : Not Relevant
    Sender Service/Party/Interface/Namespace needs to be mentioned.
    Adapter Type should be selected as File

  • Sender file channel in DLNG mode when ICO used

    Hello All,
    I am working on SAP PI 7.4 version Dual stack installation.
    As part of Inbound Interface development, Operation mapping has been included in Integrated Configuration Object (ICO). But when tried to execute the Interface the sender File communication channel always into Delivering mode DLNG and it never went to DLVD mode while reading input file.
    Hence I have followed the traditional approach of by creating all configuration objects RD,ID,SA,RA in place of ICO. Now the communication channel is able to read the input file successfully.
    Can any one please tell me the reason behind this issue
    Note : There were no changes/corrections made to the sender file channel.
    Thnx&Regards,
    Moorthy

    Hi naresh,
    Check the communication channel montiring tab ,give the channel name and see whether able to ping the destination and down you can see logs as well.
    Regards,
    Loordh.

  • Sender File Channel unable to process

    Hi,
    I have a scenario where we are using a sender file channel. It polls every 1 hour at the source directory.
    Suddenly yesterday the channel stopped processing and never polled again automatically.
    It started the processing but did not finish the processing. (There is no error)
    Now when I manually restart the channel it directly goes to the polling interval and gives the log :
    "Polling interval started. Length: 3600.0 seconds" every 1 hour. It does not start the processing of channel.
    As an additional information I checked that the Server to which it is polling had some error at the time when it stop processing.
    Please help how could I start the channel processing now? Is there some kind of lock issue or anything else.
    Thanks,
    Vikas

    Hello Vikas,
    In addition to the previous posts, check the following as well.
    1)
    As I donu2019t know which SP level your system is on, please check the note below and apply the patch accordingly.
    > 1317686 - Adapter Framework Scheduler may fail to remove a job
    2)
    Check whether you have deployed on your system the patches described in this note (as as mentioned in the post above).
    > 1083488u2013 XI FTP/JDBC sender channel stop polling indefinitely
    3)
    Please check if there are locks (as as mentioned in the post above) for this channel according to section u201CHow to manually delete hanging Enqueue-Locksu201C in note:
    > 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter
    Follow the instructions and delete the lock related to the stopped communication channel.
    For the 7.1 versions, please note that the Lock Manager is under the /nwa/locks, or on the location "Availability and Performance Management -> Locks".
    4)
    Configure a timeout for the FTP connection.
    In more recent support packages you can set the "Timeout" parameter available in the "FTP Connection Parameters" section.
    Alternatively, please enable the "Advanced Mode" for the respective FTP communication channel in the Integration Directory and add an entry "ftp.timeout"=timeoutSecs (without any quotation marks) to the "Additional Parameters" section, where timeoutSecs is the desired FTP timeout in seconds.
    Please refer to the note below for further details on this.
    > 849089 - XI 3.0 / PI 7.0 File Adapter: FTP Timeout Handling
    Cheers,
    Jorge Eidelwein

  • 3 Source directories in Sender File. How to set 3 Archive Directories?

    Hi guy's,
    I have scenario File to IDOC where from 3 source directories the XML has to be taken and processed. I used Advanced Selection for Source File in one communication channel.
    For each source directory, there is an archive directory but in the field Archive Directory of the Communication Channel, there is possibility to put only one directory.
    How can I put 3 archive directories in one sender File communication channel?
    Kind regards,
    Danijela Zivanovic

    You need to have different CCs for keeping archieve files in different directories.
    Similar thread can be found at
    Multiple Archive Directory
    Rehards,

  • How to pick files from multiple directories via Sender File Adapter?

    Hi guys,
    I have a scenario File to IDOC. The Sender File Adapter has to take all files: .xml from Source directory E://Current/.
    Actually directories are like
    E:/Plant1/Current/
    E:/Plant1/History/
    E:/Plant2/Current/
    E:/Plant2/History/.
    Can I have one Sender File Adapter to pick all *.xml files
    from
    E:/Plant1/Current/ and
    E:/Plant2/Current/  and how can I write it in Source Directory of Communication Channel?
    Or do I have to have a Sender File Adapter for each Plant?
    Any suggestion please?
    Kind regards,
    Danijela Zivanovic

    Hey
    You might wanna have a look at "Additional selection for source file" parameter in sender file adapter.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/singleSenderFileCC4MultipleDirectories
    XI/PI: how to exclude files in a sender File adapter?
    Even though this method works but there are some constraints,please check help.sap.com for constraints.
    Thanx
    Aamir

  • Sender file channel issue

    Hello All,
    Here I have a problem with sender file communication channel. THe channel is not able to pick a file as the file format is not correct andf throwing exception in the channel which is expected. But Its not allowing to go and pick the other files with correct format till I remove the bad file from the Source dir location.
    How to get out of this issue Pls help me
    Regards,
    Moorthy

    Hi,
    Maybe you can delete or archive the erroneus file and then all the other files are processed?
    Set checkbox Archive Faulty Source Files and give directory where the erroneus files are moved.
    Also under module tab add new row  int the Processing Sequence table like this:
    AF_Modules/MessageTransformBean ............. 1
    And in under Module Configuration:
    Module Key ........ Parameter Name ...........................Parameter value
    1 ......................... Transform.PermanentErrors .........true
    If this won't help, please check the No[Note 1265534 - Archive faulty files does not work with add time stamp mode|https://service.sap.com/sap/support/notes/1265534]. Basically this means that archiving does not work if you have set the 'Add timestamp' option so check that too.
    More about the Me[MessageTransformBean Fauty Source files |http://help.sap.com/saphelp_nw70/helpdata/EN/57/0b2c4142aef623e10000000a155106/content.htm]
    Please remember that empty files are handled with their own settings.
    Regards,
    Mika

  • TWO SENDER FILE CHANNELS POLLING SAME DIRECTORY

    I have a requirement to send a single file from a single FTP location to two different Target FTP locations as a passthrough interfaces. PI version 7.31
    I thought of doing it through two different interfaces, both FTP to FTP keeping source same and destination differently
    For First target (T1)Created dummy interfaces(Out/inbound) in ESR, created a configuration scenarion ,Sender and reciver FILE channels in ID, created an ICO.
    For the second Target(T2) : can i use the same dummy interfaces as used in first while creating Sender channel?
    can i use the same Sender channel as in first scenario to the ICO of  Interface for second Target(T2)--> it gave error, same sender channel(IF FILE) channel can't be used to different Sender Agreements/Integrated Configuration Objects. So i copied the sender channel with a different name and used it in second Interface.
    Reciever File channel obviously different for both cases with different server details and direcories.
    My fear is, if i can go with this set up as we have two sender FTP channels polling on the same FTP directory, so possibility of lock issue and channel are operational on a mapping of one hour(first one 8to10 and second one 9to12, so 9 to 10 both channles poll simultaneously).
    Please suggest any better way of handling this, or to resolve the lock issue ?could clusterSyncMode=lock help here?

    Hello,
    I think u are getting confused.
    >>My query was, if we could use two recievers(service) inside a single ICO, without giving any condition. Answer it please in YES or NO?
    Yes, indeed u can do it.
    IF YES, then how would  the message dynamically determine the correct/specific reciever out of the two recievers configured in ICO?
    >>Since u want to send same message to two different FTP servers so u don't have to worry about dynamically determining receivers. As soon as file sender adapter picks the file it will route the message to both the receivers and eventually send the same request message to two different FTP servers.
    Hence i assume, for every file kept on source direcory, there would be two messages( 2 files) going to be created on two different targets? YES or NO?
    >>YES
    Thanks
    Amit Srivastava

  • Sender File channel error

    Hi Experts,
    We are getting the below error in the File sender channel.
    Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException:24
    This error we are getting for one specific File Channel. Other File channels are working fine. 1 message is also picked up by this channel but everytime it shows the same message id and the error.
    Please let me know how to fix this.
    Regards,
    Shaibayan

    Hi Shaibayan,
    Kindly check for detailed logs in NWA for this channel.
    Also if possible try to collect logs from XPI Inspector tool, more details can be found in below OSS note:
    1514898 - XPI Inspector for troubleshooting XI
    Regards
    VJ

  • Can we schedule sender file channel for every 2 hrs??

    Hi all,
    I want to run sender channel for every 2hrs. i searched in Availability Timings but there is no such facility to schedule the channel for every 2 hrs
    There is an option to schedule the channel on daily basis and for how much duration time it should run.
    This won't work in my case
    please share your thoughts...
    Regards

    Hi RP,
    >>in the configuration of CC sender file --> poll interval(secs) = 7200. this value is equals to 2hs
    problem solved right?
    Good Idea, but the problem here is a i explained above this is combination of 2 interfaces
    1) Idocs will be triggered every 2 hrs in ECC and records will be appended to single file on XI Shared drive.This is one interface
    2) Another Interface is to pick up the appended big file From XI Shared drive to FTP Server.
    EX:
    If all Idocs triggered at 1:30pm from ECC----all records will be appended to single file suppose by 1:31pm
    Now in second interface i gave poll interval as 7200 and activated at 1:40pm, so the file will be picked up at 1:40pm
    So this frame of time interval continues smoothly like next job is ecc will run at 3:30pm and appends to file by 3:31pm there by second interface will pick up at 3:40pm. This is the correct way of execution
    PROBLEM: In this process, If my PI server is down at 2:00pm and is up at 4:11pm, there won't be any problem with first interface.my second interface starts from 4:11pm(server up time) onwards and keep polling for every 2 hrs from there onwards. so my total time frame is collapsed .
    Regards

  • Sender File Channel Cluster Node issue in CC monitoring

    Hi,
    I have a issue in Sender File CC. The channel is active and polling every 1 min. The issue is in the CC monitoring it is just showing one single line i.e "Polling interval started.Length: 60.0 seconds" the other two lines Processing started and Processing Finished Successfully are not visible...
    Please let me know the solution if you have faced a similar issue.
    http://i50.tinypic.com/28sv4vr.jpg This is the refrence to the screen shot from CC monitoring...

    Deepak,
    Please let me know the solution if you have faced a similar issue.
    Delete the Enqueue-lock related to the stopped Communication Channel. Refer SAP Note 821267.
    For the 7.1 versions, please note that the Lock Manager is under the /nwa/locks, or on the location "Availability and Performance Management -> Locks".
    @ Ramg
    If no files are placed in the source directory and the channel will keep try polling l!!! Place files in the source and check.
    Even if there are no files in the source directory, the 3 steps of - polling interval started, processing started and processing finished - should take place by the file channel.
    Regards,
    Neetesh

  • Sender File channel in "To be Delivered" status always- PI 7.4- ICO interface

    Hello All,
    We are testing one Integrated Configuration Object (ICO) which is developed on PI 7.4 system (dual stack). Scenario is simple file to file and it doesnt have any ESR part (pass thru interface).
    Sender channel (File adapter NFS based) is picking the file from IN directory and after which it is always in "To be Delivered" status and it never passed to Receiver file channel (NFS based).
    We tried stop and starting the channel, deleted and recreated the channel, reactivated the channel, cancelled and restar the message from Message monitoring page, Cache refresh from ID and CPA cache refresh which didn't help us.
    Below is audit log of sender File channnel:
    Please help us in solving this problem.
    Thanks,

    Hi Naresh,
    Have you tried Eng Swee Yeoh advices in this blog Handling and preventing messages stuck in To Be Delivered status?, like to set timeout and the mode Per file transfer.
    Regards

Maybe you are looking for

  • Cropping photo in album A changes same photo in album B  too.

    I have Album A, with photos cropped square. I copied the same photos to Album B and I want to crop those lets say 'postcard' format. I need to work with these 2 formats for my business. Now all photos in Album A also change to 'postcard' size. How do

  • Coldfusion or php?

    This might be like asking which sport is the most popular while standing outside the superbowl, but I am trying to decide between CF and PHP for dynamic websites. I use DW8 and would like to try dynamic sites. I know nothing about programming but wou

  • Importing music already on the computer

    I turned off the feature to import new songs that I upload onto my computer every time I open itunes and I can't find where to turn it back on. Can you please help. And is there a way to have it automatically sync to my ipod every time I plug it in?

  • SQL Database is corrupted

     unfortunately hard disk of my system is damaged, now i recovered my database. but it cannot be attached again to SQL management studio 2005.   the error is  myfile.mdf is not a primary database file. (SQL server , error 5171)

  • Talk to text is broke

    talk to text is broke