File Adapter Exclusion Mask

Hi all,
I'm need to specify a mask to a Sender File Adpater that prevent processing files that contains ? on the file name, example : FileABC??.txt
Is possible to use regular expression or a advanced filter to this? Because if I put ? on Exclusion Mask the ? will be understood like any character.
Best regards

Hi,
Yes, I've already see it, but my problem is that I need to exclude files that hava the ? character on name, and if I simply put it a exclude mask with ? It will interpreted as one any character.
I've tried to put a Regular Expression, but it doesn't solve too. (.\?.) In this case the file named TEST-XP??TR?.txt will be excluded.
Best regards

Similar Messages

  • File Adapter Exclusion Mask not working

    Hi all,
    I have a problem with exclusion mask in File Adapter:
    I have two scenarios: PE08 and PR08.
    PE08 have to take files with format L.I21 and PR08 with format L.I21R.
    In system A I use File Adapter with NFS protocol and everything goes ok.
    But in system B I have to use FTP protocol and here exclusion mask doesn't work: I put a file L000249.I21R and XI takes it to scenario PE08, and it must go to PR08.
    My exclusion mask in PE08 Channel are:
    *R
    Sometimes it goes thru PE08 and other times same file goes thru PR08...
    What is happening? any idea?
    Why exclusion names behave diferent in FTP and in NFS?
    Thanks!

    Hi Urzti,
    have a look of my old weblog:
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    Regards
    Mickael

  • Multiple Exclusion Criteria[Exclusion Mask] in Sender File Adapter

    Hello All,
    I have a requirement to specify multiple exclusion criteria in the 'Exclusion Mask' property of a Sender File Adapter, i.e. I need to pick up files that correspond to 111*.txt from a specified source directory, but I would also want to exclude specific individual files that go by the following names:-111ACC.txt, 111INV.txt & 111PUR.txt.
    I have tried the following - Specified 111*.txt in the 'File Name' field and in the 'Exclusion Mask' field specified ACC, INV & PUR - the exclusion criteria separated by commas. But this does not seem to work. All the 111* files are getting picked up.
    Have gone through a couple of weblogs that deal with exclusion masks, but they do not talk about multiple exclusion criteria.
    Is there any other way I could accomplish this?
    Thanks,
    Anand

    Hi,
    Try this config.
    Give  *.txt in filename. and Directory as <YourDir>
    In exclusion mask give 111ACC.txt
    Below this there will be a table. Add two Entries
    Dont add anything to FilenameMask.
    Directory ->FileNameMask--->ExclusionMask
    <yourDir>->--->111INV.txt  
    <YourDir>->--->111PUR.txt
    Try this and get back.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • Exclusion mask in file sender

    Hi Frnds,
    i have 3 interfaces separately in my environment. 3 interfaces have 3 sender file channels.All 3 channels need to pick the file from same dropzone(abc/xyz/).But file names will differs.
    Lets asssume 1st channel will pick the file name starts with A(A*)
    2nd channel with B (B*) and C (C*),Then i made exclusion mask A* .Other than A this file will pick up.As of now we will only get 3 file names eighter A,B or C.So i made it like that.
    then i have to implement third channel file name starts with D* now.
    So can i use exclusion mask in 2 nd channel A*,B*.
    But i tried with Above configuration it did n't pick my D* file.As other than A 2 nd channel configured it is picking up the D* file also.
    Can some body advice how can i use Exclusion mask for above critiria.
    Regards,
    Narendra

    the answer given by Venkat will work for,No need to go with Exclusion mask option.
    Please check the link Configuring the Sender File Adapter - Configuring the File/FTP Adapter in Integration Directory/PCK - SAP Library for a look on Exclusion Mask.
    >> But i tried with Above configuration it did n't pick my D* file.As other than A 2 nd channel configured it is picking up the D* file also.
    Can you share the configuration part for that channel so that we can rectify the issue.
    Regards
    Raj

  • File adapter issue - files not processed (file name mask is *)

    Hi guys!
    I have a problem I never faced before. My file adapter doesn't process files in the source directory. When I put there exact file's name, it is processed. But when I use * , nothing happen. This is very strange. I was wondering, if problem can't be in that my PI box is UNIX and it's accessing Win filesystem.
    Any ideas, what to try?
    Thank you!
    Olian

    Yes, but I meant the one directory we're working in. We can write, delete there, so we should be able also use wildcards,  don't we?
    However, I tried it on a directory with 777 attributes. There is a file named clooo.ttt. When I run del .ttt I get Requested action not taken, file unavailable. The same for clooo. , clooo*,...  But when I type del clooo.ttt, the file is deleted...
    Any suggestions?
    Olian

  • XI/PI: how to exclude files in a sender File adapter?

    Dear  all,,
    I am referring to blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4463. [original link is broken] [original link is broken] [original link is broken]
    In the Outbound Directory I am Placing 3 files at the same time ,what i need is, I must get the 3 messages in the inbound at
    same time.I am getting the output in the Inbound Directory at different time.
    I am following the Solution2 .
    Thanks,
    Srinivasa

    Hi,
    i guess this option is only avaible for file receiver adapter (and only for FTP not for NFS).
    To use a very short polling interval is not such a good idea, because if the adapter runs nonstop it will poll all the way around.
    I think the only way will be to collect the messages in an integration process.
    There exists already a pattern for this case:
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    Hope it helps.
    By the way i don't understand what it has to do with the exclusion mask?
    Regards
    Patrick
    Edited by: Patrick Koehnen on Mar 27, 2008 2:56 PM

  • Exclusion mask - multiple exclusions

    Hello Experts,
    I've a folder where 4 types of CSV files will be put in:
    REC.5499740508504.541448800xxxx.<timestamp>.csv
    REC.5499740508504.541448900xxxx.<timestamp>.csv
    REC.5499740508504.54144969999xx.<timestamp>.csv
    REC.5499740508504.541449000xxxx.<timestamp>.csv
    2 of those types must be picked up by the sender adapter:
    REC.5499740508504.541448900xxxx.<timestamp>.csv & REC.5499740508504.54144969999xx.<timestamp>.csv
    So, I filled in my Unix source directory and File Name: REC*
    Afterwards, I filled in the Exclusion Mask: REC.5499740508504.541448800*
    And I added a line:
    Directory: same as source directory
    File Name Mask: same as File Name: REC*
    Exclusion Mask: REC.5499740508504.541449000xxxx.<timestamp>.csv (the other one I filled in with the Exclusion Mask above)
    This does not work. Can I add multiple exclusion masks without explicitly add directory lines?
    Thanks a lot
    Dimitri

    Hi,
    Try this config.
    Give  *.txt in filename. and Directory as <YourDir>
    In exclusion mask give 111ACC.txt
    Below this there will be a table. Add two Entries
    Dont add anything to FilenameMask.
    Directory ->FileNameMask--->ExclusionMask
    <yourDir>->--->111INV.txt  
    <YourDir>->--->111PUR.txt
    Try this and get back.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • File adapter doubt

    i have doubt regarding file adapter
    can a file adapter work dynamically?
    for example: we are configuring one file name and a path.
    whether multiple files can be taken from the path dynamically when using file adapter.
    Message was edited by:
            allen washburn

    Hi Allen -
    On the sender file adapter side you have the wildcard options (e.g. *, ?) and in addition you can set exclusion masks to exclude files with a certain pattern.   You can set additional folders too for additional files in a different location (<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm">Additional Files</a>)
    On the receiver side, you can use <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm">Variable Substitution</a> to dynamically set the filename and path based on message content (payload or header).
    Regards,
    Jin

  • Restricting polling in sender file adapter

    Hi friends,
    I have a requirement where I need to poll a file from an FTP server. But, if the file is being edited (some other application is writing to it) I need to avoid picking that file. Plz tell me how i can achieve this...waiting for ur replies.
    Regards,
      Shilpa

    Shilpa,
    Check out this sap note :
    [https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267]
    File Locking / Incomplete Processing
    Q: I sometimes observe that files are processed only partially, i.e., only a fragment from the file's start is converted into an XI message. Nevertheless, the file is usually archived completely. Does the File Sender Adapter honor if another process has locked a file for exclusive use?
    A: Unfortunately, the J2EE 1.3 technology the File Adapter is built upon does not support file locking. This limitation affects the File Adapter's operation. Depending on whether the JRE implementation for the operating system under which the adapter runs uses mandatory file locking or advisory file locking, opening a file that is currently being written to by another process will fail or not.
    If opening the file fails, no problem exists and the adapter will try to open the file each poll interval until it succeeds.
    However, if opening the file is not prevented by the operating system, the adapter starts to process the file although it is still being modified. Since XI 3.0 SP11 / PI 7.0 there is a parameter named "Msecs to Wait Before Modification Check" in the advanced settings of the File Sender channel configuration to work around this issue. This setting causes the File Adapter to wait a certain time after reading, but before sending a file to the Adapter Engine. If the file has been modified (which is basically determined by comparing the size of the read data with the current file size of the input file) after the configured interval has elapsed, the adapter aborts the processing of the file and tries to process the file again after the retry interval has elapsed.
    If this option is not available for the settings you would like to use, the following algorithm (to be implemented in your application) may be used to ensure that the File Adapter only processes completely written files:
    Create the file using an extension, which does not get processed by the File Adapter, e.g., ".tmp"
    Write the file content
    Rename the file to its final name, so the File Adapter will notice its existence and pick it up
    Hope this will help.
    Thanks,
    Nilesh

  • Dynamic folder name (when reading file in file adapter)

    Hi,
    I have to read a file always with the same name but it can be in different directories.
    For example:
    FTPHome/Folder1/file.txt
    FTPHome/Folder2/file.txt
    I've tried to define a mask for path name but it doesn't work:
    Something like this /FTPHome/Folder*/
    It's possible to do that what I'm trying

    Sudharshan nice... indeed you are right! You learn something everyday
    Advanced Selection for Source File
    If you want to set an exclusion mask for the File Name specified above, or if you want to specify multiple directories using a file name mask and exclusion mask, set the Advanced Selection for Source Fileindicator.
    ○       Specify an Exclusion Mask for the file name specified above.
    You want to process all files that have the extension '.txt', but want to exclude all files that begin with the letter 'a'. To do this, enter .txt for File Name, and a for Exclusion Mask.
    ○       You can enter additional specifications for source directories, file names, and exclusion masks in the table. This data is processed in addition to the details specified above.
    Edited by: Alex on Jul 8, 2008 11:11 AM

  • Sender File Adapter Not Picking Any File

    Dear Expert,
    I am newbie in PI. Just tried to create File Content Conversion Scenario. Details as follow :
    1. Source Directory ..\file\log\test_q.txt
    2. Target Directory  ..\file\log\xml\test_q.xml
    Transport Protocol : NFS
    Message Protocol : File Content Conversion
    Adapter Engine    : Integration Engine
    I have completed all the design and configuration in IR and ID. However, when I produce the log file in the directory, nothing happen.
    Hacing checked in the RWB as well, I could not find any clue. simply nothing happen.
    Would you please advise me on how to trigger the interface? As per my understanding, sender file adapter will be activated directly once the file is created.
    Thank you very much in advance.
    Best Regards,
    Y

    Hi Yonisiwa,
       Things you should check here are:
    1) If the sender file adapter is active or not.
    2) If the source directory is correctly spelt or not. (Check if you are using the correct slash \ or /)
    3) The file name/mask is correct or not.
    4) The polling interval is too long.
    Alternatively, you can check the message monitoring in RWB at the adapter level and go into the audit log if the message.
    There you can see the reason for the file not being picked up.
    Also check the Communication Channel status in the Component Monitoring link in RWB.
    Regards,
    Ravi Kanth Talagana

  • File Adapter-Module configuration

    Hi All,
    I have the following requiremnt.
    "Duplicate files should not process"
    Following are the File Access Parameters.
    Source Directory: ABC (ex: contains aa1,aa2,aa3,aa4 files)
    Filename: *
    File name mask: aa*
    My doubt is if they place aa1 file again in ftp , i should not process.
    For this I'm thinking to write module configuration.
    Can any one suggests , whether this is the correct approach? If it is could u explain how to write this module and where to write this module and how to import in xI, do i need to pass any parameter name in module configuration.
    Regards,
    venu.

    Hi Venu,
    You can go with Module in the Sender File Adapter.
    First you need to check the file name and you need to store this file name in the Database.( you can use Java Database).
    If there is an entry in the database for that file, then reject the whole file as per the business requirement. So that you can avoid , overhead of Mapping. Because if there is an error set the flag in the message and check this flag in your Receiver Determination, if it is an error send into error directory.
    Another way is outside the XI, i.e using shell scripts.
    Regards,
    Moorthy

  • Sender File Adapter does not get files when there is a large number ( 300)

    We are on XI 7.0 (SAPKB70015)
    We have an issue picking up a large number of files from a particular server. We are trying to pickup the files based on a wildcard e.g. test
    - we can retreive up to 200 files from the same server (using the same config) no problem
    - we can pull lots of files (>3000) files from other servers (using the same config) no problem
    - we can write an mget command (mget test) to reteive the files no problem
    So the only issue is retrieving a large number of files from a parfticular server. We see no errors in the RWB.
    To get this sorted out we need to find the exact commmands that XI executes to attempt to retrieve the files. Can anyone point me in the right direction on how to find this.
    Thanks
    Richard

    It turned out that this was caused by a limitation on the ftp server.
    The file adapter uses the dir command to get a listing of the files matching a specific mask. The dir command does not return any files if there are a large number (the ls command works fine but the file adapter uses dir instead of ls).
    sap told me that 'According to this FTP server is no compliant with RFC 959 and that is
    why DIR command returns an error.'
    We were able to get this resolved by applying a patch on the ftp server.
    Thanks
    Richard

  • File Adapter and reading all XML files from direcotry

    Problem occurs on PI 7.1
    I defined sender file adapter. File name mask is: "*.xml" to read all XML messages from directory.
    Quality of service is: Exactly One.
    Poll Interval: 30
    Retry interval: 30
    Processing mode: Archive with option "Add Timestamp".
    Processing sequence: by name.
    I though that with above configuration my File Adapter will be reading folder for all coming XML files. But  somehow it is reading XMLs only when I'm activating it in Integration Builder.
    Any idea what can cause such strange problem?

    Hi Tomasz,
    As per my understanding, you need to activate the file adapter for reading the XML files on your directory. Right?
    If that is the case, then the issue might be with the Cache.
    1. Clear the cache from the Integration Builder.
    2. Check in SXI_CACHE whether there are any issues. Click on Delta Cache refresh to find out if there are any cache related issues.
    Thanks,

  • File Adapter: picking files from multiple directories

    Hi all,
    In a sender file communication channel with Transport
    Protocol FTP, There are 2 parameters for Picking up the file
    called Source Directory and Filename. If I want to pick the
    files from 2 or more directories, What needs to be done.
    Or is it possible to do so ?
    Without making duplicate interfaces what else can be done ?
    Regards,
    Vijay

    Actually it is possible to select files from different folders for sender channel. It is available with SP14.
    I just copy following description from help.sap.com
    Advanced Selection for Source File
    If you want to set an exclusion mask for the File Name specified above, or if you want to specify multiple directories using a file name mask and exclusion mask, set the Advanced Selection for Source File indicator.
    ¡        Specify an Exclusion Mask for the file name specified above.
    Example
    You want to process all files that have the extension '.txt', but want to exclude all files that begin with the letter 'a'. To do this, enter .txt for File Name, and a for Exclusion Mask.
    ¡        You can enter additional specifications for source directories, file names, and exclusion masks in the table. This data is processed in addition to the details specified above.

Maybe you are looking for

  • How can I rollback a transaction using EJBContext.rollbackOnly()?

    I failed to rollback a "required" method of a seesion bean using EJBContext.rollbackOnly() , but it rollbacked if I throw EJBException , how can I rollback a transaction by EJBContext.rollbackOnly() ? Thanks for your help. regards, dean

  • Can I upload the chinese edition books on iBooks?

    I want to upload the chinese edition books on iBooks. Does apple support the chinese edition books on iBooks? If they do, How can I upload my books? Just follow the process as regular english version or Is there any special process to upload it ? Tha

  • Writing to properties files

    I read the earlier posts about this, but still have questions. We need to write to a properties file to store user settings. We want to create two properties files. The first will not be edited by users and will be included in the jar file. This file

  • SQL Developer debugger/ How to run/step till a variable attains a req. val

    I have a huge while loop. I want the debugger to step/run till a variable attains a particular value inside the loop. i.e "Break when varA='valA'". How can achieve it? Please don't suggest me to step through while "watching" the particular variable.

  • Message types in IDOCS

    Hello everyone What are the message types used in IDOCS from Finance point of view.Any body can share a  list of commonly used message types, or any place where i can view messages types for finance.([email protected]) DS