PI needs to obtain a zip file via FTP using the File adapter

I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
Regards,
Raul Alvarado

Hello Raul,
you can do it in futher way ...
pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
@ then Use another sender communication channel to pickup all these text file .
for further clarification you can use these links also. -
Process txt files in zip file
Accessing File using FTP from Java Mapping
File Sender Adapter with FTP protocol
BR
Raj

Similar Messages

  • Problems uploading big files via FTP and downloading files

    I've been having problems uploading big files like video files (.mov 12MB) via FTP to my website (small files like .html or .doc I can upload but it takes longer than usual). I'm using Fetch 4.0.3. as FTP. Same problems when downloading files via Bit Torrent. I recently moved to Spain, since then I seem to have the problem. But my roommate with a PC doesn't have that problem. Connecting to internet with Ethernet cable also didn't resolve the problem. I also tested it from a Starbucks coffee connecting to Internet from there but still couldn't upload that 12MB file to the FTP. The security settings for firewall are set to "allow all incoming connections". I didn't change any of my settings so I don't know what the problems could be. I have a MacBook Pro, Mac OS X (10.5.7) Any suggestions? Thanks!

    Welcome to Apple Discussions!
    Much of what is available on Bittorrent is not legal, beta, or improperly labelled versions. If you want public domain software, see my FAQ*:
    http://www.macmaps.com/macosxnative.html#NATIVE
    for search engines of legitimate public domain sites.
    http://www.rbrowser.com/ has a light mode that supports binary without SSH security.
    http://rsug.itd.umich.edu/software/fugu/ has ssh secure FTP.
    Both I find are quick and a lot more reliable than Fetch. I know Fetch used to be the staple FTP program, but it grew too big for my use.
    - * Links to my pages may give me compensation.

  • Urgent : Help me Upload a file via FTP using URL

    Hi
    I am having a problem with an error (The system cannot find the file specified)
    The files FTPPut.java and TESTING.txt are both in /src directory.
    import java.net.*;
    import java.io.*;
    public class FTPPut {
         public static void main(String[] argv)throws Exception{
         int BUFFER = 1024;
         URL url = new URL("ftp://ftp.scit.wlv.ac.uk/pub/");
         File filetoupload = new File("TESTING");
         URLConnection urlc = url.openConnection();
         byte data[] = new byte[BUFFER];
         FileInputStream fis = new FileInputStream(filetoupload);
         BufferedInputStream bis = new BufferedInputStream(fis, BUFFER);
         OutputStream os = urlc.getOutputStream();
         int count;
         while ((count = bis.read(data, 0, BUFFER)) != -1) {
         os.write(data, 0, count);
         System.out.println("uploaded sucessfully...");
         bis.close();
         os.close();
    Exception in thread "main" java.io.FileNotFoundException: TESTING (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at FTPPut.main(FTPPut.java:11)
    Edited by: AceV on Jan 10, 2008 7:28 AM

    import java.net.*;
    import java.io.*;
    public class FTPPut {
         public static void main(String[] argv)throws Exception{
         int BUFFER = 1024;
         URL url = new URL("ftp://ftp.scit.wlv.ac.uk/pub/");
         File filetoupload = new File("TESTING");
         URLConnection urlc = url.openConnection();
         byte data[] = new byte[BUFFER];
         FileInputStream fis = new FileInputStream(filetoupload);
         BufferedInputStream bis = new BufferedInputStream(fis, BUFFER);
         OutputStream os = urlc.getOutputStream();
         int count;
         while ((count = bis.read(data, 0, BUFFER)) != -1) {
         os.write(data, 0, count);
         System.out.println("uploaded sucessfully...");
         bis.close();
         os.close();
    }

  • Firefox hangs when a file is uploaded using the file selection mechanism.

    A "not responding" condition occurs after about the third selection in the file selection mechanism when I upload or download a file.
    This problem also occurs with Thunderbird when I try to save an attachment and I want to specify a location. I have not noticed this problem on any other application. Window Explorer functions correctly.
    By File selection meachism, I mean the window that appears with the HTML statement <INPUT type="file">.
    This happenen every time when I use this mechanism although not always at the third level, sometimes at the second level, sometimes deeper.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js [3] files with a number and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js
    * [3] http://kb.mozillazine.org/Multiple_profile_files_created

  • FTP using GUI_UPLOAD file.Its showing error like 'FILE NOT AVAIABLE''.

    Hi Friends,
    I am calling a file by FTP using GUI_UPLOAD file.
    Its showing error like 'FILE NOT AVAIABLE''
    Below is my sample code.
    I_FILE = 'FTP://10.121.6.61/IPSM/FILE1.TXT'.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = I_FILE
        FILETYPE                      = 'ASC'
      TABLES
        DATA_TAB                      = IT_TABLE.
    Pls suggest.

    Hi ,
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = '
    172.19.125.2\flat\G1\meeting.txt'
      FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = '#'
    TABLES
        DATA_TAB                      = itab
    Try this .
    With Regards ,
    M.Sreeram .
    Edited by: sreeram manoharan on Feb 11, 2010 12:47 PM

  • How to avoid partial files via FTP from XI to an external server?

    Hi all,
    I'm working in an interface where XI sends a big file (greater than 1MB) via FTP to the client. The client needs an empty file to be created once the file has been fully sent from XI, with format <b>.ok</b>, so that their server can trigger their interface to process the file.
    They want this procedure to ensure no partial files are processed.
    Could someone please help me out on how to do this in XI.
    Thank you.
    <b>Juan Carlos</b>

    HI rajendra
    look into this
    file.checkFileModificationInterval=<msecs>
    Use this parameter to define a length of time (default value: 0) for the file/FTP adapter to wait after the file has been read to see if the file length changes. If this is the case, the system repeats the read procedure. This is useful if the files to be imported by the adapter are generated dynamically without being locked on the operating system level (for example, files received from FTP servers). Without this workaround, the file/FTP adapter cannot recognize whether the generation of the file is complete in such applications with operating system functions.
    regadrs
    nisar

  • 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

  • Hi i have an iphone 4 that needs to be updated but my phone is using the cellular company simple mobile via gsm chip and my phone isnt jailbroken will this mess up my phone.

    hi i have an iphone 4 that needs to be updated but my phone is using the cellular company simple mobile via gsm chip and my phone isnt jailbroken will this mess up my phone.

    If your iPhone is truly unlocked - purchased as unlocked through Apple
    or through wireless provider that sells unlocked iPhones or unlocked
    by a wireless provider, then the update should not mess up your iPhone.
    If your iPhone was jailbroken or hacked to change wireless providers,
    then the update will relock it to the original wireless provider if you are lucky
    or turn it into a useless brick if unlucky.
    Back up first to protect against glitches or other problems.

  • Problem on upload file via ftp..

    Hi afternnon,
    Can have people tell me.....what is "Can't open data connection" on my upload file via ftp ????how to solve it??
    regards,
    mike

    nbelford wrote:
    I cant find any way to upload the CSR either/ I dont think it exists yet. Can someone please let us know how far away it is. Same applies to the provisioning profile. I cant see any evidence of this yet either.
    I am presuming that without these key pieces of the puzzle one cannot deploy to the iPhone. Can someone from Apple confirm (or correct me)
    I've emailed Apple asking for clarification but I haven't heard back yet. I imagine we'll all learn what's going on at about the same time. And yes, until you get a certificate you cannot upload your apps to the iPhone (within the SDK rules).
    Randy

  • How do I scan a photo to a file and then send the file as an attachment via email.

    How do I scan a photo to a file and then send the file as an attachment  via email.

    All of this depends largely on what printer /software you have, which Email client you use and to some extent which OS you are running.
    Most HP printers have HP Solution Center which is used to set up scanning,choosing where to save,etc. Once a file/photo is scanned and saved to the folder, open the folder.Select the file and at the top of the window should be the option to 'Email'.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • I need to create an action or script to save the file with the name of the selected layer

    I need to create an action or script to save the file with the name of the selected layer (not including the hidden layers, but including those visible).
    How could modify the script: 'Layer Comps To Files.jsx' to get the result?
    Warning: I do not need to export all layers as files.
    Who can help me?
    THX in advance

    Versione in Italiano (Further down the English version)
    NB - Nella versione inglese ho messo tutte le immagini dei menu in italiano.
    Versione per Mac, ma credo sia identico per Windows.
    Spiego passo passo cosa ho fatto:
    - Ho creato un file esempio con tre Livelli, salvato sulla scrivania e ho chiuso il file.
    - Ho aperto il file e selezionato il Livello al centro per iniziare a registrare una azione che ho chiamato: Save with Name of Selected Layer
    - Nuova azione
    - Dare il nome e premere Registra
    Ora salva…
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Ancora una volta Menu --> Livello... --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello --> Ordina --> Dietro
    - Menu --> Livello --> Unisci sotto
    - Menu --> Livello --> Unisci visibili
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello - Nascondi Livello
    - Menu --> Elimina --> Elimina livelli nascosti (press -Yes-)
    - Menu --> Livello --> Nuovo --> Livello... Inserisci questo: 'Move this to the trash' e premi ok
    - Menu --> File --> Script --> Esporta Livelli in File... (Nella finestra che si apre scegliere l’opzione che si desidera, ma togliere il prefisso del nome) e premere -Esegui-
    - Selezionare il pannello Storia cliccare su Elimina premendo -Si- ogni volta che si apre la finestra di dialogo (Ripetere 8 volte questa operazione sino ad arrivare nella storia alla condizione di partenza. Ho visto che è meglio di Ripristina -F12-)
    - Fermare la registrazione.
    A questo punto, mandando in esecuzione questa Azione, ho raggiunto parzialmente l’obiettivo perché i file così creati mantengono, purtroppo, dei prefissi numerici per evitare probabilmente la sovrascrizione di file (credo senza avviso) nel posto dove vengono creati.
    Per ottenere l’obiettivo occorre un nuovo passo ed a proposito di questo riferisco quanto segue:
    ATTENZIONE - L’operazione descritta qui di seguito deve essere fatta su di una copia del file, per cui:
    - Duplicare il file,
    - Spostare l’originale in altra cartella
    - Lavorare sul file duplicato.
    mi riferisco a questo...
    ATTENZIONE - Questa modifica è effettuata a proprio rischio e pericolo ed il sottoscritto non si assume alcuna responsabilità su quanto venga fatto soprattutto da mani inesperte.
    ATTENZIONE - Questa modifica sovrascrive qualsiasi file che abbia nome uguale al layer che viene selezionato più l’estensione del file naturalmente.
    Comunque la modifica è banalissima e a portata di chiunque.
    Procedere così:
    - Chiudere Photoshop
    - Aprire (nel percorso specificato dall’immagine) il file “Export Layers to Files.jsx” (Export Layers To Files.jsx 1.0.0.16) con un editor di testo puro.
    - cercare la stringa (dovrebbe essere in riga 1029)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4);
    fileNameBody += "_" + layerName;
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += layerName;
    - cercare la stringa (dovrebbe essere in riga 1047-46)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4) + "s";
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += "";
    - salvare e uscire.
    - riavviare Photoshop
    - provare l’azione registrata facendo attenzione che il nome del layer non sia identico al nome di un file già presente altrimenti questo verrà sovrascritto.
    Domanda:
    Perché ho creato livelli che poi ho eliminato ecc.
    Risposta:
    Semplice per evitare errori di esecuzione delle azioni nel caso di operazioni con livelli mancanti o altro.
    Semplice... no?
    English version
    Mac version, but I think it's the same for Windows.
    First of all, I'm translating the actions that I made using the Italian version of Photoshop, you look at the position of the menu that I have chosen to do the work with other languages.
    I explain step by step what I did:
    - I created a sample file with three layers, saved to the desktop and I closed the file.
    - I opened the file and select the layer at the center to start recording an action that I called: Save with Name of the Selected Layer
    - New action
    - Give the name and press Save ( I think it is so in English )
    Now save ...
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Once again Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - > Arrange (order) -> Behind
    - Menu -> Layer - > Merge Down
    - Menu -> Layer - > Merge Visible
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - Hide Layer
    - Menu - > Delete - > Delete hidden layers (press -Yes- )
    - Menu -> Layer - > New —> Layer… Enter this: ' Move this to the trash ' and press ok
    - Menu -> File - > Scripts -> Export Layers To Files... (In the window that opens select the option you want, but take away the name prefix) and press - Run -
    - Select the History panel and click Delete (on menu opened) pressing -Yes- every time when open the dialog box (8 times Repeat this step until you get into the story to the starting condition. Not use Restore -F12-).
    - Stop recording.
    At this point, by executing this action, I have reached the goal partly because the files created in this way remain, unfortunately, the numerical prefixes to avoid possibly overwriting of files (I think without notice) in the place where they are created.
    To achieve the goal we need a new step and thinking about this as follows:
    WARNING - The operation described below should be made on a copy of the file, so :
    - Duplicate the file
    - Move the original folder to another
    - Work on the duplicate file.
    WARNING - This modification is performed at your own risk and the undersigned assumes no responsibility on what is done mostly by inexperienced hands.
    WARNING - This change will overwrite any files with the same name as the selected layer plus the file extension of course.
    However, the change is trivial and within reach of anyone.
    Proceed as follows:
    - Close Photoshop
    - Open (in the specified path from the image ) file " Export Layers to Files.jsx " (Export Layers To Files.jsx 1.0.0.16) with a pure text editor.
    - Search for the string (should be in line 1029 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody = + "_" + zeroSuppress (i, 4 ) ;
    fileNameBody + = "_ " + layerName ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = layerName ;
    - Search for the string (should be in line 1047-46 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "_ " + zeroSuppress (i, 4) + "s" ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "";
    - Save and exit.
    - Restart Photoshop
    - Try the recorded Action, making sure that the layer name is not identical to the name of an existing file otherwise it will be overwritten.
    Question:
    Why I created levels which I then deleted etc..
    Answer:
    Simple to avoid errors of execution of the actions in the case of transactions with missing levels and other.
    Simple ... is not it?
    Sorry for my bad English...
    Thanks in advance for any hint.
    --->>> Please think about this... Adobe <<<---

  • Please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    Hi kevinv1987,
    It doesn't sound like the PDF was password protected (or Adobe Reader would prompt you for a password). Instead, it sounds like that file may be marked locked by your operating system. Are you on Mac OS or Windows? In either case, here are instructions for removing the lock icon from the file:
    Remove the Lock Icon from a Folder in Windows 7 (check Microsoft's website if you have a different version of Windows)
    On Mac OS, select the file in the Finder, and choose File > Get Info. Then, just deselect the Lock checkbox.
    Please let us know how it goes.
    Best,
    Sara

  • I need this file "How to Use the Content Conversion Module in JMS Adapter"

    Can someone send me this file:
    "How to Use the Content Conversion Module in JMS Adapter"
    I am not able to find it.
    Thanks
    Antonello

    pls refer guide
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-adapters/how%20to%20use%20the%20content%20conversion%20module%20with%20xi%203.0%20j2ee%20jms%20adapter.pdf
    Regards,
    Swetha.

  • Problem using the File Dialog Box in a Client/Server application

    I am developping a client-server application using Labview 5.1 . The application on the server acquires data from some instruments and saves it on file, while the application on the clients displayes such acquired data. For doing this I call some routines on the server via the "Open Application vi" (remote connection). All goes well except when I open on the server the "File Dialog Box vi" : in this case the application on the clients is blocked (is blocked the execution of the called vi on the server). Only when
    the File Dialog Box on the server is closed, the execution of the called vi on the server starts again.
    I need to use the File Dialog Box on the server, but I don' t want to stop at the same time
    the clients !!
    I need help for resolving such problem.
    Many thanks in advance !!!

    Hi!
    waldemar.hersacher wrote:
    "It seems that the VIs called by the clients are running in the user interface thread.
    A call to the file dialog box will call a modal system dialog. So LV can't go on executing VIs in the user interface thread."
    Are you sure? I think, that File Dialog, called by LabVIEW File Dialog from Advanced File Functions Palette doesn't blocking any cycles in subVI, which running in UI Thread. Look in my old example (that was prepared for other topic, but may be good for this topic too).
    2 linus:
    I think, you must a little bit reorganize you application for to do this. You must put your File Dialog into separated cycle. This cycle, of course, will be blocked when File Dialog appear on the screen. But other cy
    cle, which responsible for visualization will run continuosly at the same time...
    Attachments:
    no_block_with_file_open_dialog.zip ‏42 KB

  • How to upload site created with Dreamweaver via FTP to the iWEB server?

    Hi everyone,
    I recently created a site on Dreamweaver and want to upload the site, via FTP to the iWEB server. My questions are the following:
    1. What is the FTP host address?
    2. How do I connect to my website via FTP?
    Any help on the following questions will be much appreciated.
    Thanks!

    Hello Lauretta and welcome to the forum.
    You do not connect to iDisk via FTP. iDisk uses WebDAV. Also you do not need to manually upload the published files to iDisk as recommended buy others in this thread. Once the site and server is set up in DW you can publish and upload directly through DW.app Check out this post for more info.

Maybe you are looking for

  • Problem with window.close and window.open

    I am having two suspected Actionscript problems which only seem to be happening with Flash player 9 and later. BACKGROUND: I have a client who needs browser-launched swf files to play from a CD-ROM (I do not want to use the Flash projector).  These f

  • Does the "Mini DisplayPort to VGA Adapter" work with all Samsung tv models?

    Does the "Mini DisplayPort to VGA Adapter" work with all Samsung tv models?

  • Network drives: A SOLUTION

    OK, so far this seems to be working for me. My solution is based on this one, that someone linked to in another thread: http://www.infrant.com/forum/viewtopic.php?p=71742#71742 However, I failed at step one of that solution, as I have no USB drive. S

  • Is there a way to get the selection order for selectedProperties?

    app.project.activeItem.selectedLayers seems to be ordered by the selection order, but app.project.activeItem.selectedProperties (at least in Shape Layers) seems to be ordered by the stacking order. Is there a way to get the selection order for select

  • How to write this query to filter combination of few values

    Hi, I have a table CHIMM which is a transaction table and contains information of the vaccines given to a child. columns are: child_id, vacc_id, vacc_given_dt. I have to query for remaining vaccines. HEXA is a vaccine_id which is composite vaccine of