Need Help-SOA 11g File Adapter unable to delete input file and its crashing

Hi All
Please find the details below:
1. We have created a simple SOA composite to Read file from an input directory, archive the file in an archive directory using Inbound File Adapter Read
and then use Outbound File Adapter Write to move the file to a output directory.
2. File Adapter needs to delete the file after successful read/retrieval.
3. We are using the "Use Trigger File" for invoking the file adapter. This is a new feature in SOA 11g
4. Also we are using the option of reading the file as an attachment as we are not doing any transformation in the composite
Issue Details_
1. When the trigger file is put in the input directory for the first time, the File Adapter reads the file, archives it and moves it to the output directory
2. However it does not delete the input file from the input directory and raises Fatal Exception mentioned below:
[*2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]*
[userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC PostProcessor::
Delete failed, the operation will be retried for max of [0] times
[2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]
[userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC [[
BINDING.JCA-11042
File deletion failed.
File deletion failed.
File : C:\Dibya\AttachmentTest\InputDir\TestFile3.txt could not be deleted.
Delete the file and restart server. Contact oracle support if error is not fixable.
If any one has faced similar issues, kindly provide pointers on how to resolve it.
Regards,
Dibya

Hi,
Using the file adapter, you can poll from multilple locations...
Keep the following property in your .jca file
<property name="DirectorySeparator" value="," />
While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
Hope this helps...
Thanks,
N

Similar Messages

  • I need help!! I drop my iphone4s in the toilet and its been in rice since Saturday and it wont turn on. I plugged it in and it got really hot. Is my phone not working at all no more.

    I need help!! I drop my iphone4s in the toilet and its been in rice since Saturday and it wont turn on. I plugged it in and it got really hot. Is my phone not working at all no more.

    1lozano1 wrote:
    I need help!! I drop my iphone4s in the toilet and its been in rice since Saturday
    Should have waited at least 4 more days.
    See this -> Apple Service Answer Center - iPhone
    Out-of-Warranty Service
    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5s, iPhone 5c,
    iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax. When setting up out-of-warranty service, Apple will request credit card pre-authorization for the maximum service fee listed above.  This amount will be deducted from your credit limit. The final service fee we charge will be determined during testing and may be less than the service fee listed above.Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPhone that has failed due to contact with liquid may be eligible for out-of-warranty service.Apple reserves the right to determine whether or not your iPhone is eligible for Out-of-Warranty service. iPhones that are repaired or replaced have a 90-day limited hardware warranty or assume the remainder of your standard warranty or AppleCare product coverage, whichever is longer. Please see Apple's Repair Terms And Conditions for further details.

  • Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.

    also say explorer not reading SWF files and I have to reload them? Not sure what that is either,
    Thanks
    Jim

    Hi Nancy
    Trying to update my site got to make some changes.  Do you work on sites via remote? I am on Cloud.
    : Nancy O. 
    Sent: Monday, September 01, 2014 3:47 PM
    To: James Neidner
    Subject:  Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    created by Nancy O. <https://forums.adobe.com/people/Nancy+O.>  in Dreamweaver support forum - View the full discussion <https://forums.adobe.com/message/6692200#6692200>

  • Need a relative sequence (count of record) in an input file in ESB input fi

    I am using ESB to pick up text files and pass them to a stored procedure. I have multiple variable length records in the file. I pass each record to the
    output file adapter, along with the input filename. I would also like to get a relative record number for each record within the file. I use an xsd file
    to convert the input to XML. The entire file is at the root level, each record is an element. Is there a way to get a relative count of each element?
    Here is the xsd file:
    <?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://TargetNamespace.com/Filein"
    xmlns:tns="http://TargetNamespace.com/Filein"
    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="C1" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <!--NXSDWIZ:J:\\UPLD5383.INM:-->
    <!--USE-HEADER:false:-->
    I need to map the relative record number to a field in the output.
    Is there a function similar to the get filename that would return this value to me?
    <xsl:value-of select='ehdr:getRequestHeader("/fhdr:InboundFileHeaderType/fhdr:fileName","fhdr=http://xmlns.oracle.com/pcbpel/adapter/file/;")'/>
    I use this in the xsl file to get the file name .

    does each record start with a new line? if it does a
    simple wc -l can help you. If not, you can pre
    process this XML file by first removing all the new
    line characters using sed and then adding new line
    characters after the end tag of the xml using sed and
    finally doing a wc -l . this would be a simple shell
    script. Not sure if you want to use Unix shell
    scripting to achieve this.The sheer nature of XML means that it does not conform to any visual formatting. i.e. An xml file containing...
    <employee><empno>3</empno></employee>
    is identical in XML terms to...
    <employee>
    <empno>3</empno>
    </employee>
    which is also identical in XML terms to...
    <employee>
    <empno>
    3
    </empno>
    </employee>
    which is also identical in XML terms to...
    <employee><empno>
    3
    </empno></employee>
    etc.
    You cannot rely on the number of CR's or CR/LF's in the file to count the records. Proper XML processing should be used for such a task.

  • File adapter should pick a single file at a time

    Hi,
        I have File to RFC scenario.. in my source directory  I'm getting bunch of files with  the same name.  at a time.. but  i want to pick the one by one only. that means.. my file adapater poll interval is 30 seconds.. every 30 seconds it will pick the one file.. even though there are multiple files.. but my file adapter should pick a single file ata time..
    but at present my file adapater was picking all the files ata time..  but i want to make my file adapter should pick single file ata time..
    for this.. any special  configuration we need to do..  or  any  ideas or suggestion  .. will be.. appriciated..
    regards
    Babu

    >>any special configuration we need to do..
    there is no default configuration to achieve this functionality.
    I speculate that any of this should work.
    1. Post the files to a intermediate directory and use a SCRIPT/Batch program to move only one file at a time frame to the source directory.
    2. Uncheck the option Process Read only files in the sender CC to prevent the file adapter to pick the read only files. Use a script that changes the permission of one file at a time so that the file adapter will pick that file alone.
    In both the cases the script needs to be scheduled at the OS level to run every 30 seconds.
    Thanks
    SaNv....

  • Unable to delete a file on application server

    Hello Experts,
    I have gone through  couple of post and sample nothing worked that's the reason Iam posting a query here.
    Please help me with your valuable suggestions.
    I am reading a file from the application server running a BDC program to update my ztable all works fine.
    now i wanted to move this file to another folder thats too working perfectly but now when i try deleting the older one it is not getting deleted.
    I have closed the dataset and checked the authorization that is not a concern but still it is not getting deleted.
    I have pasted the code below.
    For READ and CLOSE dataset it returns subrc as 0 but after delete it returns 4.
    data : mess type string.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT message mess.
    IF SY-SUBRC = 0.
    DO.
        READ DATASET ld_file INTO wa_string.
        if sy-subrc eq 0.
            append wa_string to it_string.
            clear wa_string.
        else.
            exit.
        endif.
      enddo.
      close dataset ld_file.
      delete dataset ld_file.
    else.
    WRITE 'Unable to open source file to move the content'.
    endif.
    Regards,
    Ranjith N

    Hello Mr Ghode,
    Thaking you for your response on my query.
    as you said to handle exception this is what i have done.
    kindly verify the same would be of great help.
    still iam unable to delete the file.  
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF SY-SUBRC = 0.
        DO.
          READ DATASET ld_file INTO wa_string.        "LV_LINE is variable to hold line contents being read
          if sy-subrc eq 0.
            append wa_string to it_string.
            clear wa_string.
          else.
            exit.
          endif.
      enddo.
      close dataset ld_file.
      if sy-subrc eq 0.
      try.
        delete dataset ld_file.
        catch CX_dynamic_check into t_ref.
        err_txt = t_ref->get_longtext( ).
    endtry.
    endif.
    endif.
    Regards,
    Ranjith N

  • Unable to delete the file. (Some times deletes and sometime fails to delet)

    Please help me in deleting the file from the temporary location .
    Below is my code
    //Append the session is with filename as there is possibility of having same name of file.
    try{
    boolean isMultipart     = ServletFileUpload.isMultipartContent(request);
              if (isMultipart)
                   // Create a factory for disk-based file items
                   factory = new DiskFileItemFactory();
                            // Create a new file upload handler
                   upload = new ServletFileUpload(factory);
                   // Parse the request
                      List /* FileItem */ items = upload.parseRequest(request);
                           // Process the uploaded items
                   Iterator iter = items.iterator();
    if(strInputFileName.lastIndexOf("\\")== -1)
         strInputFileName = (String)mPropBag.get("TempUploadDirM") + strInputFileName;
      }else
         strInputFileName = (String)mPropBag.get("TempUploadDir") +   strInputFileName.substring(strInputFileName.lastIndexOf("\\"));
    strInputFileName = strInputFileName + "_" + request.getSession().getId();
    uploadedFile     = new File(strInputFileName);
    item.write(uploadedFile);  //// I am Writing the file in this location appened with the session Id because there might //be a  possibility of having same name of file.
    catch(......)
    finally
         uploadedFile.delete();
         uploadedFile = null;
         upload = null;
    }I am unable to delete the file from the temporary location
    some times it is deleting and some times it is not deleting.. I have also tried ...deleteOnExit();

    Make sure you've got no other processes holding onto it (Windows Explorer, for instance) and that you've closed any streams involved with the file. If that fails, try calling System.gc() just before deleting the file. This is a workaround for a bug in certain JVMs on Windows machines

  • Error in reciever file adapter , where i am getting file name dynamically

    hi all,
    error in reciever file adapter , where i am getting file name dynamically, please help me in this isssue , i am trying for a long time
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)'

    i am getting new error
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    this is my strcuture
    and i have changed my structure
    <HEADER>
    <ADDRESS1/>
    <ADDRESS2/>
    <ADDRESS3/>
    <ADDRESS4/>
    </HEADER>
    <HEADER_GST>
    <TAX1/>
    <TAX2/>
    <TAX3/>
    </HEADER_GST>
    <LINE>
    <QTY/>
    <UOM/>
    <UNIT_AMT/>
    <CHARGE_TO_DT/>
    </LINE>
    <FILENAME>
         <FILENAME/>
    </FILENAME>
    i have given the recordset structure as
    HEADER,HEADER_GST,LINE,FILE

  • Production issue - Sender File adapter not picking up the files from folder

    Hi Guys,
    Ever since the upgrade from XI 3.0 to PI 7.1, we have come acrossinstances of weird error.
    Thsi time again - now the 3rd time - tandom basis, in our production PI server, we have teh file slying in the source directory folder in the server.
    I can see the files lying there in AL11.
    However, it looks like that the file polling has just stopped and the channel is going blank in channel monitoring.
    I have checked in SXMB_MONI and there are no messages since the morning.
    I have tried craeting a replica of the current channel but it is not working.
    This is teh production server and thsi has alraedy created production issues.
    I ahve checked in the SDN forum but am not able to find the details.
    Plaese help me.
    I am anyway going to raise the issue with SAP now.
    Regards,
    Archana
    <REMOVED BY MODERATOR>
    Edited by: Prateek Raj Srivastava on Jun 8, 2010 4:50 PM

    Hi Prateek,
    I have trying all sorts since the morning and then just checked teh file permissions.
    The file permissions were incorrect as compared ot the other files that were processed successfully today.
    Somehow the permissions were changed on the server and the interface channel was not able to poll the files.
    I got teh permissions changed back to 666 and all the files were pikced up in a minute.
    I got the folder checked and it seems like that the permissions were changed somewhere very early in the morning and we are trying to find out how it happened and who did that.
    However, another question i had - this sender file adapter was polling the source directory and deleting the files from there.
    I would have expected that if the channel had issues with the file permission because of which it was not able to access the file, it would have thrown an error something like the file permissions error.
    But there was not a single error in the channel monitoring.
    How can we configure it in a beter way so that we at least soem kind of error indication?
    Please advice.
    Regards,
    Archana

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

  • Cant unninstall lightroom 5.4 needed for install update 5.5, i have delete all file and registry but install fails

    Cant unninstall lightroom 5.4 needed for install update 5.5, i have delete all file and registry but install fails again and again, now i i cant use lightrrom .. grins.
    I use SSD disk and i cant have lot of uninstal file (have to clean disk often)
    Thanks for help

    Hello Jeff,
    Many thanks for your answer, i use windows 8.1! I have found the problems: For install the news version the install need the old installer (but i delete all installer, cause they use a lot place on hard drive  (SSD)).
    I have desinstall the whole Adobe and réinstalled it, i have save the whole installer on a external disk. So when the installer asked the old installer i indicate to programm my external disk ans all works good now.
    Many thanks for you help, i have just do not to delete old file (sad to have to save old installler just for install the new).
    Wallie
    (sorry my english)

  • 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

  • Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon ! please help

    Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon !  i never backed up on itunes ..please help

    No. The contacts are "owned" by the Exchange server.
    The Exchange server is owned by the company.
    Everything on the Exchange server is owned by the company.
    If you quit or were terminated, and your access to the system has been revoked, then there is nothing you and do at this point. Once you deleted the account from your phone, all of the associated data was deleted.
    NEVER store personal information on company systems.

  • SQLJ: unable to find input file null   (Error while building EJB.jar file)

    Hi,
    I am working on open SQL/SQLJ with the following details
    Name:Employee application(adding an employee to MAXDB through SQLJ connection)
    FRONT-END:JSP/SERVLET
    Middle:Stateless bean with DAO(DB connection) coming from SQLJ
    Back-end:MAXDB
    I have following in abc.sqlj file
    #sql public context Connx with (dataSource = "java:comp/env/jdbc/SAPTSTDB")
    and creating instance and adding to DB in another say xyz.sqlj file
              Connx con = null;
              try{
                   con = new Connx();
                        #sql [con] {insert into TMP_DB1(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL)
                        values(:(employeeDTO.getEmployeeId()),
                                 :(employeeDTO.getFirstName()),
                                 :(employeeDTO.getLastName()),
                                 :(employeeDTO.getEmail()))};
    My build has no errors..but while building EJB archive with above sqlj files, am getting following error
    "SQLJ: unable to find input file null" for both sqlj files.
    Anybody faced this kind of issue, pls reply back.
    Thanks
    parveen

    Hi,
    I am working on open SQL/SQLJ with the following details
    Name:Employee application(adding an employee to MAXDB through SQLJ connection)
    FRONT-END:JSP/SERVLET
    Middle:Stateless bean with DAO(DB connection) coming from SQLJ
    Back-end:MAXDB
    I have following in abc.sqlj file
    #sql public context Connx with (dataSource = "java:comp/env/jdbc/SAPTSTDB")
    and creating instance and adding to DB in another say xyz.sqlj file
              Connx con = null;
              try{
                   con = new Connx();
                        #sql [con] {insert into TMP_DB1(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL)
                        values(:(employeeDTO.getEmployeeId()),
                                 :(employeeDTO.getFirstName()),
                                 :(employeeDTO.getLastName()),
                                 :(employeeDTO.getEmail()))};
    My build has no errors..but while building EJB archive with above sqlj files, am getting following error
    "SQLJ: unable to find input file null" for both sqlj files.
    Anybody faced this kind of issue, pls reply back.
    Thanks
    parveen

  • I need help making Adobe Edge animation appear correctly on iphones, ipads and android phones.

    I need help making Adobe Edge animation appear correctly on iphones, ipads and android phones. It currently looks fine on desktops and androids. I am using wordpress with a responsive theme (Canvas). I will need you to document The url is http://adamhtc.org.s183459.gridserver.com.

    Thanks George, interesting thought.  I looked on Adobe's site and they "advertise" fillable forms for the iPhone and Android markets, but on the Windows Phone tab, that is mysteriously missing.  lol    Maybe it will come later?   Meanwhile, I'll google to see if there are any PDF viewers that can handle it now.   Thanks for the reply.  :-)

Maybe you are looking for