Sender File Adapter  not able to get file via FTP from an external system

Hi,
I have a Sender File Adapter using FTP which polls a server every 10 seconds looking for a file ".xml".  The adapter will connect and pick up the waiting file, but sometimes the adapter not able to get file via FTP from an external system. The file is on the server, but despite the polling, the adapter does not pick up it. There is no return error.
The connect mode is Permanently and the transfer mode is Binary.
Can you help me?
Thanks.
T.

Hi Teresa,
does this case appears with a file size higher the others?
Personally, I do not recommend to have a polling under 1min.
10s could be too just, if the file is not small and/or if the file server is far (several kilometers) to where the Adapter Engine is, and/or this file server is beside a firewall. Do not forget also that, with previous points, you could have like a conflict, betwen the 1st polling and the 2nd polling, if in less 10s PI adapter has not enough time: to connect to the FTP server (several Km), find the file (perhaps among 100 other files in the directory), go back to the file to Adapter Engine server (several Km again), convert your file to XML message (with a complex Content Conversion), then check the XML structure, and when all that is done, return back to FTP server (several Km), to archive the source file... Well It's my understanding of a FTP exchange with FILE adapter...
If you really need a 10s polling, that's mean your have a pseudo real time interface. In that case, in my mind file should not be used! but we should use a Web service, JDBC JMS (any exchange without a physical object like a file). For me, it's a non-sens to have a file in that case.
regards.
mickael

