File Receiver - Writing files

Hi,
I have a scenario in which i have picked up 2 files using the file sender.
eg:
xi_input.xml     -
> main payload
xi_input.pdf      -
> attachment
When i use the File receiver adapter i want to write only the attachment to the targer folder.
Is this possible ?
Regards,
Vignesh

Thanks Bavesh.
I am also seding both the files to a SOAP rreceiver also.
In that case also I dont want the main payload to be transfered.
the fiel xi_input is only used 2 trigger the scenario.
In the case of SOAP receiver we dont have to do any swapping right ?
I really dont care if the main payload reached the destination.
Will the SOAP receiver adapter take the attacment and dump the main payload
Regards,
Vignesh

Similar Messages

  • Move to new computer, get "An error occurred while reading files or writing files to disc. The disc

    I tried to move my PE6 install and catalog to a new computer.  It was on a Dell Windows XP machine, and I moved it to a Toshiba Windows 7 (64 bit) machine.  I have always kept my photo files on an external hard drive.  My photo library is 50GB, 10,000 files.  Here is what I did.
    Copied the original PE6 install file to the Toshiba.  Installed but didn’t activate it.
    Copied the entire My Catalog folder to the proper Windows 7 location.
    Plugged the external drive into the Toshiba.  Made sure the same drive letter as before (E).
    Fired up PE6 on Toshiba.  Looked good in Organizer.  Everything seemed to be there, but I didn't try to make changes at that point.
    Deactivated PE6 on the Dell.  Activated on the Toshiba.
    Then I realized that it is not right.  I can edit Keywords and Rating stars on the pics, but not dates, captions or notes.  I get “An error occurred while reading files or writing files to disc. The disc may be full or there may be problems with the source media.”
    Only a fraction of the external drive is in use.
    I can access the files on the external drive with another app (Windows Photo Viewer).
    I tried Reconnect All Missing Files.  Somewhat ambiguously, it says “There are no files to reconnect.”
    In the properties in the Organizer for each picture are the proper file names and paths.  Folder view works fine in Organizer.
    I can put new files in the same external drive directories, import them into PE6, then edit them normally.
    What is the easiest way to get Organizer properly connected to my files?  I suppose I could reimport all the pics on the new machine, but I assume I'd lose some of my metadata.  So that is out of the question.
    Thanks,
    Bill

    Are you sure that file paths are correct? I say this because under XP they would have originally pointed to Documents & Settings/My Pictures whereas on W7 it will be User/Pictures, albeit you are using an external hd.
    Take a look at this knowledge base note on the correct procedure for back-up and restore.
    I think writing metadata to files for such a large catalog will be a thankless task.
    http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html

  • Error Message: An error occurred while reading files or writing files to disc...

    Why am I getting the following error: An error occured while reading files or writing files to disc.  The disc may be full or there may be a problem with the source media.  I am running PSE10 on a iMac using OS X 10.7.3, my Mac has a 1TB hardrive of which about 150GB is used.  I get this error when trying to delete a file out of the Organizer.  The software worked fine until I installed it on my laptop, also a Mac, and tried to share files.

    Hmm. What happens if you disable sharing, just as a test?
    I don't think you can share organizer photos that way, since your versions don't really exist as images, just as a set of directions to organizer for recreate that state of your editing when needed, and you can't run organizer on a network drive, which is pretty much what you're trying to do if you mean you have PSE installed on the other computer and are tryng to use the same catalog for both.

  • An error occurred while reading files or writing files to disc. The disc may be full or there may be

    Does anyone know why I get this error message in PSE9 on a mac computer?
    An error occurred while reading files or writing files to disc. The disc may be full or there may be a problem with the source media.
    I cant put titles on pictures or delete them from the hard drive, etc.
    Please help.
    Thank you!

    Okay. I would suggest going to your username>library>preferences and deleting everything that is anything like com.adobe.Elements Organizer.plist. You will have more than one of these, one with the version number and possibly one with UUID in it. Also delete any lockfiles with the same names. While you're in username>library, also delete any saved application states for the organizer or PSE from your saved states folder. Then repair permissions and try again.
    The username>library folder is hidden in lion. To make it visible, in the Finder click the Go menu and hold down the Option key. It will appear below the little house for your user account.

  • File receiver - Get file size

    Hi all,
    In my scenario, the message mapping is such that the target message may or may not have child nodes created depending on certain conditions. I am using file receiver channel to write this target message as xml file on another server.
    The issue I am facing is - suppose child nodes are not created, the target message has only root node, and nothing else. i.e. it is empty.
    But still the file gets written on destination, because file adapter doesn't seem to have intelligence to look into the payload. So I have to manually delete such 'almost-empty' files.
    Although PI 7.0 has feature of ignoring empty files, the file I am talking of is really not of 0 kb size, as it contains namespace and root node tag. It has very small size of 1 kb, this is fixed and thus the file is easily distinguished from other larger files which contain child nodes. File size is a parameter that can be certainly used as a key here, but don't know how.
    Does anyone have any idea on -
    1) How to check file size before file receiver adapter writes it,
    2) How to prevent such file from getting written, or
    3) run a script which can detect the file size and delete them periodically / or every time file receiver writes files ?
    Regards,
    - Shankar.

    Hi,
    We have an option of empty file handling in receiver file adapter..
    <i>      Select the Handling of Empty Messages:       Write Empty File
    An empty file (length 0 bytes) is put in the target directory.
           Ignore No file is put in the target directory.</i>
    But your case namespace and root node only are available you said.
    In this type of situations ..
    We can handle in the following way..
    If target side root node having the recordset node
    root
      recordset 0..unbound
         child1 0.1
         child2   0.1
    Then create a UDF
    map from left side one node -
    exists --- UDF ---to right side root node
    In UDF
    //handle business logic and
    ....ResultList.SUPPRESS.
    if your target side does not have any recordset type of structure then..
    In messages tab change the occurrences of msg to 0..unbound and use the above UDF.
    Regards
    Chilla..

  • Adapter file Receive - conversion file problem

    Hi everybody,
    In an adapter file receiver, I want to convert an XML structure to a "flat file".
    here is my xml structure
    <ns1:MT006_blabka>
      <RECORD>
        <LIGNE>TEST1</LIGNE>
        <LIGNE>TEST2</LIGNE>
      </RECORD>
      <FILE>
         <FILENAME>fichier.dat</FILENAME>
         <DIRECTORY>//server1/root/</DIRECTORY>
       </FILE>
    </ns1:MT006_blabla>
    and the text file I want to receive is
    <BOF>
    TEST1
    TEST2
    <EOF>
    The problem is with the paramter of conversion I use I receive
    <BOF>
    TEST1
    TEST2
    <EOF>
    I always receive an empty line at the end
    The record set define in conversion are "RECORD,FILE"
    in parameter i put
    RECORD.fieldSeparator      value :  'nl'
    FILE.fieldFixedlengths  value : 0,0
    My problem is to eliminate the empty line at the end of the file.
    Is there someone who can help me ?
    Thank you in advance for your collaboration.
    Regards
    Eric.

    Hi,
    You will have to modify your target structure from this
    <ns1:MT006_blabka>
    <RECORD>
    <LIGNE>TEST1</LIGNE>
    <LIGNE>TEST2</LIGNE>
    </RECORD>
    <FILE>
    <FILENAME>fichier.dat</FILENAME>
    <DIRECTORY>//server1/root/</DIRECTORY>
    </FILE>
    </ns1:MT006_blabla>
    To this
    <ns1:MT006_blabka>
    <RECORD>
      <Struct>
          <LIGNE>TEST1</LIGNE>
           <LIGNE>TEST2</LIGNE>
    </Struct>
    </RECORD>
    <FILE>
    <FILENAME>fichier.dat</FILENAME>
    <DIRECTORY>//server1/root/</DIRECTORY>
    </FILE>
    </ns1:MT006_blabla>
    use the content conversion as
    recordset structure = RECORD,Struct,File,
    Record.fieldSeparator = 'nl'
    Struct.fieldSeparator = 'nl'
    file.fieldFixedLengths =  0
    file.fixedLengthTooShortHandling = Cut

  • Changing time stamp format in the file receiver adapter file name

    Hi all,
    How can we change the standard date time stamp from
    filename_yyyymmdd-hhmmss-mil
    to
    filename_yymmdd_hhmmss
    i.e.,  I want "underscores" instead of "hyphens" and also I do not want the MilliSeconds.
    I read in the forums that I have to use the combination of variable substitution and mapping functions to do this, but not sure how exactly.
    Can the experts help me with this please?
    Many thanks.

    Hello Ramesh,
         You can make this possible using runtime filename creation using UDF.
    Please go though the below steps.
    Message mapping:  
    Create an UDF and include the piece of code that captures the Filename and Timestamp from source side via ASMA.
    Modify them according to our requirement by adding the <Timestamp> at the end of <filename> with _.
    Map the UDF to any of the top level node so that the modified filename will be available for the target communication channel
    UDF Code is:
    try {
    String filename    = "";
    String timestamp = "";
    DynamicConfiguration conf1 = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","SourceFileTimestamp");
    filename = conf1.get(key1);
    timestamp = conf1.get(key2);
    filename = filenametimestamp".xml";
    filename = filename.replaceAll( "-" ,"_" );
    conf1.put(key1,filename);
    return filename;
    catch(Exception e)
         String exception = e.toString();
          return exception;
    Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute that are required to be captured during run time. In our case File Name and Source File Time Stamp are required to be checked
    In the receiver communication channel Mention u2018 * u2018as File Name Scheme.
    Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute u201CFile Nameu201D which will carry the modified value in the UDF .
    i hope this will help you.
    Monica

  • File Receiver Adapter(File Content Conversion)

    Hi All,
    If i open my file using notepad after File Content Conversion i am seeing a BOX kind of Symbol after Every Row ..
    but the same file if i open using word i am not seening that BOX ,,and the file is perfect ..can any plz tell what is the reason ... ?
    i gave<b> filedfixedlenght & Endsaparator</b> only
    is that i need to add any thing in the File Content Conversion parameters...
    thanks
    shakif

    Hi Mohammad,
    If I am not wrong "Box kind of symbol" would be "Symbol" for end of the line(EOL).
    In win-word if you click on "Show/Hide tab" You will see same symbols.
    Does it makes any problem while processing file?
    Let us know more details.
    Nilesh

  • PSE 8 - How do I fix the error message: An error has occurred reading files or writing to disk...?

    Hello
    I am using Photoshop Elements 8 on Windows 7 (64 bit). I have all my photos stored on an external hard drive connected by usb. The photos were transferred onto the HDD from a Windows XP machine. I bought a new computer  so I installed Photoshop 8 and imported all my photos to the organiser from the HDD. I have also taken some photos yesterday which I have uploaded to the HDD.
    Now, when I want to delete a photo I check the box to say I want it to be deleted on the hard disk and I get the error message: 'An error has occured while reading files or writing files to disc. The disc may be full or there may bea problem with the source media.' This does not happen with the photos I uploaded yesterday, only the ones which were put onto the HDD from the XP machine.
    Please could someone help? I have tried the File>Catalog> repair and optimise functions. I have reinstalled the software. It still does the same.
    Thank you in advance
    Dave

    David GW wrote:
    The error message goes on to say, Please check your device settings or consult your device documentation regarding resolving writing errors. Which device do you think they are referring to?
    Sorry, but I would have thought that this was rather obvious! The only device capable of being written to under these circumstances is your CD drive; after all, it's a CD you are trying to create...
    You have two potential major causes of problems here. The most common cause of these difficulties is the disks themselves - you only need a batch with poor reflectivity to cause all sorts of read errors, so that's the first thing to try - using a different brand of disk to write to. The second thing you have to realise is that CD writers have a finite life - the lasers in them simply don't last for ever, and towards the end of their lives the power behaviour tends to be a bit erratic, and it tends to fall off somewhat - which causes the same sorts of errors, simply because the dye doesn't get evaporated efficiently. This causes mis-formed pits, hence the read errors. The only solution here is to install a new drive.
    When it comes to reading, commercial CDs have a much higher reflectivity than ones you write yourself, so often these will play whilst your own will fail - a common cause of confusion, this. But it's worth checking; if you get failures to reproduce all of the tracks from a commercial pressed CD, then almost certainly your drive is failing.

  • Com.sap.sql.DuplicateKeyException in file receiver channel

    Hi experts,
    I am currently testing the following scenario:
    xml file -> file sender ->file receiver -> csv file
    No mapping is used. Both channels are on the same PI 7.1 system.
    The transformation seems to work so far. The only problem I have is that my receiver channel does not post the message to the directory because of this error:
    Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id f167e134-145e-4b2c-2d47-e431b8b34fd8(INBOUND) already exists in duplicate check table: com.sap.sql.DuplicateKeyException: [200]: Duplicate key.
    Is it not possible to use file sender and file receiver in the same scenario? Thanks for any help.
    Best regards.
    Oliver.

    Hi André,
    I am using the test option so the message can be processed multiple times. Anyway, I also tried using deletion but I still get the same error. I also tried a completely new file but still no change. When I check the comm channel I see that there is always created a new message id and when I search the rwb it posts two entries. One from the sender step and one from the receiver step. Seems to be alright to me.
    Regards.
    Oliver.

  • File receiver : blank line at end of file

    Dear friends,
    we are using file receiver with file content conversion , tp : FTP
    The file has a flat structure & fixed length (no delimiters) :
    reordset parameters used- fieldFixedLengths
    each record is in a different line, but at the end of the records a blank line is inserted.
    (no endSeparator is used.)
    Can you pls advise hot to get rid of this extra blank line

    Hi Datta,
    I am not sure but you can try with follwing parameters...
    NameA.fixedLengthTooShortHandling Specify how you want the system to respond when column widths in the actual document exceed those defined in NameA.fieldFixedLengths. The following values are permitted: 
    ·        Error
    Error means that processing of the document is terminated.
    ·        Cut
    Cut means that a value is shortened to the maximum permitted length.
    ·        Ignore
    Ignore means that the system applies the value completely, regardless of it being too long. Subsequent columns are moved correspondingly.
    U can use ignore in your case.
    For more info. plz check
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    Regards
    Sachin

  • I cannot complete an installation of ITunes.  During the install, I receive the following error message:   Error writing to file: C:\Program Files\Bonjour\dns_sd.jar.

    I cannot complete an installation of ITunes.  During the install, I receive the following error message:
    Error writing to file: C:\Program Files\Bonjour\dns_sd.jar.

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • I receive the following error message when trying to install QuickTime for Windows "Error writing to file C:/Program Files/QuickTime/QTSystems/QuickTimeCheck.ocx. Verify that you have access to that directory."

    I recieve the following error message when trying to install Quicktime for Windows "Error writing to file C:/Program Files/QuickTime/QTSystems/QuickTimeCheck.ocx. Verify that you have access to that directory."  I just trying to get the latest version of iTunes.  Thanks

    "Error writing to file C:/Program Files/QuickTime/QTSystems/QuickTimeCheck.ocx. Verify that you have access to that directory."
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • File Receiver Adapter - Writing Attachments

    Hello Folks,
    i received a SOAP Message with some attachments. Now i want to write these files into a file system.
    No i have seen, that the file receiver adapter has no support for attachments. is there any solution for that?
    Thanks for answers.
    Best regards
    Robert

    Hi,
    I thought of creating files in the target with different format...   i think i understood ur query other way...
    Fine...
    U can do other way..
    Convert ur Attachments to XML first...
    Then Pass this XML to File adapter and recreate the Files in Target file adapter...
    I hope u can do in this way
    Babu

  • Filename for flat file using J2EE FILE FTP Receiver adapter

    Hi there,
    I am struggling to do the following:
    I have a J2EE File receiver that sends a file with a specific name to a FTP destination. I define the target filename in my graphical mapping using certain criteria and a incremental number. In my adapter I use variable substitution to select that value in the payload as the filename. Up to this point everything works fine.
    The problem is that I convert the payload to a flat structure using xslt before writing it out and because of that the adapter cannot find my value as defined in the variable I use for the name.
    Now, obviously if I move the xslt module after the CallAdapter module, the file won't be converted to a flat structure.
    Can anyone give me advice on how I can do the flat conversion <u>and</u> the specific filename from the payload?
    Thanks in advance,
    Johan

    Hi,
    Instead of using variable substitution, use adapter specific identifiers to set the file name in mapping.
    Ref:/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    Jai Shankar

Maybe you are looking for

  • Object params

    New to this but I have a flash image gallery on a site I'm working on. I want three images side by side which I have, but the images fade to the next image the same time. I want each of the three images to scroll independantly from each other at diff

  • Producer and Consumer Issue

    Hi, Do we need to consume all the portles of the producer from portal admin console? or is there a way to use the .Portal file directly as all the portlets of the producer are consumed already? Edited by: user8894463 on Dec 15, 2009 2:34 PM

  • Is it possible to register for global warranty online?

    I'm purchasing iPad 4 and iPhone 4S from a local reseller. His offering only a local warranty but have informed me that its possible to register for global warranty online. Please confirm

  • Flash Player (Safari Internet plug-in) (not responding)

    "Flash Player (Safari Internet plug-in) (not responding)" I've been getting this message about every 10-15 minutes for the last week. I've taken to just leaving my "Force Quit Applications" window open so I can kill Flash Player as quickly and effici

  • Problem with image rotation. Images are distorted.

    Here is the story: I import images. Some of the need to be rotated because the camera not always records rotation properly. So I rotate them in LR. Everything is fine so far. But when I want to edit the rotated file in PS (CS2) problems arise. Either