File Sender Channel

Hi,
I have a job running which copies a file from remote server to my PI server. I have a file sender channel which picks up this file send it for further processing.
Is there a way to make sure that the file sender channel reads the file only after it has completely been  copied from the remote server assuming that we dnt know what is the maximum time it could take to write the file.

Two options,
1. The script should write the file having set the indicator as read only. Only after it writes the file completely the read only option should be removed.
the option ●      Process Read-Only Files (for transport protocol File System (NFS)) should be disabled
2. Use this option,
Advanced Mode
To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
●      Msecs to Wait Before Modification Check
Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
Note
This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
All above solutions will work only if its NFS and not FTP

Similar Messages

  • File sender channel - file name "null"

    Hi all,
    I am designing a scenario where I am reading 2 files from 2 different senders, and these 2 messages are fed to a multi mapping in BPM, which creates a single target message. I need to read the name of only one of the two source files and populate it in one field of the target message.
    I have read some blogs and forum threads about how to access the file name from the sender file channel. It calls for turning on the adapter specifc parameters in the channel and writing the following UDF (taken from Michal's blog #2664) -
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    After doing all this, I am getting file name as "null". Can someone pls let me know the cause for this ? My concern is since I want to read only one file name, so I have updated only that specific file sender channel for adapter specific attributes.
    Regards,
    Shankar

    Hi Raj,
    I checked the ASMA for second channel also, but no luck
    I can see both the files names in their respective messages in SXMB_MONI under node 'Dynamic Configuration'. But the two messages enter the multi-mapping within BPM (where I have put trace to print the file name as per above code), the value is shown as "null".
    1) Is this file name access is possible only in simple scenarios ?
    2) Also, is the file receiver mandatory ? I have email receiver in my scenario.
    Any clues ?
    Regards,
    Shankar

  • File Sender channel polling successfully  but not picking the files.

    Hi All,
                    Can any one please provide any SAP Note  Or any Alert mechanism for the  File Sender channel in case where the XI channel in polling successfully at a particular folder from Source System  but not picking the files. Thanks in Advance for the solution.

    Hello,
                  If you want to know the reason for failure in picking up the file ,You can check the MessagingSystem monitoring for the reason behind failure.
    http://host:httpport/MessagingSystem/monitor/monitor.jsp
    For Alert may be you can follow prateek instructions.
    HTH
    Rajesh

  • Mass change in file sender channel.

    Hi,
    I want to do change in all my file sender channel and want to add following parameter.
    Parameter Name : clusterSyncMode
    Parameter Value : lock
    I have approx 300 file sender channel.
    So is ther anything by which I can perform mass change at the same time and can add parameter to it ?
    Please suggest if anything like this.

    You can change the parameter as a Service Property, applying to all communication channels at once. Please check the note below (for 7.1+, you must change it on NWA instead of VisualAdmin)
    [ Note 1259515 - 'clusterSyncMode' is available as service property|https://websmp230.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1259515]

  • MDM lookup parameters from File Sender Channel

    Hi SDNers,
    In my current assignment I am required to make an SAP MDM lookup in a JAVA Mapping to fetch certain details to further process the message.
    Currently the MDM server details along with user id and password are maintained in a properties file.
    During Migration from Development to Quality or from Quality to Production Environment this properties file needs to be changed and the mapping needs to be reimported individually in each environment.
    I want to avoid this cumbursome task of changing the properties file and re importing the Java Map on each environment.
    Is there any way to mention the following 3 parameters in the Sender Channel itself (in my case it is FIle Channel)
    Server IP Address, User ID, Password? so that the Java Map at runtime can access these parameters from the channel, as each environment will have different channel.
    I don't know if I can use ASMA or Additional Parameters for achieving this.
    Regards,
    Gautam Purohit

    Hi Michal,
    Can you please elaborate this?
    I need to give parameters like;
    mdm.repository.host=Development_Server
    mdm.repository.name=Development_Rep
    for all three environments.
    How can I achieve this using Value Mapping?
    Regards,
    Gautam Purohit

  • File Sender channel stopped polling on FTP site

    Dear all,
    We have many file to Idoc interfaces running in production and all are they good.
    Yesterday we faced one issue, one of the interface's sender communication channel stopped polling and didn't picked the files from FTP.
    There was no error on communication channel monitoring and it is green.
    We stopped & started the channel then started picking the files. But this is not usual behavior of file adapter.
    We found one SAP Note 1083488, according to this note, we are in the latest SP level( PI 7.0 SP 14). So not required to apply this patch my case.
    What should i do to not to face next time
    Regards

    Hi Bhavana,
    Check the below Q & A.....
    >> Q: After configuring a large amount of File Adapter sender channels, the J2EE Engine becomes very slow and some services start to block. How can I solve this issue?
    A: Up to and including XI 3.0 SP13 each File Adapter sender channel permanently consumes a J2EE application thread. To solve this issue, increase the number of configured J2EE application threads using the SAP J2EE Engine Config Tool ("cluster-data" -> "Global server configuration" -> "managers" -> "ApplicationThreadManager" -> "MaxThreadCount").
    Starting with XI 3.0 SP14 / PI 7.0 application threads are allocated on demand by the File Adapter and returned to the thread pool after it has finished the polling sequence, so thread shortage situations will typically occur much more rarely than with earlier SPs.
    Also as said by Other SDN'ers check the locks.
    Thanks,

  • Issue with archiving in file sender channel

    Hi Experts,
    We have configured a file to  ABAP proxy scenario in our production PI  7.0 system. the  file sender  communication  channel  is configured to perform " file content conversion"    and archive the  source file  after it is processed successfully.
    Recently , the sender channel stopped archiving the files.  but it is processing them.
    we need the source files to be archived.  i do not see any  related error  in XI logs and default trace files . also it is not a problem with disk space on file system either.
    can you please let me know  how the issue can be resolved.
    Thanks.
    -Kaushik

    Hi
    Make sure that you have selected processing mode Archive
    Try by Checking Add Time stamp  check box.
    Check the Archive File path in correct format
    or put archive file in diffrent folder from which selecting file.

  • Multiple Files as attachments in File Sender Channel

    Hi All,
    I am trying a scenario where i need to pick all files in a folder and zip them at once. The name of the ZIP file can be anything, but names of the files in the zip file should not change.
    Example : sample_il0.csv, sample_il1.csv, sample_il2.csv, sample_il3.csv.
    now the Zipped file can be any thing. Like completezip.zip. But in the completedzip.zip should have these sample_il0.csv, sample_il1.csv, sample_il2.csv, sample_il3.csv files.
    The condition is the names of the files should not be changed in the Zipped file. Zipped file name can be anything. This is much like selecting all files at once and right click and zip them at once on windows.
    For this i am using additional files option in sender file adapter and payloadzip bean.
    It is creating resultant completezip.zip file and this zip file has 4 files namely MainDocument, sample_il1.csv, sample_il2.csv, sample_il3.csv.
    Everything is good except MainDocument . Here i am  expecting sample_il0.csv file.
    <SOAP:Body>
    - <sap:Manifest xmlns:sap="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink">
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d33190d134c811e1b0861606dd288802sap.com">
      <sap:Name>MainDocument.zip</sap:Name>
      <sap:Description />
      <sap:Type>Application</sap:Type>
      </sap:Payload>
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d33190d234c811e1cb7a1606dd288802sap.com">
      <sap:Name>sample_il1.csv</sap:Name>
      <sap:Description />
      <sap:Type>ApplicationAttachment</sap:Type>
      </sap:Payload>
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d331b7e034c811e1c7dc1606dd288802sap.com">
      <sap:Name>sample_il2.csv</sap:Name>
      <sap:Description />
      <sap:Type>ApplicationAttachment</sap:Type>
      </sap:Payload>
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-d331b7e134c811e192371606dd288802sap.com">
      <sap:Name>sample_il3.csv</sap:Name>
      <sap:Description />
      <sap:Type>ApplicationAttachment</sap:Type>
      </sap:Payload>
      </sap:Manifest>
      </SOAP:Body>
    Here my question is how to change MainDocument.zip to sample_il0.csv  as shown in the below.
      <sap:Name>MainDocument.zip</sap:Name>
      <sap:Description />
      <sap:Type>Application</sap:Type>
    If i am able to bring above as below, then i think, everything will work fine.
      <sap:Name>sample_il0.csv</sap:Name>
      <sap:Description />
      <sap:Type>Application</sap:Type>
    How to change the obligatory name of main payload ?
    Best Regards,
    Subbu

    I somehow think you have complicated the scenario with modules and additional files. You could have zipped the file at sender using some script and then made a simple file transfer.
    For your question, I don't think you can change the name of MainDocument. It is the name of the first picked file which seems to be converted into MainDocument.
    Regards,
    Prateek Raj Srivastava

  • File Sender Communication Channel not working

    Hi All,
    We have one file sender channel which sends file after every 3 hours.
    But currently it has stopped the processing of file.
    If we see in RWB it shows that "Correctly configured and started",but if we start and stop the chanel it doesnt show any processing started message.
    File is there in the folder but the channel doesnt poll the folder to pick up the file.
    We have refreshed the cache and activated the channel again.
    But still no luck,does anybody have any idea?

    Hi Shweta,
    Please check the parameters of your File adapter. There can be following  possibility if File adapter is not picking the file :
    1. File adapter is not active
    2. Incorrect File name, Directory name or path,
    3. File does not exist in the source directory.
    4. If you are accessing file from other server (use FTP protocol) check you have READ and WRITE access.
    Thanks
    Farooq.
    <b>*Rewards points if you find it useful*</b>

  • MDM Sender Channel - reading file name

    Hi all,
    Is there any simple way to read the name of file sent by MDM when I am using MDM sender adapter ?
    I know if it's file sender channel, then we can read file name by writing a UDF. But just wondering about MDM sender adapter.
    Regards,
    -Shankar

    Hi Paul,
    you can always delete this inside your mapping:
    for instance trim the first 13 letters from /home/example
    then if your directory is always the same you'll have a filename only
    Regards,
    michal

  • Problem while archiving faulty files in File Sender Adapter

    Hi All,
    I am facing some problem while archiving the faulty files using Sender File adapter.
    I have configured the option in the File Sender Channel to archive the files to some
    other location. I have configured some custom modules inorder to perform conversion.
    My file adapter is not archiving the faulty files. Please help me in this regard asap.
    Best Regards,
    Surya

    I have checked with all the authorization issues. It is still no archiving the faulty file.
    Can you please explain the mechanism behind this concept?
    How File adapter will decide that it is faulty? On what basis?
    How Modules play a role here?
    Regards,
    Surya.

  • File sender adapter not reading

    Hi experts,
    We're getting an issue with the File sender channels in our system.
    None of the files we place in the source directory is read by our channels.
    These channels are NFS. We've already gave all permissions to SO user <sysid>ADM.
    The CC monitor don't show us any error, it's working as if there were no files in the directory, when there are.
    Does anyone know what could be happening? And is there any other place/log when we can check?
    Thanks in advance.
    LUIS B.

    Hi Luis,
                   Check the permission bits of the file you are trying to read . If the source system is unix all of RWX bits must be set to 1. If you do not have access to change the file access permission in unix folder you can take help of Basis team or another way is to use the option Run Operating System Command Before Message Processing. Here you can mention
    chmod 777 *.*
    This will make all files available for PI to read, write and execute.
    Second reason maybe that your channel might have got locked and is unable to pick up files. Although in CC monitoring you can see polling is going on. Please request your Basis team to look into the communication channel properties.
    Hope this helps.
    regards
    Anupam
    Edited by: anupamsap on Jun 13, 2011 11:52 AM

  • File sender ch. - specifying multiple source with *

    Hi folks,
    In my File2Idoc scenario I need to pick up files from an ftp server where I have about 20 partners which folders look the same.
    like
    root/p1/subd1/import
            p1/subd2/import
            p2/subd1/import
            p2/subd2/import
    In my file sender channel I wanted to specify /root///import but it didnt work.
    1. Is there a way to specify directories like above?
        Or do I have to enumerate all the directories (near 100) in the Advanced selection for source file in the adapter?
    2. I have to move the processed files to import/archive in each partners folder.
        If I specify multiple sources in the adapter, how can I reference them in the Archive directory field on Processing tab?
    thanks

    Hi ,
    While you are using the FTP File Adapter then in the sender Communication channel
    Go to source Directory : then mentioned the /direcotry/filename then under mentioned the File name.
    After that Go to Process Mode tab in the Sender CC Select the Process Mode like "Archive " then you mentioned the Archive directory Path like for ex: /dirname/interfaces/devision/inboundoroutbound/archive then choose the file Type Binary
    May be it helpful to you !
    Regards,
    Ravi.

  • File send adapter error : java.lang.NullPointerException

    Hi All,
    I have an issue on some of the file sender adapter communication channels .The channels are failing with the error :
    Error :"Attempt to process file failed with java.lang.NullPointerException"
    This issue is happening for couple of file sender channels.When I try to stop and start the channels couple of times the failed messages are getting processed.And after the processing of the failed file, the new files are successfully polling as usual.
    Please share your experiences as on why this issue is happening and what is the permanent fix for the issue ?
    Thanks in Advance !
    Thanks & Regards,
    Roni

    Hi Roni,
       Try with a J2EE restart of the PI server. Hope that will solve your problem.
    Thanks,
    Anudeep

  • File Sender EOIO

    Hi there again,
    in a file collecting sceenario our integration process is filled by data files and is waiting for a commit file in order to continue the processing. Because this commit file uses another message interface as the other messages, we have defined two file sender channels, one for the data and the other one for the commit files.
    The sending application ensures, that first all data files are written. If this is completed, the commit file is stored to the polling directory. The integration process must also ensure that the commit file enters the process after the data. For this, I've set the file sender channels to EOIO mode and defined a queue name that is used by both channels.
    I have some doubts that EOIO works over different file sender channels. I haven't found also any documentation about this. Can anybody confirm this functionality?
    Help is highly appreciated and will be rewarded!
    Kind regards,
    Matthias

    HI
    check the bellow link on EOIO
    http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/content.htm
    This link gives for XI Adapters & EO EOIO And BE
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
    Adapters that supports Quality of Service-"Exactly once(Eo) and Exactly once in order(eoio)" are Synch and async
    Only async adapters-file,idoc,jms.
    regards
    chandra

Maybe you are looking for