Similar Messages

  • 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

  • New Dsktop with new Windows, NOT able to get to my contacts from previous set up ? ?

    Just got new Desktop, reconfiguring everything but not able to get to my contacts from previous setup . Need to get the old page with names and phone Numbers

    What exactly is the version of Skype program installed now on your computer? In Skype go to Help -> About Skype.

  • Photos app in my mac is not able to open the iPhoto library from my external hard disk.

    I am using iMac (21.5-inch, Late 2013) OS 10.10.3. i have 2 iPhoto library one on my Mac HD and the other on my External HD which i primarily use and which has all the latest photos in it. Now with the new update to photos app in Mac i am not able to open the iPhoto library from my external HD. I get the following error message please help.  

    i am not able to open the iPhoto library from my external HD
    How is the external HD formatted? Is the filesystem MAcOS Extended (Journaled) as necessary?
    Is theHD directly connected or by a networked connection?
    Have you tried to set the "Ignore Ownership on this volume" flag?
    See how to prepare the drive for storing an iPhoto Library on it in this document: iPhoto: Sharing libraries among multiple users
    Which version of iPhoto created the library? If it was iPhoto 7.1.2 or earlier, download and run the iPhoto Library upgrader.
    iPhoto '11 or later: About the Library Upgrader - Apple Support

  • Not Able to get to the values from applet while designing from xml

    Hi All,
    I have a new problem, and i am new to this one.
    Like I have an XML file.Where in i am able to design the applet while getting the values from the xml and i am able to store also.
    But the problem comes over here.I have given out a type field in xml.By validating the type field i am able to get Label(),TextField(),etc.,( whatever it is).While displaying i am giving only one single TextField in the init method and i am looping it up.so that i can get the no of text fields ,labels,text areas,etc.,
    so problem comes here.I am not able to get the values from those text fields.(only i am getting the last value.Last value is overwriting the old values.Now i am able to get the last value that i am giving it lastly.)
    So please can anyone give me some idea.As it is urgent to me and i have to submit urgently.
    Please help me out.And Thanks In Advance.

    Here is the sample code while designing the applet:
    String type = (String) typeList.get(j);
                             String option = (String) optionList.get(j);                                   
                             if(type.equals("text")){
                                  txtdisp = new TextField(15);
                                  leadcomp.add(txtdisp);     
    //                              txtdisp.addMouseMotionListener(this);}

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

  • 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

  • Not able to get file from application server with read dataset

    Hi,
    Firstly i download a file from application server from read data set and then i sent this file as attachment. But problem is that i am able to send .jpg .bmp file but i am not able to send .pdf or .doc file so what can i do for that. ?
    My code is like below...
      DATA : PATH TYPE STRING.
      DATA: E_FILE LIKE RLGRAP-FILENAME.
      CONCATENATE '/tmp/'  NAME_WITH_EXT INTO E_FILE SEPARATED BY SPACE.
      CONDENSE E_FILE NO-GAPS.
      IF EXTENSION = 'TXT'.
        OPEN DATASET E_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH WINDOWS LINEFEED . " MESSAGE MSG.
        IF SY-SUBRC <> 0.
       WRITE: SY-SUBRC, MSG, ' LIKE ', C_FNAME.
        ELSE.
          WHILE SY-SUBRC = 0.
            READ DATASET E_FILE INTO WA_C.
            IF SY-SUBRC <> 0.
              EXIT.
            ENDIF.
            APPEND WA_C TO IT_C.
          ENDWHILE.
          CLOSE DATASET E_FILE.
        ENDIF.
      ELSE.
        OPEN DATASET E_FILE FOR INPUT IN BINARY MODE. " ENCODING DEFAULT. "    INPUT IN  BINARY MODE . " TEXT MODE ENCODING   NON-UNICODE.
        IF SY-SUBRC = 0.
          DO .
            READ DATASET E_FILE INTO GS_PDF_TAB.
            IF SY-SUBRC = 0.
              APPEND GS_PDF_TAB TO GT_PDF_TAB.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET E_FILE.
        ENDIF.
      ENDIF.
    Regards,
    Gurprit Bhatia

    delete this line DEFAULT WITH WINDOWS LINEFEED  and check this..

  • Sender File Adapter not picking up the file

    Hello Experts,
    I have configured a sender file (FTP) adapter. All the configurations are right. The name of the file is given exactly as it is. The processing mode is Delete.
    The scenario was running fine till today. I only made changes to the path from which it has to pick the file. I have checked the path numerously and it is correct.
    But the file is not being picked up.
    Monitoring the communication channel shows no errors. It has the green indicator. No idea what is happening.
    Please Help,
    Regards,
    Merrilly

    Hi
    try to make some changes anf then again save and cativte the adapter. may be the adapter is not being activated.
    also check whether the cache is refreshed or not.
    or u can also check in the communication channel monitoring the channel is start or stop. if stop then start the channel and then try again.
    if u still face the problem please reply me back.
    Thanks
    Rinku

  • Receiver File adapter not able to handle the special Char

    We have asynchronous interface from MDM file to CRM (Seibel) file. XI picks up the file from MDM and process them with transformation. It is observed that if the file contains the special character such as ®, it is not writing the output file. The trace is checked and it goes to the adapter framework to do the FCC but do not write the file.It marks the process as successful in SXMB_MONI. Any pointer will be helpful.
    Thanks,
    Samir

    Hi,
    Try  with ISO-8859-2
    http://en.wikipedia.org/wiki/Windows-1250
    see the last row in the above link.
    Secondly to make sure if you are getting the correct char or not, just open the file in Internet Explorer and choose the correct codepage, then you see the characters correctly.
    Regards,
    Sarvesh

  • Sender File adapter not deleting the source file after reading

    Hi everyone,
    In the sender Communication channel i have choosen the "Delete" option after reading the source file. But it is reading the file, but it is not deleting the file. I have checked the file status. it is with full persmission.
    can anyone give solution to this.
    Thanx
    Bala

    Hi,
    1. set the mode to delete
    2. make sure the file is "deletable"
    3. check xiserver:port/MessagingSystem/monitor log to see what happens with the file
    (chec both audit and log in that link)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • File Adapter not able to read quotes after pipe

    I have flat file delimited by pipe |, and optionally enclosed by " quot, below is the xsd definition
    "<xsd:element name="vtext" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;"/>"
    <Field Before>|"TRANS" IN TRANS FAT SHOULD APPEAR IN ITALICS MH|<FieldAfter>
    the file adapter fails to read |", but if I put a space between them, all works well. But, if it is continuous it fails to read resulting in an error.
    any help in reading such a string in nxsd would be of great help..
    thanks,
    Shailesh

    Can you please give us a before and after?
    I am guessing you want to read the text with the pipes?
    If thats the case try this:
    "<xsd:element name='element1' type='xsd:string'
    nxsd:style='surrounded' nxsd:surroundedBy='|' /> "
    Replace the single ticks with double ticks. For some reason it does not display well in the forum.
    Edited by: soa_adf on Apr 13, 2012 11:29 AM
    Edited by: soa_adf on Apr 13, 2012 11:29 AM

  • OracleSOA - File Adapter - Correct mechanism to get the line number from the file

    We are using Oracle SOA process to read data from a file, process the data and write it to the database. SOA process is created using Oracle File Adapter to read the data, Oracle BPEL to transform & process the data and Oracle DB Adapter to write the data into the database.
    Oracle File Adapter uses native schema to process the fixed length data in the file. The number of rows in the file may exceed more than 500,000, to support processing of large files we use chunk size in the file adapter as 4000 rows. In each read operation, file adapter reads the data that matches to the schema, there might be few rejected rows as well.
    Oracle File Adapter property - jca.file.LineNumber gives me only the line number till what line the data is read. Is there any way to get the line number in the xml message, which exactly matches to the line number in the file.?
    Flat File Format: (Every file has one header, trailer and multiple data lines),
    HEADER02 -
    L01
    L01
    L01
    TRAILER02
    Line number is one of the crucial requirement in the development of the SOA service, this is used to back trace the information from which source and line the data has come.

    Hi Anshul,
    Thanks for sharing your thoughts.
    I am using DB adapter to insert the data into db.
    While doing the xsl transformation I can get the index of the message using position(), but that is not the correct way as there can be rejected lines by the file adapter.
    Even if I maintain a local counter variable, it will not consider rejected lines and increment that, which is not correct.
    Thanks,
    Ravindra

  • File Monitoring - Not able to see File Path on the Detail Information Tab

    Hi Experts:
    I am setting up the "File Monitoring" in the Solution Manager. I am having STA/PI01L_CRM570 on the Solution Manager.
    And on the Satelite System - ECC I have STA/PI 01L_ECC600
    While I am setting up the parameters, I am supposed to provide the file path in "Detail Information" tab page.
    But I am just able to see two tabs:
    Count    and Short Text (optional).
    I checked all the other tab but not able to locate where I need to provide the file path.
    Can any one let me know, If I am missing anything or do I need to do any further steps.
    Similarly for the File Size setting:
    I am not able to see where I can define The parameter "File Pattern (e.g. *.log, *.txt or any string)" is mandatory.
    Pls let me know.
    Regards
    John

    Hello Johns,
    You can find the FilePath in the 'Detail Information' tab if you double click the initial and predefined counter 001.
    Best regards,
    Goncalo Mouro Vaz

  • Not able to get the Qualification data from BAPI

    Hi all,
    I am using a BAPI (BAPI_JOBREQUIRE_GETLIST) to get the qualifiaction data for requirement profile. It's working fine earlier but I did not get the qualification data from this BAPI, although the data is there in DB against this requirement profile.
    Can someone suggest me why I am getting this issue. I have looked into SDN and in BAPI documentation and found as below:
    "You require authorization (structural authorization) to read the Requirements subprofile."
    I am having the same User ID as I had before (when I getting back the correct data), so I don't think it should be authorization issue.
    Can someone help me out in this issue please.
    Thanks,
    Sanket Sethi

    Hi Shiva,
    It does not going to these includes at all. Message comes out with successfully done. The BApi is calling RHPP_COMMON_QUALI_READ inside, but this will not return any data. But if will call any qualification object ID, this BAPI will come up with data.
    So the QP type LO profile will not come up with any kind of data, but if we pass the OTYPE as Q and pass any Qualification object ID then the data will be returned.
    Is there any relationship or some other thing is missing? Any idea.
    Thanks,
    Sanket Sethi

Maybe you are looking for

  • Access UCM 11g Deployed component from Content server URL

    Good day to All, I am successfully deployed custom UCM component ("myservices "--will store data in ucm Scema) and enabled the component can you guide me how access the deployed (enable also) componet I tried call using below url but not working http

  • Java & Lion - Having Problems

    I have updated to Lion and haven't had any problems until trying to use Java.  I was at a website when I tried to print something and it said I needed to update my Java Runtime and wouldn't print. I have updated Java at the Apple website with the Nov

  • Bad pixels on iPhone when playing video

    Hi! I have just purchased the iphone and am facing a peculiar problem. When I play video in either youtube or Safari (quicktime), after a while, the video quality deteriorates, i.e. a lot of bad, discoloured pixels start appearing. And this only happ

  • Screen doing a weird Thing!

    I have this pic that shows what my screen is doing from time to time and i have to sleep it to make it normal again. have no idea what it is and would love to get some light on what it could be and what it is , or if its fixable, When i take a Screen

  • Ipad song order is strange, help?

    Hi guys, I have this problem with some albums on my ipad. When i want to play them their track order is via alphabetical order. the funny thing is other albums are not like this so i guess its not just a simple false setting. I have tried updating th