File copy with change of file type

I'm currently working on what seems like a simple file-to-file scenario. A file (without an extension) on server A has to be copied to server B. The name of the file on the target server should be the same as the file on the source system. Only change is that the file on the target system should get a .txt extension. After trying various options I'm stuck on the .txt extension.
I enabled File Name in Adapter Specific Message Properties on both the sender and receiver communication channels. With this option the file gets copied to the target server with the same name, but I cannot add the .txt extension. I also followed the instructions in this blog: https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2664. [original link is broken] [original link is broken] [original link is broken] Unfortunately, I don't see the file name in the payload of my message, which means I cannot use it in the Variable Substitution option of my receiver communication channel.
Does anyone know what I might be doing wrong here?
Edited by: Cheese2 on Jul 15, 2009 12:39 PM

use dynamic configuration. you can manipulate the file names very easily - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - in your case as per this blog all you need to change in the code will be;
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
ourSourceFileName = ourSourceFileName + ".txt";
return  ourSourceFileName;

Similar Messages

  • [svn] 3638: Changing the build order of swc file update with dita xml files .

    Revision: 3638
    Author: [email protected]
    Date: 2008-10-14 16:49:56 -0700 (Tue, 14 Oct 2008)
    Log Message:
    Changing the build order of swc file update with dita xml files.
    By default this would now happen during the checkintests target - so "ant clean main" shouldn't get affected.
    To opt out use -Dno.doc=true
    QA: No
    Doc: No
    Tests: checkintests
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml

    Revision: 3638
    Author: [email protected]
    Date: 2008-10-14 16:49:56 -0700 (Tue, 14 Oct 2008)
    Log Message:
    Changing the build order of swc file update with dita xml files.
    By default this would now happen during the checkintests target - so "ant clean main" shouldn't get affected.
    To opt out use -Dno.doc=true
    QA: No
    Doc: No
    Tests: checkintests
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml

  • Why does the file Name for file attached with Annotations "Attach File" (paperclip) become Unknown when Comments are Published?

    Our company recently purchased Adobe Acrobat Pro XI for the purpose of using it for shared electronic reviews.  We are using Send for Shared Review created in Adobe Acrobat Pro XI, and all the Comment tools work as expectedexcept the paperclip in Annotations.
    When a Word or Excel or Image(png,jpeg) file is attached using the Annotations paperclip, the initiator can initially see and open it. But after Publish Comments is selected and the review file is closed, the file "Name" changes to "Unknown" (although the Description has the correct file name and extension).  The Modified information is Unknown, as is the Size and Compressed Size.
    When the review file is then re-opened, even the initiator cannot open the file, although:
    The file location is marked with the paperclip within the document.
    The file name is shown in the Comments List with the initiator's name.
    In the Attachments list (the paperclip beneath the Thumbnails and Bookmarks) the Name appears as Unknown, Description shows the file name, Modified is Unknown, Size is Unknown, and Compressed Size is Unknown.
    The file Name cannot be edited, although the file Description can be.
    We have followed the procedure described in the tutorials but cannot figure out how to troubleshoot this situation.  Since this feature was the reason for the purchase of Adobe Acrobat Pro IX, we would any help. Please don't leave out any basics since we are all new users.
    We have several people with Adobe Acrobat Pro XI and the rest have Adobe Reader XI and it is a Windows platform.  Can someone please give us some advice how to get this feature to work as described?

    FYI Rave,
    There are some other forum entries with this exact same issue...:
    Cannot Open Attachments in PDF
    Why does the file Name for file attached with Annotations "Attach File" (paperclip) become Unknown when Comments are Published?
    Can someone help us get the COMMENTS ATTACHMENT TOOL to work as described in Acrobat Pro XI?

  • CC14, all files open with asterisk in file name.

    CC14, all files open with asterisk in file name, need to save or cancel to close file. Is there a way to change that?

    No. It happens to any InDesign file. I created a new file in CC14, saved, closed, opened and it had the asterisk.
    If it is a time synchronization, how do I correct that?

  • Replace a 2003 (not R2) File Server with a 2012R2 files server and preferably keep the same machine name and IP when finished

    I am wanting to replace a 2003 (not R2) File Server with a 2012R2 file server and preferably keep the same machine name and IP when finished.  For the moment I just need some "high level" guidance, little details can be worked out once I know
    which direction I will go.  I was considering that DFS might be a way to help get through the process although when finished the 2012R2 Files server will be by itself with no other file server planned at this time.  DFS can stay installed for maybe
    future purposes but clearly I wouldn't need the DFS Replication with only one machine.
    Here's a few details of the environment....
    1.  DC's are 2012R2 but it is still 2003 DFL because the old 2003 DCs are still present.  But likely they will be gone and the DFL elevated before I start on the File Server project
    2. Nearly all machines in the facility have a shortcut on the "All Users" Desktop that points to the existing old File Server.  Editing or replacing that shortcut would be a major pain,...hence why I want to keep the same machine name at least,
    and maybe the same IP if not too much trouble.  This way the existing shortcut would continue to work with the new 2012R2 File Server.  The UNC path represented in that shortcut is also configured into one or more of our major business applications,
    futher emphasizing the need to keep the UNC path the same throughout the process.
    3. The facility runs 24/7/365 but is "light" on weekends.  The political environment is such that there is little to no tolerance for any down time at all.
    4. Would DFS (based from the 2012R2 machine) be a good tool to get where I need to go?
    Thanks for any suggestions.
    Phillip Windell

    Hi Sharon,
    I've done some more reading and have a few new ideas to run past you....
    Yes regular DFS wouldn't help and the Namespace would still be different than how it was with just the old server. However I was thinking DFS Replication could replace the purpose of RoboCopy and it would keep the two locations "in sync" until I was ready
    to flip over to the new server.  DFS Rep can exist independently of a DFS Namespace, so a Namespace is not even needed. It needs a minimum of 2003R2 for the "later & better" DFS Rep but I believe 2003 can do an "in place" upgrade to 2003R2, so I would upgrade
    the old server to 2003R2 first.  As long as the DFS Rep on 2012R2 and 2003R2 will properly interact I think that will work.
    Thanks for the reg info on the Shares.  I'm debating if editing that would reg file would really be much better than manually creating the Shares on the new server while the DFS Replication was doing its job.  I'll probably export that Key as a
    safety move whether I use it or not.
    Once the DFS Rep is fully in sync and the Shares are in place on the new server, I figure I would then:
    1. Remove the DFS Replication Object (optionally remove DFS Services completely)
    2. Rename the old File Server to something else and set it to DHCP
    3. Rename the new File Server to the name I want to use and give it the IP the old server had.
    How does that sound?
    Phillip Windell

  • Retain standard SAP order type after copying with user defined order type

    Hello SAP Gurus,
    We have a requirement of retaining the standard SAP order types after copying with User defined order types. But the issue is we don't want to see the standard SAP order type such as PM01, PM02 in production system while using transaction like IW31 etc.
    Is there anybody who has answer to retain these stanadard SAP order types without deleting from system configuration?
    Thanks in advance.
    Cheers,
    Vaibhav

    Vaibhav,
    When you F4 on the order type field in IW31 you will get the popup showing the order type list. At the top of this list is a button with a green "+" sign (Insert in personal list).
    You can use this button to select your favourite list.
    This function is available in most F4 drop-down lists.
    However, you cannot set this setting for all users. You will need to write an ABAP program to do this.
    PeteA

  • Creating a control file copy with ASM

    Configuration is Oracle 10.2, RAC, and ASM (Automatic Storage Management). I would like to create a second copy of the control file.
    If this wasn't ASM, I could just bring down the database, copy the control file using an operating system command, modify the pfile to reference both the original and new copy, and then restart the database.
    Since this is ASM, I cannot use an operating system command to copy the control file, and RMAN "BACKUP" (which is the only way I know to make a copy of the control file) will only work if the database is up. When I "restore" the control file using RMAN and change the pfile to reference both control files I get a message like the following when attempting to start the database:
    ORA-00214: control file '+ASMGROUP1/db1/controlfile/current.271.566646845'
    version 2241 inconsistent with file
    '+ASMGROUP1/db1/controlfile/current.268.566661765' version 2236
    Soooooo, how do I make and implement a second copy of a control file using ASM.
    Thanks

    Hi.
    This is not testet so presede with caution as it is meant as a discussion ;-)
    As I see it there is no logical way to extend the instance by adding a controlfile.
    The following procedure might work (has not been tested)
    I think you have to make a controlfilebackup with the database closed in normal mode using RMAN.
    Further you might be able to edit the pfile with create pfile from spfile and further create spfile from pfile. Extending the controlfile parameter to represent number and names of controlfile needed.
    With this done, the database is closed normal with a controlfile copy presented somewhere on the filesystem.
    startup mount;
    restore controlfile from '<backup controlfile location>'
    alter database mount;
    alter database open;
    Any thoughts about this procedure guys?
    Rgds
    Kjell Ove

  • File Copy with resume enable

    I am thinking of making a file copy program like the download managers, which provides resume enables, so that users can continue at later times.
    Suppose, i have a 10 GB file, and i want to transfer it over to my external, then instead of non breakable file copying, user get the option to stop, and resume laters from that point only.
    I am not sure if its feasible in java, but if its, please tell me how to achieve that.
    I am not asking you to give me the code, rather a bit about how to proceed in that direction.
    Thank you.

    user7761515 wrote:
    I am thinking of making a file copy program like the download managers, which provides resume enables, so that users can continue at later times.Well, I suspect you're going to have to come up with some sort of protocol that allows your copy job to complete its task (eg, a separate file containing the number of bytes written to the "partial" so that it knows where to resume from). I'd also suggest that you use some sort of name extension to distinguish your partial from a completed file, and only rename it when you know the job is finished.
    Alternatively, you could create "chunks" for each portion copied between a start/resume and the next pause (maybe with numbered extensions) and then concatenate them together as a final step (possibly simpler, but likely less efficient in space and time).
    Another thing to think about is changes: What if someone changes the file you want to copy between the time you pause and the time you resume? I suspect it should invalidate the whole job, but you'll probably want to check modification times (or alternatively, use a checksum) before you resume.
    If this is just an exercise, great; otherwise I suspect you may be re-inventing the wheel.
    Winston
    Edited by: YoungWinston on Nov 13, 2010 12:02 PM
    It also occurs to me that you might want to investigate FTP. I'm pretty sure it has hooks for pausing and resuming, but you'll probably have to check if the Java library you choose allows that capability.

  • Same file name at Target with change in file extension

    Hi,
    I am working on File to File scenario. I need to create target file name similar to the source file name. This can be achieved by using ASMA. But my requirement is to change the file extension for the target file.
    For example:
    Source File u2013 InvoiceNotification.txtu2026.Then target file should create as
    Target File - InvoiceNotification.csv
    This can be achieved by using OS Command unix script in the receiver communication channel.
    Is there any better way of doing this..say something like Dynamic Configuration or Variable substitution?
    Thank you.

    Hi Achuth,
    I think you are doing content conversion at the receiver side. Go ahead with ASMA, get the file name.
    DynamicConfigurationconf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKeyFileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, a);
    return "";
    In the receiver file adapter, keep the extension as .CSV. That's enough.
    Else you can follow as said by Abhishek Salvi. Either way you can achieve the requirement.
    Thanks,

  • Large PSD file overwritten with a PDF file

    Hi everyone,
    I've been searching google for this for a while but I can't find an answer.
    Ok, so I'm working with a large PSD (100+ layers, over 170MB). I wan't to preview it as a PDF. I click Save As ... and I make a new file on the desktop. I minimize Photoshop, go to desktop and open the PDF. Ok everything's ok. I go back to photoshop (just maximize it). I work work work .... Ctrl+S every once in a while ... and I suddenly realize that the file I'm working on has changed its name from project2.psd to project2.pdf (I see this in the top bar of the window). I minimize photoshop, go to the folder where my psd file is stored and I check it for weight -> it's now 24MB instead of 170MB. Ok, now I'm stressed and I go crazy. Istead of going back in history I decide to Overwrite my original project2 (which is now a pdf as the windows explorere shows ... [oh yeah, and the pdf I've created on the desktop is still there as a totally separate file]) with the project I have currently opened in photoshop (I still have layers in the layers pallete and everything, it's just the photoshop shows the name of the file in the top bar "project2.pdf"). I do that. Now I close all the projects opened in photoshop (I guess that's the moment I really screwed up) - though I don't close the program itself if that matters at all - and I reopen my project2.psd.
    Yes, it opens as a PSD ..... but it's flatten. No layers.
    God I'm so angry with myself now.
    I have no idea why after creating a new pdf file on the desktop the whole project I was still working with turned into a PDF file.
    Is there any home-made cheap solution to this? I wan't to get my 170MB 100+ layers file
    Does Vista store some temp files anywhere? I suppose it won't be there.
    Sorry for being so emotional about all this but I'm really screwed if I don't get my original file back.
    PS. I've found a file called Photoshop Temp631890 in the Temp directory. Can't open it with PS. Is there anything I can do with it?
    Thank you in advance,
    Auror

    Much thanks Ronald .... yes Robert you too.
    Sorry to answer this topic with such a delay. I've been busy finishing this project. Not re-doing the whole thing thank God!
    Ok so I know that if I overwrite a file it's lost.
    I didn't loose everything 'couse I was able to recover an earlier copy that was erased. Some data-recovery software found it on my drive and was able to recover it. Moreover while I was recovering it I remembered that I've left a copy of my PSD file on my clients FTP server 2 days earlier. I did loose a couple of hours of work but all wasn't lost.
    I could swear to god I saved my PSD "AS A" PDF and somehow both files turned into PDFs. Well ... s**t happens right?
    gonna be more carefull next time.
    Thakns for everything.
    Auror

  • File size with JPEG Image files

    I recently had to re-load all of my photos from an external hard drive due to the fact that my hard drive crashed. When I did, I noticed that the files are JPEG Image files. As a result, the file size is considerably smaller than the original file and the quality is much less.
    Any suggestions on how to restore the file to the original format and quality?

    Connie:
    Yes, it seems you backup the Data folder instead of the Originals folder. Unfortunately, there's nothing you can do at this time.
    In the future, I suggest you copy the entire iPhoto Library folder to the external and then keep it updated with a backup application like Digital Backup, Snyk, etc. They compare B (the backup copy) with A (the working copy) and copy new or changed files from A to B to keep them identical. After the initial copy process, the subsequent backups are rather quick, about a minute or less.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How to name a pdf file automatically with the current file name

    We constantly pick up old ID files, save as, revise and rename. The problem is that when I pdf ID remenbers the original file name not the new one. Is there a way for it to select the new name without retyping it.

    ID will change the PDF name with the name change of the file until you change the PDF name manually. At that point you're stuck with it.
    To clear it out, export to IDML, open and save with the appropriate name and NEVER change the PDF name again. If you do, don't save the InDesign file afterward.
    Bob

  • Bridge CS6 open file bug with Hasselblad RAW file

    There is a bug in Bridge CS6 (or RAW editor?) with (some) Hasselblad RAW files. I have a set of FFF files that I can use and open without problems in Bridge CS6 (5.0.0.399 x64). But one file of them does not show a preview icon and when I try to open it in PS6 or RAW editor, I get an errormessage "unexpected end of file...". When I open the same file in Hasselblad "Phocus" software there is no problem. I can see the preview thumb and I can play around with the file and even export to TIF or DNG without any trouble. I can even open the exported DNG in PS or Bridge/RAW editor then.
    Well, you might say I should not care for a single file but it leaves a bad taste, when the Hasselblad software can handle the file without problems...
    If some developer want to take a look at this I could provide original files.

    Curt Y wrote:
    Also, be sure to use a card reader for file transfer as a camera transfer can introduce errors.
    I work with a Hasselblad medium format camera. I do not have a CF card in use. And I can tell that this worked absolutely flawless for many years. I NEVER had corrupted files caused by transfer. Many photographers using pro medium format cameras work the same way (Phase One, Leaf, etc.). They do not use CF cards but firewire cable. the problem arised when I started using the CS6 Bridge software. And it turned out that I get more and more corrupted files which appeared to be fine before. So from one shooting i.e. 1 file of 100 was corrupted first. Since I started using Bridge and changed RAW settings and worked with the same files after some days I have 5 corrupted files of 100 now. And NO it is not my system. It works fine with other camera RAWs where I have absolutely no problems. It is only the Hasselblad files. Though I still can open the Hasselblad RAW files with the Hasselblad software. The problems are only with the Bridge (respectively the raw editor) in combination with the Hasselblad files.
    To me it looks like CS is corrupting the files since they worked fine at first - even in CS and after some days playing around in CS the appear to be corrupted. Funny that I can open the same files without problems using a different software - isn't it? ;-)
    thanks for the link I will try it.... :-)

  • Renaming NEF file no longer changes JPG file automatically (NOT BATCH RENAMING)

    For the last year I have been able to select a file in Bridge under the 'Content' tab and in renaming an individual NEF file, Bridge would automatically change the corresponding JPG for me. Suddenly it no longer works and I have to change each file independently. Batch renaming still works fine, but I don't want to use that every time, as that is a bit conveluded to change one letter/number in the file.
    Not sure if it was an update that changed something since the updates are automatic. I'm not finding anything in the 'Preferences' or any other area to change the setting back. How do I get it back to the way it was???

    Hi Don, and a warm welcome to the forums!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • Burst to file fails with "no such file or directory"

    I have followed the example tutorial of bursting to a file at http://www.oracle.com/technology/obe/obe_bi/bipub/advance/advance.htm#t4s2 When I schedule a report to run immediately, the report fails and gives back the following information about 1 of 6 deliveries
    Delivery Key 123456789
    Delivery Type FILE
    Status Failed
    System Message C:\BIP/123456789.pdf (No such file or directory)
    I have created a BIP folder on my local hardrive, but is there anything else I have to do? Does the database server have to have permission to go to my IP address or subnet?
    Alex.

    Thanks for the info, I tried the following in my query
    select
    emp_emp KEY,
    'hr_employee' TEMPLATE,
    'RTF' TEMPLATE_FORMAT,
    'en-US' LOCALE,
    'PDF' OUTPUT_FORMAT,
    'FILE' DEL_CHANNEL,
    '//111.222.333.444/BIP' PARAMETER1,
    emp_emp || '.pdf' PARAMETER2
    from...
    and allowed my local C:BIP to be shared on the network and even allowed network users to change my files on this share.
    When I scheduled the report I got the same error message:
    Delivery Key 123456789
    Delivery Type FILE
    Status Failed
    System Message /111.222.333.444/BIP/123456789.pdf (No such file or directory)
    I noticed the "System Message" above dropped one of the slashes from my query. Do I still need to have the unix box where the database server resides have permission to access my subnet, or is the something else that is missing?
    Alex.

Maybe you are looking for

  • How can I process a linearly converted raw file while preserving color?

    Hi, I want to convert my raw files in a linear format (to preserve all the dynamic range and detail and prevent unnecessary clipping). My question is "how can I modify the brightness or luminance while preserving the hue and saturation of every color

  • Import Data Tier Application Collation 1033 is not supported

    When I try to use Import Data-Tier Application I am getting an error, Could not load schema model from package (Microsoft.SqlServer.Dac) Additional information: Collation 1033 is not supported.  you must specify one of the supported collations in the

  • Virus Scan of email attachments

    Can anybody help me in coding of Virus Scan of email attachments through java code, like we do with normal email engines like yahoo. Thanks in advance!!!

  • Login to BI Server using Oracle BI Publisher Desktop 11g

    I have been trying to login into Bi Server using Oracle Bi Publisher Desktop. Once I try to login, a credentials error pops-up saying 'Please Contact your administrator for userid/password'. I am sure the credentials are correct because I used them o

  • Oracle error message code 1653 op 4, ORA-01653: unable to extend table

    Hi Our application use Oracle 9i as database. I modified one of tables and try to convert it from this application, then I got an Oralce 1653 error as followings: Creating Table SAMPLE_T Copying data from SAMPLE to SAMPLE_T Unable to move data from t