Sener file adapter has read/pick the files first in first out method.

HI
In my Interface I am Using Sender as File adapter. As per my requirement Sender file adapter has to read the file from file directory. This directory having 1000u2019s of files with some files are same name (time stamp is different) and some files are different name here file adapter has to pick the file with mentioned name   in File sender adapter like ZMPSMSGSTATUSMST-.xml .
But source file name is like <TABLENAME>-<TIME_STAMP>.XML (ZMPSWRKFLOWHIST-20090527-150522-628) in file directory.
The file adapter in XI will poll to this directory and picks the file in first- in first-out by sorting according to timestamp.
To do this configuration what I have to do in sender file adapter please give me your valuable inputs.

HI Abhi,
Thank you for your spot replay.
I tested now but i am geting below error.
Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID f4ca4f86-9c5d-4bdd-1fb1-a6bd7cda99a8(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: [NWMss][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK__XI_AF_MSG__491A1D0B'. Cannot insert duplicate key in object 'dbo.XI_AF_MSG'..
Could not archive file 'E:\file\in\ZMPSMSGSTATUSMST-20090527-150522-628.xml' after processing
but i am able to see this file in Archive foleder. once file is archivied sucessfully the same file is delted from source directory?
I given processing parametes queue name is TEST.
Thanks
srinivas
Edited by: srinivasreddy p on May 28, 2009 8:43 AM
Edited by: srinivasreddy p on May 28, 2009 8:52 AM

Similar Messages

  • Sender file adapter is not picking the file from windows server

    Hi Experts,
    We have a sender file adapter running on Unix server. Now we have changed the source directory path from Unix to Windows in file access parameters.  It is not picking the files from windows directory and not showing any error.
    In this scenario, input file for sender adapter is *.xml and no content conversion.
    Could any one please let me know is there anything needs to changed in file adapter.
    Thanks in advance,
    Sridhar. M

    Sridhar,
    What do you have in the directory path?
    If it is a shared drive in unix then the directory in windows should also be a shared drive from XI system. Else if it is FTP check the address.
    Regards,
    ---Satish

  • How file adapter has to pick .stub file???

    Hi guys,
    Sap system is generating a .stub file.if that file exist then only adapter will send the data to pi.
    Can we have some settings in Sender File Adapter where in we can Put check condition for .STUB file.
    I mean, If .STUB file is present in ECC directory only than PI will Pick the File.
    If .STUB file exist, we need to pick some other file.
    If we want to go with unix script, From were we need to get that unix script file. and were we need to use .in file adapetr or some were else??
    --> Do you have any example script? If yes, please share.
    --> is there advance function in Sender File Adapter to pick that file?
    please advice
    Regards,
    Naren
    Edited by: Narendra Surepalli on Oct 17, 2011 8:20 AM

    Naren
    with "Run operating system command before message processing" you can call a script on your server.
    The script can check if there is a file .STUB exist on server or not.
    You can serch for unix commands for check if file exist.
    One example:
    test -e $file_name && echo "file exists"
    from http://www.unix.com/unix-dummies-questions-answers/5361-how-check-if-file-exist-not.html
    You can check others as well.
    Regards
    Raj

  • Sender file adapter is not polling the file.

    Dear all,
       Sender file adapter is not polling the file.(But Receiver file adapter is getting the file)
    we have installed SP15.
    It was worked fine for previous SP14.
    I have cheked in Adapter monioring also.
    Can you help me out of this problem
    Regards
    Dhanabal

    Hi Dhanabal,
    Is the XI system running on a unix machine ?
    If yes, from the OS level for the folder you are using in the file comm. channel, execute the command
    <b>chmod 777 <folder_name></b>
    The reason for the file to show up in receiver side and not get deleted might be that the xi user mighht be having only read access to the folder...
    Thanks,
    Renjith.

  • File Adapter is not picking few files

    Hi All,
    I am facing some issue in file adapter. Below are the possible file format that we need to pick.
    File format sample 1:
    865|FieldOrder|AK|620005168|1|Reject|Line Qty can not be Canceled,xyz,abc|The line has been shipped,fgh,hjk
    File format sample 2:
    865|FieldOrder|AK|570000259|10|Accept|
    - All the fields are separated by '|' & last filed is terminated by 'eol'.
    - The last two fields (C7 & C8) also have sub fields separted by ',' as shown in sample 1.
    - Fields C7 & C8 are optional. (Sample 2 is shown above)
    - File contains only one record.
    We are using below mentioned XSD which is working fine in case of sample 1 as shown above. When we have a file of format like sample 2 then file adapter is failing to pick the file. I also tried minoccur='0' attribute which also not worked. Please help me out to find the exact XSD which will pick both type of formats (sample 1& sample2).
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://us.fujitsu.com/865_EDIFile"
    xmlns:tns="http://us.fujitsu.com/865_EDIFile"
    elementFormDefault="qualified" attributeFormDefault="unqualified"
    nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Root" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" type="xsd:string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy='"'></xsd:element>
    <xsd:element name="C2" type="xsd:string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy='"'></xsd:element>
    <xsd:element name="C3" type="xsd:string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy='"'></xsd:element>
    <xsd:element name="C4" type="xsd:string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy='"'></xsd:element>
    <xsd:element name="C5" type="xsd:string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy='"'></xsd:element>
    <xsd:element name="C6" type="xsd:string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy='"'></xsd:element>
    <xsd:element name="C7">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C7_child" type="xsd:string"
    nxsd:style="array" nxsd:cellSeparatedBy=","
    nxsd:arrayTerminatedBy="|"
    maxOccurs="unbounded"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="C8">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C8_child" type="xsd:string"
    nxsd:style="array" nxsd:cellSeparatedBy=","
    nxsd:arrayTerminatedBy="${eol}"
    maxOccurs="unbounded"></xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <!--NXSDWIZ:C:\Documents and Settings\rastogvi\Desktop\cap.txt:-->
    <!--USE-HEADER:false:-->

    Hi,
    >>2) Even for those few picked files, why are we seeing less no. of Idocs
    than the file contents.
    Check the mapping by using the payload from SXMB_MONI. I think the mapping is not correct.
    >>3) Why is the adapter always picking files immediately even if a poll
    interval is set.
    Once the objects are activated in ID the channel picks the file immediately and then it waits for the polling interval and repeats the process.
    Regards,
    Jai Shankar

  • File Adapter to read from remote file server query

    Hi all,
    I want a SOA 11g application to read files on remote server using File Adapter. Is it possible to configure the File Adapter to read from remote location instead of locally. Is it possible. Is yes where can I find the associated remote file configuration documentation.
    Thanks
    Edited by: user5108636 on 19/09/2010 19:49

    I also changed one more properties the FTP connection factory called serverType=win. I get bits and pieces in each document. Is there any working example to connect to an FTP server running on Windows using Ftp Adapter. Still not working.
    These are the error logs related to it. Please suggest
    ####<Oct 12, 2010 1:17:22 PM EST> <Info> <Common> <server_name> <WLS_SOA> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <46e7c258a0e5cad6:-145e5cdb:12b99475c2b:-7ffd-0000000000046afa> <1286849842995> <BEA-000628> <Created "1" resources for pool "eis/Ftp/FtpAdapter", out of which "0" are available and "1" are unavailable.>\
    [2010-10-12T12:56:07.142+11:00] [WLS_SOA] [NOTIFICATION] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@170e13a9] [userId: weblogic] [ecid: 0000IiTsVSi9xWD_n91FiZ1CfLfc00006s,1:24709] [APP: soa-infra] [dcid: 46e7c258a0e5cad6:f9faea1:12b852b7f0f:-8000-00000000000005ed] FTP Adapter FetchAvlFiles Recovery still not possible after 1500 attempts due to javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/Ftp/FtpAdapter from JNDI and get a new Connection Handle.
    Thanks
    Edited by: user5108636 on 11/10/2010 19:05
    Edited by: user5108636 on 11/10/2010 19:22

  • 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 - how to get the file count from a folder

    Hi All,
    I have a requirement that have to poll a directory when the file count is reached to number N (ex:number of files avilable in folder is 5) otherwise it should wait and not pick any of the files. Is it possible to get the file count from a folder using file adapter ?? otherwise please suggest me an approach to achieve this requirement.
    Thanks,
    JJ

    Hi Sarath,
    Thank you for your reply.
    Go with the list files operation of file adapter it will gives you the number of files in the specified folder as you given. . - this step is already done.
    When the number of files reaches your count startup your webservice that which can polls the files. . . - how can i acheive this?? Have to poll the directory and process the number files - please let me know, what could be added to the webservice which is being invoked after cheking file count from parent process.
    The reason for the above question is - we cannot use ReadFile operation in second webservice because it will be automatically triggered when the file is avilable. Also SyncRead operation supports reading one file in b/w bpel process. Kindly explain me the implementation steps.
    Thanks,
    JJ

  • Sender File adapter is not picking up file

    Hi,
    I am usning the sender file adapter to process a file through FTP. Adapter does not pick up the file, however it recognise the file, as it appears in the error message. Below is the text of the error message:
    <i>Could not process file '<b>filename</b>': com.sap.aii.adapter.file.ftp.FTPEx: 550 toSAP: No such file or directory.</i>
    I am not sure yet whether this file is <b>read only</b>. Can read only file not be processed in FTP ?
    Thanks

    Hi, I have the same problem. In advance, we can see in FTP Server log that CWD command it is called twice, for example :
    00:00:59 10.15.64.187 [4669]USER MDM 331 0
    00:00:59 10.15.64.187 [4669]PASS - 230 0
    00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 250 0
    00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 550 3
    00:01:59 10.15.64.187 [4669]QUIT - 550 0
    If we create a directory MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready into the first directory Ready where it is positioned with first cwd , its works !!
    First CWD is called for read file an seccond for processing, somebody knows because this behavior ?
    Best Regards
    Claudio Maino

  • File adapter polling and getting the file name 11g Jdeveloper

    I am using JDeveloper 11g. My process is something like;
    A file adapter reads a XML file
    This triggers the BPM process, file content is sent to start activity as message
    I have to get the file name that is read by file adapter.
    How to do that? Any help is appreciated.
    I have seen couple of answers like bellow in forum but did not help me much
    This is a very simple task in JDeveloper 11g, file adapters are linked to the receive activity, here there is a tab called Properties which you can use to extract the file name. Please follow the steps below:
    1. Create a Simple Type variable of string type, call it fileName_var or any name you wish.
    2. Open the Receive activity in your bpel project.
    3. Scroll down to jca.file.FileName and double click on the value column, click on the browse button (...), select Variable, then click the search icon
    4. Locate your recently created variable
    5. Now when your project runs it will assign the file name to this variable, you can use this same approach also to pull the directory, file size, etc.
    *************************/

    hi,
    Like you said.. steps are simple and clearly mentioned in guide.
    1. create a variable of type string
    2. after configuring the file adapter , go to corresponding receive activity , go to properties tab
    3. search for a property with name as jca.file.FileName . This basically keeps track of file name
    4. for this property, give the value as name of variable created in step 1 above
    5. Use this variable anywhere in assign / transform
    HTH,
    Ketan

  • File adapter polling and getting the file name

    I have a requirement where I have to poll a file and dump the data into the DB. But while polling a file for a particular file name, I also need to get the name of the file to do some operations on the file. The file name should be passed from the adapter in order to do some operations based on the file name. Is it possible to get the file name by any chance?

    Hi,
    its easy to get the file name..by creating the variable for the fileAdapterInboundHeader.wsdl
    just follow the below link.
    http://abhishek-soablog.blogspot.com/2008/06/bpel-getting-file-name-from-file.html
    Edited by: Oraacler on Mar 19, 2010 2:59 AM

  • Sender File adapter not picking the file ABCD.PRN extension file

    Hi
    Am doing File to Abap Proxy scenario. My source will be in text format of fixed length of fileds 7.
    My souce file will be generated by a third party machine with the extension EEE150809.PRN. In my scenario my file adapter should pick the file and update the same in ECC via a Proxy.
    I have configured the Sender File adapter with Message Protocol -  Content Conversion but file adapter is not picking the file. I have checked the Communication channel and status is fine. But the same Communication Channel works for .XML file.
    What are the parameters that I have to consider with the file extension .PRN using File adapter?
    Thanks.
    S.

    Hi Swarna,
    You dont need to worry about the extension when picking the file. You can try using EEE* so that is picks all the files starting with EEE. If you have the fixed name then you can try giving EEE150809.*. Also EEE150809.PRN should not have any issue. Try to see in sender commu ication cahnnel for anyerrors. Probably there might be some network issues or authorisation issues. If you are reading with NFS then ask them to give necessary permissions. If you are reading through FTP check the user id and pwd you are using.
    Regards,
    ---Satish

  • File adapter not reading file suddenly

    Hi,
    My File to IDOC scenario was working properly. Suddenly the file adapter is not picking the file from the location. I have not changed any code. I checked all users, are in unlocked mode only. The log file throws error. Let me know any solution to resolve this
    ========
    1.5#001A4B4C508E007400000577000019F40004558D5E8AFB9D#1219965571787#/Applications/ExchangeInfrastructure/AdapterFramework/Services/Trex##com.sap.aii.af.service.trex.impl.Util.Util: getIndex()#J2EE_GUEST#0####02305f1074b511ddaa1a001a4b4c508e#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#com.sap.aii.af.service.trex.impl.Util#Java###SLDException couldn't get the SLD instance name. Therefore the index ID couldn't be inititialized. - Message: ; To-String: .#2#Could not read SLD instance name, due to: undefSldAccessor#com.sap.aii.af.service.sld.SLDException: Could not read SLD instance name, due to: undefSldAccessor#
    #1.5#001A4B4C508E007400000579000019F40004558D5E8AFCB3#1219965571787#/Applications/ExchangeInfrastructure/AdapterFramework/Services/Trex##com.sap.aii.af.service.trex.TrexManager.TrexManager: getTrexConfiguration()#J2EE_GUEST#0####02305f1074b511ddaa1a001a4b4c508e#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#com.sap.aii.af.service.trex.TrexManager#Java###TrexException: thrown by any problem related to the DataAccess: Message: .#1#Class: com.sap.aii.af.service.trex.TrexException : SLDException in Method: Util: getIndex(). Couldn't get the SLD instance name. Therefore the index ID couldn't be inititialized. - Message: Could not read SLD instance name, due to: undefSldAccessor; To-String: com.sap.aii.af.service.sld.SLDException: Could not read SLD instance name, due to: undefSldAccessor#
    #1.5#001A4B4C508E00740000057B000019F40004558D5E8AFDE1#1219965571787#/Applications/ExchangeInfrastructure/AdapterFramework/Services/Trex##com.sap.aii.af.service.trex.TrexScheduler.TrexScheduler: run()#J2EE_GUEST#0####02305f1074b511ddaa1a001a4b4c508e#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#com.sap.aii.af.service.trex.TrexScheduler#Java###TrexException: thrown by any problem related to the Trex processing. Message: .#1#Class: com.sap.aii.af.service.trex.TrexException : TrexException in Method: TrexManager: getTrexConfiguration(). Thrown by any problem related to the DataAccess. Message: Class: com.sap.aii.af.service.trex.TrexException : SLDException in Method: Util: getIndex(). Couldn't get the SLD instance name. Therefore the index ID couldn't be inititialized. - Message: Could not read SLD instance name, due to: undefSldAccessor; To-String: com.sap.aii.af.service.sld.SLDException: Could not read SLD instance name, due to: undefSldAccessor#
    ========

    Hi,
    1)Stop and start the Communication Channels.
    2) Activate the scenario.
    3) If u r using FTP may be ur credentials wereexpired.check the credentials.
    "Award Points if helpful"
    Regards,
    jayasimha

  • Reg: Sender File Adapter - Picking the files serially

    Hi Folks
    I have a requirement where I require help from you with you valuable suggestions/solutions. Requirement is :
    1.  Two different folders(folder1 & Folder2) at sender system, PI has to pick the files from Folder 1 and needs to process to target.
    2. Exactly after 30min duration PI has to pick the files from the second folder i.e., from Folder 2.
    Conditions are :
    i)  Only after processing the files from Folder 1 PI should process the files from Folder2(after 30min).
    ii) We might have many files(approx 10 - 15files) in each folder, PI must poll all the file in the folder in a single poll(i.e., without any delay).
    Please suggest me what could be the best solution for this, either to create two communication channels or can we handle it using a single communication channel.
    Kindly suggest.

    Hi Suman,
    The easieiet way is to use single communication channel to pick up all the files from the first folder.  Then run a unix script in after processing column where it will check for any files to be picked by xi in folder1 and then proceed with transferring files from folder2 to target.
    By this, you are making the scenario simple and realistic.
    There are other alternatives like using two communication channels and the only hurdle will be the timing to check whether the folder1 files have been completely picked up or not.
    Regards
    Krish.

  • File adapter reading while the file is still being written....

    Hello BPEL Gurus,
    I had a quick question around BPEL or ESB file adapter. Does BPEL file adapter starts reading a huge file that is being written or it waits until the writing process is completed and file is complete?
    Any response is highly is appreciated.
    Thanks.
    SM

    It goes like this. At every polling frequency, the adapter looks into the directory for the files with specified pattern (e.g. *.csv, MYCOMPANY*.txt) and specified condition, e.g. minimum file age. This means if there will be 2 files available with matching criteria, the both will be picked up and processed simultaneously in two different BPEL instances. No specific order of execution. However you will find the instances in BPEL console with little delay based on file size.
    Perhaps you can elaborate your scenario further. Do we have knowledge of the file name that are to be picked up from the folder. You may use synchronous read option. If you are using 10.1.3.4 version then you can specify the file name before file adapter makes a synchronous read into the give directory.

Maybe you are looking for

  • Animations in Captivate 5

    I just created a project using powerpoint slides. I imported the slides, added audio to each slide, and also added animations (boxes that appear and disappear to hight points). The animations work perfect while I am working on the project in captivat

  • Setting template start mode in java

    In my stylesheet I have templates like this: <xsl:template match="/" mode="query"> <!-- content --> </xsl:template> How do I pass a start mode to my XSLStylesheet in java?

  • HT5569 i had the ipad reset all factory settings and now I cannot get on wifi please help

    I reset the factory settings and now I cannot get onto the wifi

  • Salary increase with batch but exception

    Hi everyone, When you use a batch to create new IT0008 for annual salary increase, how do you deal with exceptions ? (i.e employee is in long absence and will be eligible to the salaray increase only at its return) Most of my experiences when I was H

  • [PLZ] Help me how to reinstall DW CS3 [Error MSG]

    Hello ! plz help me i have downloaded DreamWeaver cs3 for first i have been installed . but if i go for reinstall this MSG show please insert DreamWeaver CS3 for continue this picture for erreur msg : http://up.damasgate.com/files/yc3krgt49xv4k7el5in