ESB - How to add filter to avoid file adapter to start executing?

I have an esb project with first a file adapter that reads incoming XML files. Mapped with a database adapter that calls a stored procedure that inserts data in certain tables. The output parameter of this stored procedure is of type pl/sql table and contains data of an error if an error has occurred while processing the procedure. A new file adapter will create a new file with the content of the output parameter. But if the outputparameter is empty it will give an error.
Is there a possibility to add a filter to avoid that the file adapter starts trying to create the error file?
Thanks,
Els
Message was edited by:
user644760

Hi Els,
A possibility is to add a routing service in between the database invocation and file adapter with a single routing rule. Add a filter to the routing service to test whether the input is empty.
Regards, Ronald

Similar Messages

  • 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 add the mail.jar file to my CLASSPATH ?

    Hi;
    I wish to Instal JavaMail 1.2
    To use the JavaMail 1.2 API, i unbundle the javamail-1_3_1-upd.zip file.....and now, i would like to add the mail.jar file to your CLASSPATH.
    My question is: how do you do this ?
    - ok i did that for CATALINA_HOME & JAVA_HOME but how to add the mail.jar file to my CLASSPATH ??
    1000 thanks.

    I think you're looking for "developer support", not packaged application support. different server, different batch of groups. . .
    Since I have very little contact with devopers, I don't truly know.

  • How to add other 2 control files at ASM in linux RAC

    Hi Experts,
    I am new for RAC .
    the vendor build a RAC for us. I found there are only one control file in system.
    we use oracle 10.2.0.4 at ASM with RAC in redhat linux 5.
    how to add 2 additional control file to ASM for RAC ?
    Please provide a procedur in detail.
    Thanks
    Jim

    Hi damorgan & Friends,
    I could not find some infomration to add control into ASM . I can do this job( see below procedure) in no ASM .
    My question, our database locates at ASM and control file with a system auto-number ( fully qualified filename ) as
    +DATA1/SALE/controlfile/current.256.690290159
    How do I physical copy and rename other 2 contril file in directory and modify location in pfile?
    I saw some paper to use request as an alias (such as +dgroup2/control/ctl.f). i can not image to copy/rename control.
    Please help me!!
    Thanks
    Jim
    ========added control file for no ASM database and works=====================
    1)
    SQL> create pfile from spfile;
    File created.
    2)
    SQL> show parameter control_file
    NAME TYPE VALUE
    control_file_record_keep_time integer 7
    control_files string C:\ORADATA\ORCL\CONTROL01.CTL
    3)
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    4) modify pfile add additional control file2/3 as
    control_files='C:\Oradata\ORCL\control01.ctl','C:\Oradata\ORCL\control02.ctl','C:\Oradata\ORCL\control03.ctl'
    and physical copy control01.ctl and raname as control02.ctl,control03.ctl
    5)
    SQL> startup pfile='C:\oracle\product\10.2.0\db_2\database\initORCL.ora';
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1247900 bytes
    Variable Size 62915940 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2945024 bytes
    Database mounted.
    Database opened.er database mount;
    6)
    SQL> Create spfile from pfile='C:\oracle\product\10.2.0\db_2\database\initORCL.ora';
    File created.
    7) check control file info under pfile environment
    SQL> show parameter control_file
    NAME TYPE VALUE
    control_file_record_keep_time integer 7
    control_files string C:\ORADATA\ORCL\CONTROL01.CTL,
    C:\ORADATA\ORCL\CONTROL02.CTL
    , C:\ORADATA\ORCL\CONTROL03.CT
    L
    8)SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    9) startup as spfile environment.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1247900 bytes
    Variable Size 62915940 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2945024 bytes
    Database mounted.
    Database opened.
    10) check control info for spfile environment
    SQL> show parameter spfile
    NAME TYPE VALUE
    spfile string C:\ORACLE\PRODUCT\10.2.0\DB_2\
    DATABASE\SPFILEORCL.ORA
    SQL> show parameter control_file
    NAME TYPE VALUE
    control_file_record_keep_time integer 7
    control_files string C:\ORADATA\ORCL\CONTROL01.CTL,
    C:\ORADATA\ORCL\CONTROL02.CTL
    , C:\ORADATA\ORCL\CONTROL03.CT
    L

  • How to  add filter in Bex report

    hi how to add filter in BEx report and what is the difference between filter and free charcteristics.
    Regards,
    Viren.

    Hi Viren,
    difference between filter and free characteristics is that free characteristics can be added to drilldown at query runtime. Filter values can not be changed at query runtime.
    You can add a filter to a query by placing a characteristic in filter section and restrict the characteristic to certain values. Characteristics in rows / columns / free characteristics section can be restricted to certain values, too.
    Best regards,
    Björn

  • How to add list of multiple file types to file type of file dialog box in LabVIEW

    How to add list of multiple file types to file type of file dialog box in LabVIEW?
    In file dialog box there is option to add only one file type,in the list,not by seperating commas,
    regards,
    Naresh.N

    Write the file types in pattern Input string, separated by a semicolon ;
    For example:  *.vi;*.doc;*.jpeg;*.xls
    This should return the set of files with matching extensions
    Message Edited by devchander on 09-10-2008 08:02 AM
    Message Edited by devchander on 09-10-2008 08:03 AM

  • How to add filter in the dist. model

    hi,
    how to add filter in the dist. model
    thanks
    Ruban

    Hi,
    Please try this.
    1. Go to transaction BD64.
    2. Click on Change button.
    3. Expand the corresponding model view.
    4. Expand the corresponding message type (i.e MATMAS).
    5. Place the cursor to 'No filter set' and double click.
    6. Click on Create Filter Group.
    7. Add your filter from here ...
    8. Once done, save the model view.
    For more information, please check this link.
    http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm
    Regards,
    Ferry Lianto

  • How do we filter an excel files in f4_filename?

    how do we filter an excel files in f4_filename?
    Best regards
    Ian

    Hi Gajo
    Try this code . It should work for your requirement
    DATA
         : FILE_TABLE TYPE FILETABLE,
           WA_FILE    LIKE LINE OF FILE_TABLE,
           RC         TYPE I.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      EXPORTING
        WINDOW_TITLE            = 'Pick Excel File'
        DEFAULT_EXTENSION       = 'xls'
    *    DEFAULT_FILENAME        =
        FILE_FILTER             = '*.*|*.XLS'
    *    WITH_ENCODING           =
    *    INITIAL_DIRECTORY       =
    *    MULTISELECTION          =
      CHANGING
        FILE_TABLE              = FILE_TABLE
        RC                      = RC
    *    USER_ACTION             =
    *    FILE_ENCODING           =
    *  EXCEPTIONS
    *    FILE_OPEN_DIALOG_FAILED = 1
    *    CNTL_ERROR              = 2
    *    ERROR_NO_GUI            = 3
    *    NOT_SUPPORTED_BY_GUI    = 4
    *    others                  = 5
    IF SY-SUBRC EQ 0.
      READ TABLE FILE_TABLE INTO WA_FILE INDEX 1.
      WRITE WA_FILE.
    ENDIF.
    Regards

  • How is add/insert jpeg/gif files on wiki (code gallery)

    Hi;
    I prepared new wiki-code gallery page. I must insert/add jpeg/gif files on my page. But I dont know  How is add/insert jpeg/gif files on wiki (code gallery).
    Please help me.
    Thanks.
    http://wiki.sdn.sap.com/wiki/display/Snippets/NewTimeDomainandConversionRoutineforTotalTime

    Hi;
    Mr Moshe Naveh helped me. He sended me new template page.
    I again prepared my wiki with new template.  ( http://wiki.sdn.sap.com/wiki/pages/createpage-entervariables.action?spaceKey=stage&templateId=113147905 ) I added jpeg files on new wiki page.
    Then He moved my new page.
    Thanks him.
    Best regards.

  • ? how to add page numbers in pages 5.2, starting with 2.  Pages '09 had an option to not show folio on page one.  Also any how to do left and right folios for a Tabloid?  Many trhanks

    ? how to add page numbers in pages 5.2, starting with page 2.  Pages '09 had an option to not show folio on page one.  Also any idea how to do left and right folios for a Tabloid?  Many thanks  . . .

    Hello jacquemac,
    Your first question:
    There might be a better way of achieving what you wish to do, but following these steps could help you out.
    You might want to blend in Thumbnails and Invisibles either with (cmd+shift+i and cmd+alt+p) or over the View section in the Menubar.
    1. go for Documents (right end of the Toolbar) -> Section
    2. place your cursor at the very top of your second page and click "Create new Section->Starting with this page" in the side bar on your right.
    (what you are actually doing next is setting the pagenumbers for each section you created. You can see your sections in the Thumbnail view.)
    3. click on your first page (the first and only page of your first section) and mark the checkbox "Hide on first page of section"
    4. click on your second page (the first page of your second section) and  "Insert page number" -> start at 1
    Your second question:
    Im not quite sure i understand what exactly you want to do here. One page, two columns, each column with another page number? As far as i know this is not possible.
    greetings jl

  • 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 add data in a file

    hi,
    I have written following code.I have a file. i want to add data in this file.
    When i add data then data is added but i donnot get the previous data. What`s the problem of my code? Is there anyone can help me? how i will add data with the previous data? Please help me.
    String username=request.getParameter("UserName");
    String userage=request.getParameter("UserAge");
    String address=request.getParameter("UserAddress");
    String sex=request.getParameter("sex");
    FileWriter f = new FileWriter("d:\\download_dreamweaver\\Project_3\\WebContent\\SaveData.txt");
    f.append(username);
    f.close(); ith regards
    bina

    Looks like you're creating a new file (which overwrites the old one) every time. You need to open the file first and then append to it.

  • How to add name from text file to jtable?

    hello all,
    how to add name (string) from the notepad file(.txt) into jTable rows.
    I am not able to add it.
    try {
                 FileInputStream fis = new FileInputStream("Devices/Devices_Lst.txt");
                 BufferedReader br = new BufferedReader(new InputStreamReader(fis));
                 String line = null;
                 Vector data = new Vector();
                 line = br.readLine();
                 while ( (line = br.readLine()) != null)
                    int rowCount1 = nmsTable.getRowCount();
                    for(int i=0;i<rowCount1;i++)      
                        myTableInit();  // it initialize the table
                       /* nmsTable.setValueAt(i+1,i,0);
                        Table.setValueAt(line,i,1);
                        Table.setValueAt(" ",i,2);
                        Table.setValueAt(" ",i,3);
                        Table.setValueAt(" ",i,4);
                        Table.setValueAt(" ",i,5); */
                        int rowNo = nmsTable.getRowCount();
                        row.addElement((rowNo+1));
                           //row.addElement(ipText.getText()+"-"+nameText.getText());
                           row.addElement(line);   
                           row.addElement((String)" ");
                           row.addElement((String) "");
                           row.addElement((String) "");
                           row.addElement((String) "");      
                            row.addElement((String) "");      
                            rows.add(row);                                     //rows is the Vector for table row.
                            Table.addNotify(); 
                  br.close();
                 if possible give me some examples.
    thank you.

    For every row you need to create a new Vector and add the data to that Vector. Then the Vector is added to the TableModel.
    If you add 6 items to the single Vector, then you will get 6 columns. So you need to create 6 Vectors and add a single item to each Vector and therefore you will end up with 6 rows with 1 column of data.

  • How to add filter at select options?

    Hi friends,
    I believe there should be a way to add filter, but I don't know where it is.
    The call is like this:
      wd_this->r_selopt->if_wd_select_options~add_selection_field(
        i_id                          = 'ACT_CAT'
        it_result                     = lr_range
        i_description                 = 'Category'
        i_value_help_type             = 'SEARCHHELP'
        i_value_help_id               = 'ZZS_SH_CATEGORY'
        i_value_help_structure        = 'ACT_CATEGOR'
        i_value_help_structure_field  = 'CATEGORY'
    When other fileld has changed, I want to use that value as a filter. Unfortunately, I can't find how to set this. Would someone do me a favor? A sample will be better.
    Special thank to any reply.

    Hi
    No other component required. WDR_SELECT_OPTIONS uses OVS component internally, you can see the component usage also in WDR_SELECT_OPTIONS.
    Add the seleciton Field
    wd_this->lr_helper->add_selection_field(
                    i_id = 'ATFLV'
                    IT_RESULT = LR_TABLE
                    I_DESCRIPTION = 'Msg'
                    i_obligatory = abap_true
                I_VALUE_HELP_TYPE =
    IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_OVS
                    I_VALUE_HELP_STRUCTURE = 'ZPP_ROUT_PROD'
                    I_VALUE_HELP_STRUCTURE_FIELD = 'MS_FLAG'
    ZPP_ROUT_PROD is a structure created and MS_FLAG is the field in the structure, for which we are developing Value help
    Now,
    WDR_SELECT_OPTIONS has an event int he Interface called ON_OVS, subscribe the event in your view,
    from here onwards it is like Using normal OVS, you have phases put a case statement and code accordingly
    Abhi
    Edited by: Abhimanyu Lagishetti on Jul 25, 2008 7:45 AM

  • How to "Add" Button to upload file in Notification PG?

    I have a question on Extending/Customizing notfn to have "Add" attachment button to upload a document (some stnd template that Our business has) on either NotifDetailsPG or /oracle/apps/fnd/wf/worklist/webui/MoreInfoPG when a Approver opens notification to APPROVE/Reject
    I'm wondering why Oracle didn't provide this feature of Uploading a file (along with Response input text area that they provided already) in NotifDetailsPG?
    Business Reason: Our Business wants to upload a doc when an approver Rejects the notification (our case: iExpense module filing Exp Report) telling employee to follow some protocals
    Question on OAF:
    Is it possible to extend NotifDetailsPG or MoreInfoPG to upload a file. So, that when it goes to requestor they can open this file back and read thru. I know we need to insert a record in fnd_documents and fnd_attached_documents and /or fnd_lobs...but i don't know how to retrieve it back....Any hints....
    Thanks
    Raghu Kulkarni

    to clarify again....
    In the WF notification during the time of "Reject"ion or "Approv"al, we want to upload a file and then perform Reject/Approve action. Can we extend the page to have Add button to upload file? Is that a lot of work?
    Please any one give some suggestions...Thanks
    Raghu Kulkarni

Maybe you are looking for