Dynamic update to Inbound Directory for File Adapter Read

I've seen references to others asking similar questions but never a good answer.
I have a process that outputs files into daily dated directories. In other words, my Inbound Direct name is dynamic. I would like BPEL to be able to pick up these files but the Directory Spec for the inbound file adapter seems to be set at design time (or in the case of a Logical Directory Deployment time).
The directory names are in YYYMMDD format. So it would be:
importdir/YYYMMDD
for each day.
Is there a way I can monitor an entire subtree, or have some event that triggers the directory name to be updated (for instance, a process watches the parent directory and kicks off when a new directory is created), or any other method I can inform the FileAdapter to begin polling a different directory.
Thanks.

Hi,
Look at this document : [Oracle JCA Adapter for Files/FTP|http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAFJCCE]
Romain.

Similar Messages

  • Dynamically construct Target/Source Directory in File Adapter

    Hi All,
    Is it possible to Dynamically construct target/Source Directory in File Adapter? If yes can anyone plz provide details about the same.
    regards
    Vinay

    Hi vinay,
    have a look @ these threads..u may get some help!!
    Re: Dynamic directory name in Receiving File adapter
    Dynamic FileName and Directory - UDF
    Re: Dynamic Directory and File Naming in Receiver Adapter
    Re: target directory in file adapter
    Regards
    BILL

  • Dynamic UserID/Password for file Adapter

    Hi,
    How to use dynamic UserId/Password for file adapter ?
    (Sender/Receiver)
    In our case the Id/Pwd of FTP Site changes freguently.
    Can anyone help.
    Thanks in Advance
    Regards
    Chemmanz

    Hi Chemmanz,
    >>>>In our case the Id/Pwd of FTP Site changes freguently.
    but do you have those passwords in the message payload?
    if not then you will still have to fill it somewhere right?
    BTW
    the only way would be to use java proxies and write a simple ftp adapter inside it (or your own adapter)
    but this is not possible in standard I believe
    Regards,
    michal

  • Time stamp is not getting updated for File Adapter in communication channel

    Hi All,
    Since yesterday, I am observing that the time stamp of communication channel for File adapter is not gettingupdated some times.
    I had to stop and start the communication channel to update the time stamp.Please let me know if anyone has come across such issue or any useful notes on this.I could not find any related notes on Market place.
    Regards,
    Dinakar

    Hi,
    This is happening only with one communication channel which is sender in derection.Any reason why it is happening like this?since the restart of the communication channel it is getting update now.I really do not know how to delete/create the communication channels as this was done our PI consultants.Pls guide me.
    Regards,
    Dinakar

  • Directory specification for File Adapter

    Hello,
    I would like to ask if it is possible to determine a directory where message is saved for file adapter based on message content.
    E.g. I have general directory (GD) under which I would like to save a messages in directories with are called based on vendor number what is part of a message.
    So a message would be saved in
    ...\GD\vendor number\file name.
    In case that vendor number directory is not created yet I need to create it.
    I know that in file adapter a directory name is constant and file name can differ based on settings.
    This behaviour is in Business Connector enabled through possibility to write an "user-exit" in Java for directory determination.
    Is something similar possible in XI ?
    We are currently running on XI 3.0 with external adapter engine version 2.0 but to use internal adapter engine is no problem for me.
    Thank you for your advice.
    Marian Morzol

    Hi Marian,
    You can do this with content based routing in the interface determination, but then you have to create a new interface/channel for every extra directory.
    Cheers,
    Frank

  • How to set DEBUG severity for File adapter in J2SE AE

    Hi,
    Can anyone help me in setting the severity level to DEBUG for file adapter?
    I have tried to set in logging.properties file as given below,
    formatter[Trace]         = TraceFormatter
    formatter[Trace].pattern =%24d [%t] %-6s %l - %m
    log[Trace] = FileLog
    log[Trace].pattern     = swb_%g.log
    log[Trace].limit     = 2000000
    log[Trace].cnt          = 5
    log[Trace].formatter     = formatter[Trace]
    com.sap.aii.messaging.adapter.severity = DEBUG
    logging components
    #com.sap.aii.axis.logs = +log[Trace]
    #com.sap.aii.axis.severity = DEBUG
    #org.apache.axis.logs = +log[Trace]
    #org.apache.axis.severity = DEBUG
    Please correct me if I have did anything wrong and sugest me hot to set the DEBUG level as soon as possible.
    Best Regards,
    Soorya

    Hi Sejoon,
    when we changed the host of XI server in one of our projects one of the things we had to change was the exchange profile entries
    http://server:port/exchangeProfile/index.html
    to see how your adapter engine is configured
    http://server:port/sld
    SLD -> Content Maintenance
    then
    Subset: landscape description
    Class: XI Adapter Framework
    buth check the exchange profile entries first
    Regards,
    michal

  • How to add fault handling for file adapter??

    Hi guys I am new to SOA technology ,I have one scenario  in file adapter  ,when file adapter reads a file from directory .If file is there   then read the file  data else it can give user defined exception that  the file is not there .How can i write user defined exception in SOA?? Give me any ideas please.............
    Thanks in advance..

    So, you want to (1) Fetch the data from these 3 type of files and (2) Also, store the payload data of the file, which is in XML format, into the same database tables ?
    If this is the requirement.. then, I would say, you could :
    (1) Read files using file adapter, but not as opaque.. Define schemas conforming to the file structures. In that way, you'll always have the file data read in the form of XML.
    (2) Fetch relevant data from such XML payloads of files and insert into database tables. Then, insert the XML payload into WHO column. You might have to convert the xml data into blob/clob before inserting.
    Job done !

  • How to have Secure Connection for File Adapter.Pls help

    Hi All,
    For File to File Scenario
    How to have Secure Connection for File Adapter.
    Pls send links/blogs explaining this scenario.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • How to set a root directory for file management in web application

    Is it possible to set a default root directory for file management for a web application ?
    We would upload some files and store them in the web server.
    When we write the uploaded files without any path, the files are written in the config directory into the jdeveloper embedded oc4j directory.
    When we write the uploaded with a relative path ("/somedir/filename"), the files are written in C:/somedir/filename.
    We would like that all file management with relative path into the web application refer automatically to a given root directory (for example defined in web.xml).
    Is it possible ?

    I'm using the standard upload in adf faces.
    The problem is not during upload. This is managed in a temporay directory defined in web.xml. The problem is for writing the file that was uploaded (upload give us an inputStream we have to write somewhere, eventually after unzipping).
    Here is an example of our current code.
    if (mimeType.equals("application/x-zip-compressed") |
    mimeType.equals("application/zip")) {
    File destZipFile =
    new File(rootDirectory + "/" + parametersDirectory +
    "/" + uploadedFile.getFilename());
    BufferedInputStream isZipFile =
    new BufferedInputStream(uploadedFile.getInputStream());
    FileOutputStream fosZipFile =
    new FileOutputStream(destZipFile);
    BufferedOutputStream bosZipFile =
    new BufferedOutputStream(fosZipFile, BUFFER);
    // read and write until last byte is encountered
    while ((currentByte = isZipFile.read(data, 0, BUFFER)) !=
    -1) {
    bosZipFile.write(data, 0, currentByte);
    }

  • Can file adapter read file link/short cut

    All,
    I have a requirement for following use case
    Can file adapter read a file-link (basically a short-cut to a file in a folder) and check if the file exists at the path referred to in the short-cut.
    Thanks,
    Praveen

    Hi
    symbolic link did not work
    polling folder - "/tmp/filepoll"
    soft link - "/tmp/filepolllink" ponits to above folder
    my OS is Sun Solaris
    error in opmn.log
    <2010-03-24 07:46:55,023> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
    <2010-03-24 07:46:55,025> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Poller raising Alert for exception : ORABPEL-11001
    Invalid Input Directory.
    The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "/tmp/filepolllink".
    Ensure that the following conditions are satisfied for the input directory :
    1) It exists and is a directory (not a file). and
    2) It is readable (file read permissions). and
    3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
    4) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor.
    Thanks,
    Praveen

  • [File-Adapter] Reading not finished files

    Hey,
    my sender file adapter reading files which are not finished yet.
    The files are created by an ABAP programm. The creation could
    take some seconds. If the file adapter polls while creation is not
    finished, we have a problem.
    The flag "Process Read-Only Files" is not set, so the ABAP programm
    doesn't seem to set the file to read only.
    Is there a way to check (e.g. with an operating system command) if the
    file is processed completly?
    For example I could check if the date of creation is higher than 10 minutes
    or something like this.
    Any other ideas?
    thanks
    chris

    What is the file adapter option you are using?
    If NFS, you have the option "Milliseconds check before modification" that will prevent the file from being picked up till they are completly written.
    If FTP, then when the file is being written to the ftp folder you should have the option to use temporary files option
    Regards,
    Bhavesh

  • File Adapter : read XML file with data validation and file rejection ?

    Hello,
    In order to read a XML file with the file adapter, I have defined a XSD that I have imported to my project.
    Now the File Adapter reads the file correctly but it does not give an error when:
    - the data types are not valid. Ex: dateTime is expected in a node and a string is provided
    - the XML file has invalid attributes.
    How can I manage error handling for XML files ?
    Should I write my own Java XPath function to validate the file after is processed ? (here is an example for doing this : http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21058568.html)
    Thanks.

    one option is to specify validateXML on the partnerlink (that describes the file adapter endpoint) such as shown here
    <partnerLinkBinding name="StarLoanService">
    <property name="wsdlLocation"> http://<hostname>:9700/orabpel/default/StarLoan/StarLoan?wsdl</property>
    <property name="validateXML">true</property>
    </partnerLinkBinding>
    hth clemens

  • Dynamic file Directory : Sender File Adapter

    Hi all
    In one of our interface development ,at  we require a dynamic Directory path at the sender file adapter ..
    ex :
    path = Root/A/B/C
    filename = test.txt
    now in Root Directory, Folder & subfolder  " A ( B ( C )))  are dynamic.
    Subfolder "C"  wil contain the source file..
    Will it possible...with Z module development..??
    Regards,
    Ashutosh

    hi,
    if you want your directory name dynamically from Payload, you can use the option variable substitustion;
    For example follow below procedure:
    1)in the Target directory name --> /%dir%
    2)go to advanced tab and check for the variable substitution option(enable),
    3)variable name:dir
       Reference:Payload:mt_filetest,1,name,1
    according to the given details in the communication channel your  payload should be like this
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_filetest xmlns:ns0="urn://filetest">
       <name>madhav</name>
    </ns0:mt_filetest>
    now  directory is created with the name of madhav (Dynamically according to the payload directory name is created).
    Note: points if it is useful
    Thanks
    Madhav

  • Dynamic port configured for FILE adapter is not working

    Hi,
    I have a simple dynamic port in an orchestration that writes a file to a file location. Here is the configuration
    ================
    FilePort(Microsoft.XLANGs.BaseTypes.Address) = "FILE://c:\\TestFolder\\Out";
    FilePort(Microsoft.XLANGs.BaseTypes.TransportType) = "FILE";
    ================
    When I run this orchestration, the dynamic port does not write the file to the folder, however I does not show any error either. It is always in "Ready to Run" state where the message is "Queued Awaiting".
    I tried all sorts of combinations like FILE:// FILE:\\ File: file:// file:\\ etc... and also without the moniker, just c:\.... I get the same problem.
    when I use a static port(subscribed to the same message) it works fine. When I use a static port ALONGWITH this dynamic port then both works fine !!! I receive 2 files.
    but when I use only dynamic port it does not work!!
    Anybody knows how to solve it.
    THANKS IN AVANCE
    PLEASE HELP
    Surya

    It could be becasue you 're not passing in the file name, Try something like this..
    SndPort_Dynamic(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\Test\Try\Out\Test1.xml";
    But even when you don't pass the file name, i was expecting the erro to be like:
    The FILE send adapter cannot open file C:\TestFolder\Out\ for writing.
    Details: The system cannot find the path specified.
    But try with File Name and restart the host instance after the change.
    Or use somehting like this:
    FilePort(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\Test\Try\Out\\%MessageID%.xml";
    FilePort(Microsoft.XLANGs.BaseTypes.TransportType) = "File";
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

  • File adapter validate file checking directory for files

    Hi Gurus,
    We have requirement. There are 3 directories (Processing, Error and Archive)in the Source side.SAP PI need to pick up a file called "abc.txt" from the processing tab.
    But there is a condition.
    1. If "abc.txt" file exists in the "Error" directory then Not process the interface.
    2. If there is no "abc.txt" file in the "Error" directory then validate the file "abc.txt" in the "Processing" directory. If the file is not according to the validation rule then move the "abc.txt" file to the "Error" directory and then stop the processing.
    3. if the above two conditions are ok then move the "abc.txt" file to "archive" directory and send the file to PI.
    Please help me to achive this requirement.

    Hi Kevin,
    You need to use the option of "advanced selection for source file" in the source tab of  sender comm. channel.
    chk this link :-
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    hope its of some help
    Regards,
    Rohit

Maybe you are looking for

  • Bridge Problem opening files in Photoshop CS6

    CS6 Bridge appears to work fine, however when I try to open a file into Photoshop CS6 I get a flag saying it cannot find Photoshop CS4? Any ideas? TIA Keith

  • Mapping data from internal table to SAPSCRIPT Box.

    Hi Gurus, I have to create a sapscript where in I should get data from standard tables and display the data in box (table format) in sapscript. I know how to get a field (perform in zprogram) into sapscript form zprogram. I dont know how I can get da

  • Why does exporting a quicktime movie take so long?

    I'm exporting an 88-minute-long HDV movie as a self-contained quicktime without recompressing. The media is all on one ESATA drive and the target disk is a second ESATA drive. It takes five hours and uses >150% of my CPU during the export. It seems t

  • Why can't I use an Additional BT ID to watch BT Sp...

    Yes, I know I can't - http://www.bt.com/static/wa/account/bt-id-explaine​d/ - but you should be allowed to. There are other threads about this stupid restriction and I'm posting this in the hope that a BT person might read it and get the powers that

  • SAP ESS/MSS UI5

    Hello, I have been trying to test the SAP UI5 ESS/MSS through the NWBC. I have activated the necessary business functions HCM_ESS_UI5_1 and HCM_ESS_WDA_3 and the relevant services in SICF. But when I tried accessing the ESS I am getting the below err