Need to read source file without deleting it - Sender SFTP adapter

Dear friends,
The data from the source file needs to be read by PI on a daily basis. The file should not be deleted.
Vendor  updates the file on a daily basis with file name DataFeed.xml
How to acheive this in Sender SFTP adapter ?
Kindly guide me
Renu

Hi Renu,
Unfortunately as of latest release of SFTP adapter. Arching is not possible :(. really dont know why :).
as a work around what you can do is  create a scenario as 1 sender and 2 reicever.
here: 1 sender: will be the sender fileadapter which will pick the file from souce.
         1st receiver: will be a receiver file channel which will palce back the file in the source Archive folder.
         2ed Receiver: this will be the actual receiver to which the data has to be given.
Or write a Module in Sender adapter which will archive the files in new location.
Note: Here i am assuming that each time the source creates a new file with same name which contains new data in it everytime.
Regards,
Senthilprakash.

Similar Messages

  • Need to read source file without deleting it!

    Hi,
    I have a scenario where
         1.  I need to pick the latest file from source folder without deleting it.
         2. I need to post the data in to EP's KM. (how can I communicate with EP)
    So can any put some light as how to achieve this.
    Regards,
    shiva.

    Ideally, Source application should not modify same file. It should create new file so that you can archive old file.
    Are you using FTP/NFS? FCC???
    Have you tried option "Msecs to Wait Before Modification Check"?
    I m not sure if its useful for you, but just check if it works.
    [http://help.sap.com/saphelp_nwpi711/helpdata/en/44/70ec8a20453abee10000000a155369/frameset.htm]
    -Gouri

  • Is it possible to read/write to text file without deleting it?

    I know how to read from a text file and how to write to a text file. The problem that i have is i need to use a text file to store data for my application to read and also for my application to write. I would like it if i could write two programs really, one reads, the other is used to update the text file. This file is a list of verbs. I thought about using databases but i couldn't get them to work. I downloaded MySQL server 5.0 and installed it. I then downloaded the driver from http://www.mysql.com/products/driver and ran the auto installer. it said everything worked out perfectly but when i try these lines:
    Class.forName("com.mysql.jdbc.Driver");
    I get a SQLException that says no suitible driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    ( I thought this driver came with the JDK but i guess not, i just read about it in a java book)
    I get a ClassNotFoundException
    that just says sun.jdbc.odbc.JdbcOdbcDriver
    So yeah, SQL is pretty much not working. I need a solution to my problem, either by using text files, or a different type of database. I heard you could use excel to create a database but i have no idea how and i hear microsoft access could also do this, however i don't have microsoft access and i don't intend on paying for it. So, here are my questions:
    1st, is there a tutorial on using excel databases in java programs
    (if not)
    2nd is there a way to read/write/update a text file without deleting it?
    (if not)
    3rd is there a way to get SQL working, i have windows vista this could be the problem
    (if not)
    4th what could i do to store information on the hd for reading and modifying later?
    thanks, lateralus

    A database might be overkill just for a list of words.
    Thoughts:
    <ul>
    <li>What is the extent of your "file updating"? If you are just appending to the file, opening it in append mode will keep the file from being clobbered.</li>
    <li>Otherwise, why not create new files instead of editting them? The file names could include a version number or timestamp, allowing the reader to select the newest one.
    </li>
    </ul>

  • Whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    Did you reinstall CS3 after CC?
    For that matter, doing an in-place upgrade on the OS is always a gamble with Adobe programs. Reinstalling all the versions you need, in order, would probably solve your problem.
    And you shouldn't need to save as IDML after opening the .inx in CC.

  • Deleting read source file

    can we delete the read source file once it is successfully transferred to target location?

    Hi,
    Yes u can do that by using API OdiFileDelete. Please follow the document for further info.
    Thanks,
    G

  • Deleting Raw Files without deleting proxy files

    Hello,
    Another newbie question, is Deleting Raw Files without deleting proxy files possible? If it is, anyone have done this? I am thinking of implementing this but cannot find a way. Any suggestion / help is highly appreciated

    If what you want to do is delete the original file without deleting the proxies, the easiest way would be to set up an device for Archives. Then you can archive the asset, which will move the original file to the archive location without deleting the proxy and database records for that Asset. Once that is done you can just delete the file from the archive location.

  • Need to read text file content and have to display it in multiline text box

    dear all,
    Need to read text file content and have to display it in multiline text box.
    actually im new to file handling. i have tried up to get_line and put_line.
    in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
    TEXT_IO.GET_LINE (in_file,linebuf);
    i dont know how to assign this get_line function to text item
    pls help me in this regards,

    Simply write:
    in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
    TEXT_IO.GET_LINE (in_file,linebuf);
    :block2.t1 := chr(10)||:block2.t1||chr(10)||linebuf;
    chr(10) --> is for new line character

  • I need to read Pages files but  I can't install Pages on osx 10.6

    I  need to read Pages files, but I can't install Pages because I have OSX 10.6.  Is there some version that will work?

    You can get iWork 09 on the net. You haven't had Pages before? Who is sending you Pages documents? Ask them to export the document to Word or Rtf and you will be able to read the documents in TextEdit, which you have on your computer

  • How to replace a native file without deleting it?

    I was wondering if anyone can let me know to replace a native file without deleting it.
    Thanks
    Kalyan

    John
    Thanks for replying. Ok checking in a new revision is not an option. This document belongs to a plant. They have two revisions. One revision is released and other in Genwww. We have identified the issue which has a problem which has links that do not work. So people at plant do not want to check in a new revision as it goes through a 3 step workflow and it involves approvals etc. So best option here is to replace a native file and have the same approvers as what were there for revision 1. Would batch import work? If it does, how would it?
    Thanks
    Chetan

  • Picking file in sequence/Queuing   in  sender SFTP adapter.

    Hi Experts,
    I am using SFTP adapter in sender side, it has no option of quality of service ( EOIO)  and queue name as we have in  FTP adapter configuration .Is there any  predefined  module provided by Sap which i use in the modules Tab in communication channel configuration to get the functionality of queuing ? just like we use  strictXMlto plain bean etc.
    I have 3 files which needs to  proccess in a sequence one after another in order.I CANT USE BPM or Even FTP because of Security reasons.
    please share you ideas.
    Regards,
    Anika

    Hi all,
    I have tried using AF_Modules/DynamicConfigurationBean in module tab present is the sender SFTP adapter with the attribute qualityOfService.
      parameter name                  Parameter value
         key.0                         insert http://sap.com/xi/XI/System/Messaging  qualityOfService
        value.0                        ExactlyOnceInOrder
    But in Moni i dont see the 3 messages didnt go in the same queue.But when i double click and open the dynamic configuration present in the soap header section i can see the values which i given in the module parameter.
    Is there any way i can change the quality of service to EOIO at runtime ? how to change the default EO to EOIO.
    Regards,
    Anika

  • Flat file to XML in SAP SFTP adapter

    Hello All
    I am trying to convert flat file to xml using SAP SFTP adapter.
    Flat File is like below:
    AABEN;20141106;20141106;45;0.00
    AABOL;20141106;20141106;45;0.00
    ABGRI;20141106;20141106;45;0.00
    ADDEA;20141106;20141106;45;0.00
    ALADA;20141106;20141106;45;58.43
    AMSCH;20141106;20141106;45;0.00
    ANOLV;20141106;20141106;45;0.00
    ANROY;20141106;20141106;45;0.00
    AVMCD;20141106;20141106;45;0.00
    Message Type structure I created like below
    In Server SFTP adapter in Module tab I am using "AF_Modules/MessageTransformBean" and conversion type ="StructPlain2XML"
    I am getting error = "Error: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) "
    I am not using any key field then please let me know how to overcome this issue.
    I searched on SDN but did not get any perfect answer.
    Thanks
    Dheeraj Kumar

    Hello Dheeraj,
    Thanks for your reply. I created a new discussion,
    Flatfile to XML
    Thanks well in advance for your help!
    -Satish.

  • Record into the middle of an existing file without deleting

    Is it possible to record into the middle of a .wav (or any format) file without audition recording right over the existing file? Is there an equivelent of using the Insert toggle in Word?

    Duane_Whitcomb wrote:
    Is it possible to record into the middle of a .wav (or any format) file without audition recording right over the existing file? Is there an equivelent of using the Insert toggle in Word?
    Okay, well let's try answering the question you actually asked...
    The answer is yes - although there's a constraint (as you've discovered...). If you pick a section in the middle of a file, and insert silence into it, you have an extra chunk of file, the length of which you can determine when you create it. Now, if you leave this section highlighted, and hit 'record' then you will be able to record only over the highlighted section.
    So the constraint is that you have to define the time you want in advance. Usually that's not a problem - just pick a bit more than you'll need and trim out what you don't use afterwards.

  • How to sync pdf  files without deleting existing ones

    Hello Everyone,
    I am new to the apple world and i recently bought an iphone 5 and an ipad mini. i am loving using them but i am facing a problem everytime i try to sync media. whenever i upload new stuff its automatically deleting the existing stuff. how do i upload new stuff ( media and pdf's) without deleting the existing ones ??
    NEED HELP ASAP !!!
    Thank you.

    "Upload"? What does that mean to you? Syncing form iTunes? Is that what you mean? If it is what you mean, you need to select all of the content that you want to sync by setting sync preferences and once you do that, your media should not be deleted every time that you sync.
    However if you are referring to Photos as media, Yoy can only sync one folder of photos from your computer at a time. Of you switch to another photos folder, the existing photos on the iPad will be erased.
    So if you would explain exactly what you mean and what you are doing, it will be easier to offer a solution.

  • Reading Outlook files without Outlook

    Hi, I'm looking for recommendations for alternative software for Outlook.  I don't have it, but I receive Outlook files I need to read.  Are there any viable alternatives to Outlook to access the files?  Thanks!

    Stalfos wrote:
    I want to be able to open up text files in Java without having to specify the encoding for the files that I'm going read, because I have no idea which encoding they will use.
    This is your problem. If you don't know what encoding the text is stored in, then the chances that the default encoding used to read it will be correct are slim.
    But even when specifying UTF-8 to be encoding of the file to read, it doesn't work correctly:There are many different character encodings, and most of them don't overlap. Anything above 127 usually causes problems.
    FileInputStream fileIS= new FileInputStream("somefile.txt");
    Reader reader = new BufferedReader(new InputStreamReader(fileIS, Charset.forName("UTF-8")));
    EVERYWHERE I look, ppl are using these codes! But it doesn't work, some characters (such as the Euro sign) are displayed as squares.The problem isn't with the code, it's that the file you're reading isn't using an encoding that's compatible with UTF-8. Assuming that using UTF-8 should work for all encodings is like assuming that someone who can read Chinese should be able to read a book written in Spanish or Greek. It doesn't work that way.
    However, I want to be able to read not only UTF-8 files but anything that Java supports. Any ideas?You need to know what encoding your files are stored in, period. There are a few ways to guess what the encoding is, but they're only reliable for a small set of encodings.
    You don't seem to truly understand what character encodings are, or how to use them, so read this:
    The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
    http://www.joelonsoftware.com/articles/Unicode.html

  • Unable to read resource files without fully qualified file names

    Hi,
    I have installed 9iAS and trying to read a few resources in the OC4J container. A few points to
    note :
    1. The <library> element in server.xml (global and
    instance specific) as well as in orion-application.xml
    can seem to only scan for jars/zips.
    2. Also we are using the Thread specific classloaders as in doc :
    http://otn.oracle.com/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf
    The issue is that so long I pass the fully qualified file name for the resource, I can read the resource. However, I am not able to find a way to include the "resource directory" in the classpath of 9iAS (global) or OC4J instance and read the resource file with just the file name. So, the following code works only when the filename has the fully qualified name for the resource file (Like F:\install\some_dir\file.txt).
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    inStream = cl.getSystemResourceAsStream(fileName);
    Can someone provide me with some pointers to how I can include resource directories in the classpath ? Any help will be appreciated.
    Thanks,
    Krishnendu

    Hi,
    Thanks for your response. Presently your solution is what we already have in place. Most of our properties are stored in a .properties file. However for all other application servers (sun one apps server, websphere, weblogic, tomcat), the classloader can read these properties without the fully qualified path but for oc4j; the code breaks.
    So, even if I change my installer to hardcode the specific property to have the fully qualified file name, I would have written some code specific to OC4J that is generic to all other containers.
    Krishnendu

Maybe you are looking for

  • Assigning javascript variable to java variable??

    I'm working on a web app, and part of it is form to add/update customers information. What my problem is I have all the cities of the US and Canada in a database and was using javascript to load the cities depending on which province/state is selecte

  • HT2305 How to get iPod touch generation 1 3.1 software update

    I have a iPod touch generation 1 and I am wanting 2 update the software from a 2.2 to a 3.2

  • Display of Browser and Fullscreen

    Hi, I'm on a MacBook with an external monitor connected to it. I want to display the Browser in the MacBook and the fullscreen picture at the external monitor. The MacBook is the first display and contains the dock bar. How should I configure the set

  • Filling in PDF forms from web forms

    I have acrobot pro, and can build PDF files. What I don't know how to do is build a web form that'll fill in PDFs, and then make a copy to the server, or email the pdf to the person who filled in the form. What forum is the correct place to ask this

  • I cant connect my iphone to mac

    i tried to connect my iphone to mac and xp, but it only charges the phone,,, the iphone doesnt appear in the itunes nor in any other software.. please help. i tried a few solutions such as reseting my iphone, reseting the computer, charging the phone