File payload is empty

I'm using an FTP adapter to fetch a file. This is to be passed on to another service for processing the contents. Both the FTP Adapter and web service payloads are defined using the same schema
1) I put a mediator in between the two components and had a transformation to take the data from the FTP Adapter and send it to the web service.
Even though I can see the FTP Adapter read the file successfully i.e. I can view the contents of the file as part of the payload the result of the transformation is null. The input element for the web service contains no data.
2) Using BPEL the Transformation still fails.
Using an assign I can copy the payload to the body section of the input element for the web service. However even though this now looks like it has gone through successfully when I look at the contents of the composite behind the service I can see the incoming payload has data but again any operations on that payload fail with the system telling me the data is null. This is a service I can successfully call from soapUI.

The targetNamespace for the incoming schema for the FTP adapter needed to be removed as pre this link
http://soacrux.blogspot.co.nz/2010/12/processing-xml-input-without-namespace.html

Similar Messages

  • Receiver file adapter creates empty files, Empty-Message Handling SP19

    Hello,
    We have just upgraded the system to SP19.
    One of the new features is that it should be possible to determine how XI messages with an empty main payload are to be handled in the receiver file adapter.
    If the parameter Empty-Message Handling is set to 'Ignore' no file should be created if the main payload is empty. In our case an empty file (size 0 kb) is still created even though the main payload is empty and the flag is set to 'Ignore'.
    Has anybody experienced the same problem?
    //  Best regards  Hans

    This should work:
    Use your own adapter module that parses incoming message and checks if it has any record sets in the document. If it does not have any record sets, then set the message to empty and then give this modified message to File receiver.
    For example, see the example code below:
    Module imports..
    Audit log import..
    DOM imports/SAX imports..
    public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
              try {
                   // get the XI message from the environment
                   Message msg = (Message) inputModuleData.getPrincipalData();
                   AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
                   Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"RemoveRootTag: Module called");
                   XMLPayload payLoad = msg.getDocument();
                   Document doc = parseXmlFile(payLoad.getInputStream());
                   if(doc != null){
                        if(!doc.getDocumentElement().hasChildNodes()){
                             Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "Document is empty!!");
                             payLoad.setContent("".getBytes());
                             msg.setDocument(payLoad);
                   // provide the XI message for returning
                   inputModuleData.setPrincipalData(msg);
                   } catch (Exception e) {
                   // raise exception, when an error occurred
                   ModuleException me = new ModuleException(e);
                   throw me;
                   // return XI message
              return inputModuleData;
         private Document parseXmlFile(InputStream xmlpayload) {
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setValidating(false);
                   //        Create the builder and parse the file
                   Document doc = factory.newDocumentBuilder().parse(xmlpayload);
                   return doc;
              } catch (SAXException e) {
              } catch (ParserConfigurationException e) {
              } catch(IOException e){
              return null;

  • HT1526 I can't delete any files, can't empty the trash bin, can't open my iTunes. Safari isn't working properly either. I keep getting the error message -50 when i try to delete anything...HELP!

    I can't delete any files, can't empty the trash bin, can't open my iTunes. Safari isn't working properly either. I keep getting the error message -50 when i try to delete anything...HELP!

    Hello, not too helpful, but...
    enum {
      paramErr                      = -50,  /*error in user parameter list*/
    Usually means a bvad or unacceptable Charachter in a File or Folder name...
    http://support.apple.com/kb/TA20831
    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html
    Open Console in Utilities & see if there are any clues or repeating messages when trying to open Safari or iTunes.

  • File adapter with empty files!

    Hi guys,
    My scenario is: File -> XI (BPM) -> JDBC
    Under BPM I have a fork with two parallel receivers correlated and two sender file adapters for that. Those senders also have file conversion (.seq file to XML).
    My problem is: in case of files coming empty, is it possible that senders file adapter generates error during file conversion? And/or generates errors during correlations?
    If so, "I wouldn’t like", because after receive these two files I have a switch to check if the file(s) coming empty and a control step to terminate the process in case of true. But this only works if no errors have occurred on the earlier steps!
    At this moment I can’t test it, so I’m asking If anyone has faced an issue like this one?
    Thanks in advance,
    Ricardo.

    Hi,
    Which SP are you on?
    Before Sp19 on XI 3.0 and SP10 on Pi, Empty Files are ignored by XI. The file adapter picks the file and if it is a empty file ( a zero byets file ) the file does not create a message at all for the file.
    From Sp19, the file adapter has options that allow you to decide how to process the empty file. You can create an error message etc.
    Regards
    Bhavesh

  • File adapter - delete empty/small files

    Hi, are there any way to configure the sender file adapter to delete and not pick up empty files or files with, say, max. 4 bytes of size?
    Thanks!

    hi Rune,
    if the file is <b>empty</b> it will be deleted
    in standard (with the file adapter) 
    no need to do anything
    and it will not be processed by the XI
    if you want to check for <b>small files </b>you can use this approach:
    /people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module
    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>

  • DME Dowload file error "FILE SPECIFIED IS EMPTY"

    Hi Guru,
    I have run  Payment program and i have generated payment medium for flat file also done all the config settings to generate Payment medium.It has created data medium for the payment run and found the entry.
    When give download in DME admistration, It throughs message like "THE FILE SPECIFIED IS EMPTY"
    Can any one suggest me any solution.
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Sep 23, 2009 2:17 PM

    Hi,
    did u solve this problem?? how??
    thank´s
    Edited by: Anderson Martins on Nov 28, 2011 7:01 PM

  • My CC Cloud files directory is empty but Creative Cloud says 17GB used of 20GB

    My CC Cloud files directory is empty but Creative Cloud says 17GB used of 20GB
    How can i get my unused space back.
    Regards Matthijs

    Please check if some files are archived.
    > https://creative.adobe.com -> login
    > Select the Archive page option by selecting the trash can icon in the upper-right corner of the files page.
    > Select the files to delete permanently and click the Trash icon
    > In the confirmation dialog, click Permanently Delete.
    http://helpx.adobe.com/creative-cloud/help/sync-files.html#

  • DME Error in downloading file Like THE FILE SPECIFIED IS EMPTY

    Hi Gurus,
    I have run  Payment program and i have generated payment medium for flat file also done all the config settings to generate Payment medium.It has created data medium for the payment run and found the entry.
    When give download in DME admistration, It throughs message like "THE FILE SPECIFIED IS EMPTY"
    Can any one suggest me any solution.

    Hi,
    did u solve this problem?? how??
    thank´s
    Edited by: Anderson Martins on Nov 28, 2011 7:01 PM

  • I am trying to open space in my macbook hard drive, so I deleted files and after emptying the trash bin the amount of Gigs didn't increase, why? Where can I go and delete those files?

    I am trying to open space in my macbook hard drive, so I deleted files and after emptying the trash bin the amount of Gigs didn't increase, why? Where can I go and delete those files?

    Did you do a secure empty trash? SHIFT COMMAND DELETE, they will be over wriiten. Are you deleting docs as they aren't much space, videos,pictures,music use much more space.
    You can move those fiels to an external "archive" drive to save them then delete them from your internal drive.

  • I deleted all my music files and then emptied the trash.. I didn't know that I wouldn't be able to play those songs in iTunes anymore.

    I deleted my music files and then emptied my trash bin and later realized that I can't play the songs in iTunes anymore if the files are delted. Is there anyway I can recover all the files?

    1) If you bought them from Apple you canprobably download them again.
    2) If you back up your computer as you should, they will be on the backup.
    3) If you stop using your computer this instant (because as you use the computer it overwrites deleted files even if you have lots of space), buy recovery software ($100+), there is a  chance you can recover some of them, though they may have lost filenames and will be in quite a mess.

  • How do I print out the Characters and the Pitch when the File menu is EMPTY in Adobe Story CC plus?

    In Adobe Story CC plus I am unable to print anything since the File menu is empty (doesn't pull down). I am using the latest version on an iMac 27" i7 computer.

    Hi!
    To print out an email, first click on the email from the inbox. Now that you're looking at the email viewing pane, you can click "More" > "Print" (as seen in first image below). It will print the email.
    To find the sender's address, click on the sender's name (as seen in second image). A menu containing the address and other options to take will pop up. Mousing over the sender's name also shows the address.
    <hr>
    I hope that solved your problem!
    <i>If it did, would you please choose this answer as your solution? It would help other Firefox users to find help on the forums faster and more efficiently. Thanks!</i>
    And of course, feel free to post back if you need more help! You should contact Yahoo! [https://io.help.yahoo.com/contact/index?page=home&locale=en_US customer support] if you have further questions regarding their products, though; they'd be most able to quickly provide assistance. :)
    Happy browsing!

  • Can I get my files back after emptying my trash

    can I get my files back after emptying my trash

    Try DataRescue3.    You can download a demo that will scan your drive and tell you what it finds.  If it finds deleted files that can be recovered, you can purchase the app and recover the files.   I have used it, and it works great.
    Note: when you empty the trash, the files are not actually erased, the pointers to the files are simply deleted from the disk directory/catalog.  As long as the actual locations of the files are not overwritten by something new, the files are usually recoverable.  So, the best thing to do is not save anything new until you have recovered what you just deleted.
    Further note: if you did Secure Empty Trash or Erase Free Space after deleting files, then the deleted files are actually overwritten with 0's and they are not recoverable.

  • When saving an downloaded pdf-fil, the saved file is corrupt (empty?) and can´t be opened. Happens all the time nowadays, never before. Its a mess. Please advice.

    When saving an downloaded pdf-fil, the saved file is corrupt (empty?) and can´t be opened. Happens all the time nowadays, never before. Its a mess. Please advice.

    Hi Melbus_SE,
    Are you downloading files from your Acrobat.com cloud storage? If so, what browser are you using, and are you on Mac OS or Windows? Has something changed on your system since you were able to download/open PDF files successfully? What version of Acrobat or Reader are you using to open these files?
    Sorry to ask so many questions, but your answers will help us get to the bottom of this issue.
    I look forward to hearing back from you.
    Best,
    Sara

  • All my files folder suddenly empty, what to do?

    all my files folder suddenly empty, what to do?

    Kiara19,
    What do you see in Finder when you try to open such a folder. If you see a big blue folder icon, then there is something mixed up with your user privileges.
    Highlight the folder, and press CMD+I to get the info window.
    At the bottom of that window is a section called "Sharing & Permissions". In there you'll see some users and the Privilege associated with that user. If you have the Privilege of 'Read only' then you need to change this to 'Read & Write'.
    To do this, click on the closed lock-icon at the bottom right of the info window. You'll be asked to enter your administrator username and password (mostly these are the same as your login credentials). After that, you can change the privilege of the user to 'Read & Write'.
    Before closing the info window, also tick the gear-icon on the bottom of the info window and select 'Apply to enclosed items...'. Depending on how many files and subfolders there are in this folder, it might take some time to change all privileges.
    After all changes are done you can close the info window, and all your files should be visible to you again.
    I hope this solved your issue.

  • XML Validation: ignore non-XML-Header in XML-file(payload): any solutions?

    Dear Experts,
    after I finally managed to configure the XML Validation, we're facing the next problem:
    The payload of the XML files looks like that:
    Abcdef#ABCDEF
    AbcDef#123
    <?xml version="1.0" encoding="UTF-8"?><Document xmlns.....
    as you can see, there's a header which is necessary. The XML Validation works fine if the header is removed manually for testing. If the header is not removed, the validation is not possible ("Content is not allowed in prolog.")
    Is it possible to realise the validation WITH that header? Can I tell SAP PI to ignore the header? Or make any changes to the XSD file?
    Thanks alot!

    Hi Armin,
    Armin Kern wrote:
    > After leaving SAP PI, those 2 lines have to be in that exact place (before the XML part) for further processing. Just deleting it wouldn't be enought. Does the complex design you mentioned complay with this requirement?
    You can put it into the message instead of deleting. And rebuild the "header" in the second step. So you can fullfill the requirement. As mentioned before: The design is complex, this will lead later on to problems. Any change will be difficult, as another developer had to read a long documentation.
    An alternative would be to do all with one interface mapping (without validation):
    1. ABAP / Java mapping deleting the "header" (put it to memory)
    2. Messges Mapping 1:1 each field (will fail in case of wrong format and act as validator)
    3. ABAP / Java mapping restoring the header
    4. Alert will be raised in case of an error (to get the result of the validation)
    Armin Kern wrote:
    > I also thought about splitting the message, deleting those 2 rows in one of the messages, sending this one message to PI again, validate it and if it is correct, send the second message (without mapping) to the final destination. No idea if that is possible at all..
    As well possible. You would need a virtual receiver for the first message, which is sending back a response. For example a servlett, a proxy or a RFC module. In that design you put some logic to the sender, what is actually not bad. But if you do so, why you dont validate there as well (for example with Java)? It would make your design much easier..
    Regards,
    Udo

Maybe you are looking for

  • Can you scale a predefined video controller skin in flash

    Hello, I have a question? Is it possible to modify the size of the predefined skin for flv. What I mean is that I want to scale the predefined play/pause controller in the flv. Is it possible to do that. Thanks

  • How to save an edited PDF in Acrobat Pro without any compression

    Hi, I just edited an existing PDF in Acrobat Pro 9 - actually I inserted some high resolution images in TIFF via the Touchup tool. What do I have to do to save it without any compression of the TIFFs - I tried a lot, but the outcome is always compres

  • IPad connected to SXGA projector aspect ratio problems

    I have been using my iPad2 with Apple's VGA adapter to project Keynote presentations and more generally mirror the iPad2 weekly since I got the iPad. I've done this on a range of projectors around the world, and it has worked wonderfully until now. I

  • GRC AC10 RAR :"Ignore Critical Roles/Profile" option not available in

    Hello Gurus, I have configured RAR and the reports are working as usual , but i observed that i could not see two things 1) Option to select "IGNORE CRITICAL ROLES/PROFILE" during Role/User ANALYSIS under "Reports & Analytic" tab. I checked in SPRO>G

  • Fixed length field in conky

    Please note the "Net: 271B " in the second line on conky. This screenshot was taken when internet was almost idle. When the internet speed increases to something like 250Kbps, the while second line shifs by 1 or 2 pixels, resulting into the movement