File adapter : automatically read file ?

Hi,
I would like to read a file as soon as it is copied to a folder, without waiting for the polling interval. Is it possible to use File adapter reading capabilities without using the polling frequency ?
Thanks
Message was edited by:
Alexandre Abric

The only way to check for the existence of a file is to do this on a regular basis, i.e. in case of the file adapter with a polling interface. If you have control over when this file is created, you could ofcourse signal the BPEL process another way, maybe by sending a JMS message or invoking a process via SOAP.

Similar Messages

  • FILE ADAPTER NOT READING FILE.

    HI, GUYS.
    I'M USING A FILE ADAPTER TO READ A FILE THAT HAVE 4 REGISTERS AND EACH REGISTER ONLY HAS ONE FIELD THAT IS NUMBER TYPE.
    I CREATE THE FILE ADAPTER, AND I LET BPEL TO CREATE THE SCHEMA. THE IDE CALLS THES FIELD "C1". I ALSO CONFIGURE THAT THE FILE THAT MUST RAD IS THE PATTERN "*.TXT" AND EVERY 5 SECONDS.
    THEN A CREATE A RECEIVE ACTIVITY THAT RECEIVES WHAT WAS READ FROM THE FILE ADAPTER IN A VARIABLE.
    THEN I CREATE AN ASSIGN ACTIVITY AND I ASSIGN THE VALUE FROM THE RECEIVE ACTIVITY VARIABLE TO A NUMBER VARIABLE THAT IS THE INPUT OF A WEB SERVICE.
    THEN I DEPLOY THE BPEL, AND I INITIATE IT, BUT I GOT AN ERROR THAT SAYS THAT THE FIELD "C1" IS EMPTY. SO LOOKS LIKE THE FILE ADAPTER IS NOT READING THE FILE. I WOULD THANK ANY HELP THAT YOU CAN BRING ME.

    caps off
    You're sure the interface of the fileadapter (client partnerlink) is the same as your data-file which needs to be picked up?
    can you paste the content of the file and the content of the xsd of the process.

  • Sender File Adapter Error reading file

    Hello!
    I have a problem with reading a file using the FTP adapter.
    I have configured everything according to the steps of weblog "FILE to JDBC Adapter using SAP XI 3.0" (/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30).
    I know the sender FTP adapter can connect to the directory and file because:
    1) it has complained about wrong format in the content conversion (has been fixed)
    2) when there is no file for it there to pick up, the FTP flag in the adapter monitor is green
    When I put a file in the specified directory I get the following error:
    - 2006-06-21 09:52:23 CDT: Retry interval started. Length: 10.000 s
    - 2006-06-21 09:52:23 CDT: Error: Retrieving file 'test_file.dat' failed unexpectedly: FTPEx: Public: The system cannot find the file specified.
    - 2006-06-21 09:52:20 CDT: Processing started
    - 2006-06-21 09:52:13 CDT: Error: Retrieving file 'test_file.dat' failed unexpectedly: FTPEx: Public: The system cannot find the file specified.
    - 2006-06-21 09:52:10 CDT: Processing started
    I also get the same error if I skip the content conversion and put a "ready" XML file there.
    There should be no auth problems at all. Public server, and I can log on, get, put, delete etc. Also it can apparently read it since it can complain about the content format. Anyone seen this before?
    Please advise. Thanks!
    Nam

    Hi Nam,
    Is your User Id and User Id/Password is correct ?
    Is connection mode is per file transfer in File Adapter configuration?
    Also you can see the log from Visual Admin..
    Regards,
    Moorthy

  • 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

  • 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,

  • Invoke File Adapter to read just once.

    Hello all,
    I want to invoke a partnerlink which is using File Adapter to poll for a file every fixed interval. I want the File adapter to read the file just once. In other words, what would be the behaviour of the File Adapter when i invoke it syn or asyn way? Would the file adapter read the file only once? Is there anyway to do this? I read in some post about it but i cannot find or recall the thread.
    Thanks for your help.

    I think I need to explain the scenario in order to give you some more idea as to why i need to poll file just once.
    I am trying to create a schedular using Quartz and If i have this BPEL process scheduled to trigger at say some time, the process would keep on polling. Whereas i just need to poll when the trigger is fired that is once per every trigger fired.
    Can anybody throw some ideas on this?

  • 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

  • How to get file name using File adapter Sync read

    Hi All,
    I am using SOA 10.1.3.3 and JDEV 10.1.3.3.
    I have an async bpel process.
    I have to read file name in this process... so i have used file adapter sync read operation.
    How can we get the file name with out payload using sync read.
    For normal read (Inbound Spec)we have UseHeaders="true" property.
    Is there any property for sync read to read the file name.
    Please help me
    Regards
    PavanKumar.M
    Edited by: [email protected] on Oct 27, 2009 11:23 PM

    Hi Eric,
    The info in the link provided by you is for a normal read.
    I need to read he file name using Sync read operation.
    Regards
    PavanKumar.M

  • File Adapter not processing Files which has COMMA in it

    Hi Experts,
    I am working on Project in SOA 11.1.1.6.
    I am trying to process a file which has comma in it. for eg - XXXXXXX-XX_XX_XXX11,99.pdf
    I am picking the file using file adapter from SOURCE directory and using another file adapter to WRITE to destination directory. Polling processing is working fine.
    I am picking the file from SOURCE directory as ATTACHMENT and WRITING to DESTINATION folder through File Adapter
    While doing file WRITE its failing. While reading the file the values of Content Type, Character Set and Encoding are NULL for the ATTACHMENT as they are optional properties.
    The error I am getting while File WRITE is
    <remoteFault>
    <part name="summary">
    <summary>java.lang.RuntimeException: Failed to decode properties string att.encoding=null,att.charset=null,att.contentId=AReadFile/XXXXXXXX_XX_XXX11,99.pdf_1352184009640,att.contentType=null,att.partName=attach</summary>
    </part>
    <part name="detail">
    <detail>1</detail>
    </part>
    </remoteFault>

    Comma is usually treated as a separator/delimiter and hence it is not really common to have comma in filename. I think because of this reason File adapter does not support it (have to cross-verify). If you really have a requirement to read/write files with comma in filename then better log a SR with Oracle support.
    Regards,
    Anuj

  • File adapter picking up files with wrong content

    Hello, We configured a file adapter to read *.xml files. We also defined the xsd for the files. We expected that the adapter would only pick up files that conform to the xsd. However we found that all *.xml files (even renamed jpeg's) are read. Is this intended behaviour? Or did we miss some configuration setting?
    Richard

    A short follow-up:
    To make matters worse. If I take a completely different file (like the jpeg) and rename it .xml it gets picked up by the file adpater but there is no audit trail of the BPEL process instance. The file is not archived either, so it's completely gone! If I just change one of the elements the file is read and archived. I can also have the file adapter write the file with the wrong content.
    I found a reference to a bug. (bug 5926809 or SR 6327165.994) is this related, is it solved?
    Richard

  • File Adapter Stores temp file?

    I'm assuming a sender file adapter will store a copy of the retrieved file in the OS somewhere.  Does anyone know where this file would be stored and does it only exist until the adapter has completed processing of the file?

    Sorry folks I don't think I was clear in my original question.  All I want to know is when the sender file adapter connects to some remote system to retrieve a file...
    1) Does XI physically move the file to the XI box (regardless of the archive/delete/test setting) or does it simply load it in RAM?  For the adapter to be able to process the file my assumption is that it has to be loaded somewhere on the XI box.
    2) If it physically moves the file to the XI box where does it temporarily place it?
    I'm aware of the archive setting and other options for creating local copies.  I just want to know the "inner workings" of how the sender file adapter moves the files.

  • File Adapter not writing file when processed from one node in a clustered environment

    In our environment, we have 4 server nodes running. We are using a file adapter to write file to a location in the server. the adapter is writing files when its processing data in all nodes except one.
    Below is the JCA File
    <connection-factory location="eis/FileAdapter" adapterRef=""/>
    <endpoint-interaction portType="Write_ptt" operation="Write">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileInteractionSpec">
    <property name="PhysicalDirectory" value="/data/prd"/>
    <property name="FileNamingConvention" value="Sample.dat"/>
    <property name="Append" value="true"/>
    </interaction-spec>
    </endpoint-interaction>
    the File Adapter health is running OK. What would be the potential cause

    In our environment, we have 4 server nodes running. We are using a file adapter to write file to a location in the server. the adapter is writing files when its processing data in all nodes except one.
    Below is the JCA File
    <connection-factory location="eis/FileAdapter" adapterRef=""/>
    <endpoint-interaction portType="Write_ptt" operation="Write">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileInteractionSpec">
    <property name="PhysicalDirectory" value="/data/prd"/>
    <property name="FileNamingConvention" value="Sample.dat"/>
    <property name="Append" value="true"/>
    </interaction-spec>
    </endpoint-interaction>
    the File Adapter health is running OK. What would be the potential cause

  • File adapter with empty files!

    Hi guys,
    My scenario is: File -> XI (BPM) -> JDBC
    Under BPM I have a fork with two parallel receivers correlated and two sender file adapters for that. Those senders also have file conversion (.seq file to XML).
    My problem is: in case of files coming empty, is it possible that senders file adapter generates error during file conversion? And/or generates errors during correlations?
    If so, "I wouldn’t like", because after receive these two files I have a switch to check if the file(s) coming empty and a control step to terminate the process in case of true. But this only works if no errors have occurred on the earlier steps!
    At this moment I can’t test it, so I’m asking If anyone has faced an issue like this one?
    Thanks in advance,
    Ricardo.

    Hi,
    Which SP are you on?
    Before Sp19 on XI 3.0 and SP10 on Pi, Empty Files are ignored by XI. The file adapter picks the file and if it is a empty file ( a zero byets file ) the file does not create a message at all for the file.
    From Sp19, the file adapter has options that allow you to decide how to process the empty file. You can create an error message etc.
    Regards
    Bhavesh

  • How to use File Adapter to transport files

    Hi,
    Can i use File Adapter Additional Files settings to Transfer files from one system to other without conversion?
    File Adapter's Additional Files documentation says "additional attachments require a receiver that can process them". In my case receiver is also
    File Adapter.
    Please let me know if there is any other way to achive this.
    Thanks in Advance
    Jayant

    Hi Jayant -
    Here is the link to the documentation related to this:
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Notice in "Rules for Additional Files":
    "Messages with additional attachments require a receiver that can process them."
    Currently, the receiver file adapter does not support the processing of attachments.
    Regards,
    Jin

  • File adapter not reading (not starting polling interval)

    Hello,
    I've got one communication channel trying to read a file each 10 seconds.
    The file adapter is configured correctly and the channel is started but sometimes it stops the polling interval process and I don't know why.
    For example the channel was working fine until Friday but with no reason it stopped to attempt to read the file on the directory... what can it be?
    And another question. What's the difference about communication channel with "Automatic control" or "Started" manually?

    Hi,
    And another question. What's the difference about communication channel with "Automatic control" or "Started" manually?
    Whenever you create new communication channel in Integration directory and activate it,its status in control data is Automatically and whenever you change it in RWB (Stop/Start) its status changes to Mannually.
    Thanks!

Maybe you are looking for

  • Flash player does not work in full screen

    I am not able to get flash player. version 10, to work in full screen with firefox 3.6 on neither Mandriva 2010 or Ubuntu 10.10. I also do not have access to the settings. It is blacked out.

  • The Startup Disk utility is missing from Preference Panel.

    I recently realized that I no longer have the Startup Disk preference pane in the Preferene Panel. I sometimes boot from other drives and now I'm forced to hold down the option key at restart or startup instead of being able to select the startup dri

  • Mail attachment (.csv) to File (.csv)

    Hi mates, I have a requirement where I have to pick the attachment(.csv format) of an incoming mail and store this file ( in .csv format)onto a file server using  a reciever file adapter. Please suggest how can i go about it ?

  • Reference EJB from servlet's action/helper classes

    Hello How to make a reference to stateless session bean from one of the helper classes of a servlet WITHOUT using any of these: * dependency injection (like @EJB) - I think this is not supported in this kind of class, EJB references can be injected o

  • Video out: fuzzy?

    I picked up the connector yesterday for my iMac 20" Core Duo, and I hooked it up to a Dell 23" wide screen monitor as my "second monitor" and I have to say: pretty "fuzzy" picture on the dell, which is crisp when connected directly to another mac. I'