PowerShell Copy Biggest (file size) File to Destination

Hi guys, 
I have the following code, works butter smooth. Copies a few files/folders from source to destination then applies ACL's. See that 3rd "copy-item"
which gets a .nk2 and copies it over? Well in the source there are MULIPLE .nk2 files (with different names), how can I get it to scan that \outlook folder and copy the biggest (file size) .nk2 item and rename is outlookprofile.nk2?
gc folderlist.txt | % {
$user = "$_"
Import-Csv "C:\TEMP\Favorites\input.csv" | ForEach {
If ($_.FQDN -eq $env:USERDNSDOMAIN) { $file_server = $_.'Server IP' }
$FavAcl = Get-Acl -path \\$file_server\profiles$\$user\Favorites\
$SigAcl = Get-Acl -path "\\$file_server\profiles$\$user\Application Data\Microsoft\Signatures\"
if (Test-Path -Path "\\$file_server\profiles$\$user\Favorites")
copy-item -path \\$file_server\profiles$\$user\Favorites -destination \\$file_server\userhome$\$user\Favorites -recurse -force
copy-item -path "\\$file_server\profiles$\$user\Application Data\Microsoft\Signatures" -destination \\$file_server\userhome$\$user\AppData\Roaming\Microsoft\Signatures\ -recurse -force -ErrorAction SilentlyContinue
copy-item -path "\\$file_server\profiles$\$user\Application Data\Microsoft\Outlook\outlook.nk2" -destination \\$file_server\userhome$\$user\AppData\Roaming\Microsoft\Outlook\outlook.nk2 -ErrorAction SilentlyContinue
Get-ChildItem -path \\$file_server\userhome$\$user\Favorites -Recurse -Force | Set-Acl -AclObject $FavAcl
Get-ChildItem -path \\$file_server\userhome$\$user\AppData -Recurse -Force | Set-Acl -AclObject $SigAcl
Get-Acl -path \\$file_server\profiles$\$user\Favorites\ | Set-ACL -path \\$file_server\userhome$\$user\Favorites\
Get-Acl -path "\\$file_server\profiles$\$user\Application Data\Microsoft\Signatures\" | Set-Acl \\$file_server\userhome$\$user\AppData\
remove-item -path \\$file_server\profiles$\$user -recurse -force
I'll need it to keep the ACL from source to destination as well.
Thanks guys.

get-childitem "\\$file_server\profiles$\$user\Application Data\Microsoft\Outlook\*.nk2" | sort -property Length -descending | select -first 1 | %{
copy-item $_ -destination "\\$file_server\userhome$\$user\AppData\Roaming\Microsoft\Outlook\outlook.nk2" -ErrorAction SilentlyContinue
Get-ACL $_ | Set-ACL -path "\\$file_server\userhome$\$user\AppData\Roaming\Microsoft\Outlook\outlook.nk2"
Give this a whirl, hope it helps!
Not quite sure I follow what you're trying to do with renaming, but this should get you far enough to sort that bit yourself.  If not, please clarify.

Similar Messages

  • Reduce File Size - File smallest with Acrobat 4.0/5.0 compatibility

    This is with Acrobat 8.
    Contrary to the information on the Reduce File Size dialog which says, Setting Compatibility to later versions of Acrobat will allow greater reduction in file size, I have a number of PDF files which gain the most reduction in size when set to Acrobat 4 and later.
    Here is the various sizes by Acrobat revision chosen for one of the documents:
    Make Compatible With
    File Size
    Retain Existing
    79,202,311
    Acrobat 4.0 and later
    19,884,757
    Acrobat 5.0 and later
    19,884,773
    Acrobat 6.0 and later
    27,611,913
    Acrobat 7.0 and later
    27,611,909
    Acrobat 8.0 and later
    27,611,920
    After the conversion when the file is reopened in Acrobat the file appears the same visually.
    So the question is, am I losing any content by choosing the reduction to the smaller file size of Acrobat 4.0/5.0?
    As I have a large number of these files the additional space saving would be good but not at the loss of significant information.
    Thanks,
    Jay

    You will lose any information that is not compatible with AA4 or AA5. It may be that the information is not needed and so there is no visual difference.

  • Maximum file size exceeded?

    Recently I've bought curve 9300 - so far it looks to be the best phoned I had so far.
    But yesterday I finally decided to install desktop software and check some other functions of the phone. And that's when I found a problem. I haven't installed ny media card, but there's some free space showing on the built memory. I've wanted to upload a couple of multimedia files ( .mp3 - using "file" button, I'm not using Itunes, Windows media etc) . I got an info that maximum allowed file size has been exceeded (I'm not sure it's excat phrase as I had to translate it from Polish). What's wrong? I'm pretty darn sure that file I wanted to upload is smaller than free space (mp3 of around 5MB).

    Hi and Welcome to the Community!
    Here is a KB that discusses that error:
    KB26221 "File exceeds the maximum file size of the destination or is too large for the system" appears when saving attachment files on the BlackBerry smartphone
    Hopefully it contains something useful! While it is written for the 9700, I suspect it applies to your BB as well.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Is there a file size limit for video in Adobe Presenter?

    I am uploading video to PowerPoint using Presenter and want to know if there is a limit or best practices for video file size.

    If you right click on the file (navigate to it using finder, or if it is in iCloud you should open keynote, File -> Open and you should see a list of your iCloud keynotes) then press command+i, you'll pull up the info tag which will tell you the file size.
    Keynote also has an option to Reduce File Size  (File -> Reduce Files Size) but I do not recommend it at all because it will severely degrade the quality of your pictures. 
    It's also possible to reduce an individual image's memory size in your keynote by right clicking it and selecting Reduce Image File Size).  This is more time-consuming but allows you to see if the degraded photo quality is still good enough, and you can always undo it.

  • Is there a file size limit for App Store downloads over wifi?

    I just gifted my friend a navigation app that is 1.4 Gb in size. Unbeknown to me, her iPhone is not tethered to a computer and therefore she only downloads apps directly to the phone via wifi. Is it possible to download a file of this size directly to the phone? So far the app has said "Loading..." for 3 hrs with no movement in the status bar. If there is a limit I would have expected the phone to disallow the process from even beginning.
    Any thoughts on how to get this app downloaded would be greatly appreciated.

    If you right click on the file (navigate to it using finder, or if it is in iCloud you should open keynote, File -> Open and you should see a list of your iCloud keynotes) then press command+i, you'll pull up the info tag which will tell you the file size.
    Keynote also has an option to Reduce File Size  (File -> Reduce Files Size) but I do not recommend it at all because it will severely degrade the quality of your pictures. 
    It's also possible to reduce an individual image's memory size in your keynote by right clicking it and selecting Reduce Image File Size).  This is more time-consuming but allows you to see if the degraded photo quality is still good enough, and you can always undo it.

  • Is there a file size limit for images in keynote on a mac?

    Is there a file size limit for images in keynote on a mac?

    If you right click on the file (navigate to it using finder, or if it is in iCloud you should open keynote, File -> Open and you should see a list of your iCloud keynotes) then press command+i, you'll pull up the info tag which will tell you the file size.
    Keynote also has an option to Reduce File Size  (File -> Reduce Files Size) but I do not recommend it at all because it will severely degrade the quality of your pictures. 
    It's also possible to reduce an individual image's memory size in your keynote by right clicking it and selecting Reduce Image File Size).  This is more time-consuming but allows you to see if the degraded photo quality is still good enough, and you can always undo it.

  • Different photo file sizes when copied back from external HD

    I backed up some photos to an external HD (80GB, same size as in my iMac at the time), with Mac OS Standard format, under Tiger. The internal HD crashed, taking much unbacked-up data with it to the digital beyond.
    Now with my new Leopard iMac (and wisdom acquired by experience), I have noticed a different file size on the different drives after copying the photos back.
    Other posts have pointed out differences in memory allocation / block size as the culprits, however, can that make the large difference seen in my case?
    Example 1 is a Tiff file of 8.2 MB on the external HD, which shrinks to 6,8 MB when copied to the 500 GB iMac drive (taken from the Get Info window)
    Example 2 is a JPEG which shrinks from 1.2 MB to 552 KB when copied over.
    Examples 1 & 2 also shrank to 6.8 MB and 576 KB respectively when copied from the 80GB external drive to another, 320GB external FAT32 drive.
    So my question is: Am I somehow losing something with the shrinking files? Does memory allocation/block size difference make that big a difference?
    Thanks for your help.

    I think I ought to mention that I also have a new laptop and have experienced file sharing permission issues with some applications. Might this be part of the problem? (Although everything seems to be properly owned!)

  • Build a tool for controlling a copy file operation base on its file size in any folder of Window Explorer

    Hi all,
    We are developing a tool which will control a copy file operation in any folder of Window Explorer base on file size limit.
    If these copied files are not satisfied the file size condition (its size is larger than a predefined value), the copy/move operation must not be executed.
    My question is that: "Are there any availability support of Windows API/tool for implementing this feature?"
    BR,
    Mr_Le

    Hi Mr_Le,
    Thank you for posting in the MSDN forum.
    Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss:
    Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
    To help you find the correct development forum for this issue, please tell me the real project type (Winforms or others) and the real development language (C#, VB or others) you want to use.
    If you are not very sure that which kind of project fulfils this requirement, maybe the language development forum would be better for this issue:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages&filter=alltypes&sort=lastpostdesc
    If there's any concern, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Large size file could not copy from "Open with explorer" in SharePoint.

    Hi,
    I have uploaded around "120 mb" file in Document Library. I was trying to copy that file from "Open with explorer" to my local system. I am getting "disk Space error".
    Should i specify any size at any where in "Central Admin".
    Thanks & Regards
    Poomani Sankaran

    To resolve this issue, follow these steps:
      1. Click Start,
    click Run, type regedit,
    and then click OK.
      2. Locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
      3. In the right pane, right-click the FileSizeLimitInBytes value,
    and then click Modify.
      (If
    FileSizeLimitInBytes does not exist then right-click the blank space in the right pane, click New,     click DWORD
    Value, type FileSizeLimitInBytes,
    and then click OK)
      4. Click on Decimal,
    and type 4294967295 and click OK. Note The
    default value for the file size limit is     50000000 bytes.
      5. Quit Registry Editor. Restart the computer.
    CAUSE
    This issue occurs because a security change that was introduced in Windows XP SP2 affects the Web Distributed Authoring
    and Versioning (WebDAV) redirector. This security change makes sure that an unauthorized server cannot force a client computer into a denial of service attack. If you try to download a file that is larger than 50000000 bytes, the client computer interprets
    this download as a denial of service attack. Therefore, the download process stops.
    IMPORTANT
    This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might
    occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
    to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base
    How to back up and restore the registry in Windows
    http://support.microsoft.com/kb/322756 

  • Why do copied files show different file sizes than the original files?

    When I copy files (to another drive, folder, etc.) some show the same file size as the original, but others don't.
    I'm guessing this is not abnormal, but what causes it?
    Thanks.

    Hi dymar,
    Copying to another Drive is understandable, they may have a differentnumber of Blocks allocated per file, for insnce a one Byte file might take up 512 bytes, 1024 Bytes, etc, but a Get info should show the actual size of the file within that/those blocks.
    If copying to another Format, like MS-DOS, Forks may be lost also.
    There are ways to actually Compare the files...
    http://www.hutsby.net/2008/01/apple-mac-osx-compare-files-and-folders.html
    http://www.deltopia.com/compare-merge-sync/macosx/
    http://www.macworld.com/article/49584/2006/03/cmpfldr.html
    http://www.araxis.com/merge_mac/index.html
    Or the most expensive one & my favorite, but far more useful, Tri-Backup...
    http://www.tri-edre.com/english/tribackup.html

  • I can't copy big size files to my 1TB external after lion up

    I have a 1 TB external HDD, 2 partitions a 174.5GB MAC OS EXTENDED used as a backup and an 825.23 MS-DOS(FAT32) for everything else. before i upgraded to LION it works fine. after LION i copy a 800MB movie file to either of the 2 partitions it shows the file being copied and the gray file icon is there  but after the process is complete the file isnt there and the HDD size doesnt change. while when i try to copy a 7GB file to either of the partitions this message appeares (The item “123.mkv” can’t be copied because it is too large for the volume's format).
    am using a macbook 13" dual core 2.4ghz 4gb ram. ---
    i tried my brother's HDD and i faced the same issues. however on his MBK its fine.
    i honestly don't want to try and restore before LION and do the process again coz i would have to download LION again, and i also can't transfer the files on the external HDD coz its too big and i don't have anywhere to put them.
    if anyone has a solution please do post. otherwise i would have to re-do 30hrs woth of work again coz its not backed up
    thanx

    HI,
    That's kinda strange, i really believe i have tried to copy files larger than 4GB to the HDD before on leopard, but maybe am confused on that.
    i repaired the permissions on all the HDDs even the enternal one.
    and i actually tried a document file of maybe 60KBs and the same thing on both partitions.
    i think the good news is that i checked on the backup of TimeMachine and yep it backedup files "weooh" i tried and created files on my own and checked the back up and its there.
    the weired thing is when i try to copy those same file my self ( Drag n Drop or Copy n Paste) its not working on either partition.
    i would really appreciate a solution where i wont have to restore to leopard and re-install lion, i would be happy to provide who you with more detail if you might be able to help
    cheers,
    Anas

  • Hyper-V 2012 R2 creating a new vhdx and copying from a source vhdx will physical file size reduce?

    Hi,
    I'm running Hyper-V 2012 R2 as part of Server 2012 Essentials.
    As seems common from other threads I've read I have created an expanding VHDX with a maximum size too large (almost the same size as the physical disc it lives on). Although there is only around 350GB of data in the VHDX, the actual file size is approaching
    900GB on the host.
    I'm using the "Add New Virtual Disk" wizard to make a new VHDX to replace this massive file. I want the contents of the old VHDX to be copied to the new one so in the add disk wizard I selected the option to copy the contents of my new disk from
    the original.
    So my question is: the source VHDX is 900GB, the data inside the is around 350GB. What size is my new VHDX likely to be? Is it likely to reduce to nearer the actual data size?
    I'm asking because I'm currently running this operation to an external USB drive and it's painfully slow - going to take hours to complete. If the size isn't going to reduce I may as well cancel it and look for a better option.
    Any comments appreciated.
    David

    I am assuming that you are using dynamic virtual disks for your VHDX (they can be dynamic or fixed).
    And, it is usually some type of transaction, backup agent, of the like that causes this type of behavior.  Some action that requires a cache on disk that is later deleted.
    There is a shrink action that can be done, but that will not optimize fully.
    The way to fully optimize is to mount the old virtual disk and create a new virtual disk and mount it, and then copy the contents from one to the other.  This lays the files out in a nice orderly way, without anything being written to the end of the
    virtual disk causing it to expand strangely.
    Over time, if you are still using the backup agent (for example) that got you into this situation, you will be there again.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • HT2729 I'm not able copy an audio file (mp3) of size 18,890KB to my Iphone that has the latest OS - iOS5.1.1. Is there a limit on the audio file size ?

    I'm not able copy an audio file (mp3) of size 18,890KB to my Iphone that has the latest OS - iOS5.1.1. Is there a limit on the audio file size ? I was able to play the same song on iTunes but not able load it into my iphone. .. Any suggestions ?

    I'm not able copy an audio file (mp3) of size 18,890KB to my Iphone that has the latest OS - iOS5.1.1. Is there a limit on the audio file size ? I was able to play the same song on iTunes but not able load it into my iphone. .. Any suggestions ?

  • A simple and free way of reducing PDF file size using Preview

    Note: this is a copy and update of a 5 year old discussion in the Mac OS X 10.5 Leopard discussions which you can find here: https://discussions.apple.com/message/6109398#6109398
    This is a simple and free solution I found to reduce the file size of PDFs in OS X, without the high cost and awful UI of Acrobat Pro, and with acceptable quality. I still use it every day, although I have Acrobat Pro as part of Adove Creative Cloud subscription.
    Since quite a few people have found it useful and keep asking questions about the download location and destination of the filters, which have changed since 2007, I decided to write this update, and put it in this more current forum.
    Here is how to install it:
    Download the filters here: https://dl.dropboxusercontent.com/u/41548940/PDF%20compression%20filters%20%28Un zip%20and%20put%20in%20your%20Library%20folder%29.zip
    Unzip the downloaded file and copy the filters in the appropriate location (see below).
    Here is the appropriate location for the filters:
    This assumes that your startup disk's name is "Macintosh HD". If it is different, just replace "Macintosh HD" with the name of your startup disk.
    If you are running Lion or Mountain Lion (OS X 10.7.x or 10.8.x) then you should put the downloaded filters in "Macintosh HD/Library/PDF Services". This folder should already exist and contain files. Once you put the downloaded filters there, you should have for example one file with the following path:
    "Macintosh HD/Library/PDF Services/Reduce to 150 dpi average quality - STANDARD COMPRESSION.qfilter"
    If you are running an earlier vesion of OS X (10.6.x or earlier), then you should put the downloaded filters in "Macintosh HD/Library/Filters" and you should have for example one file with the following path:
    "Macintosh HD/Library/Filters/Reduce to 150 dpi average quality - STANDARD COMPRESSION.qfilter"
    Here is how to use it:
    Open a PDF file using Apple's Preview app,
    Choose Export (or Save As if you have on older version of Mac OS X) in the File menu,
    Choose PDF as a format
    In the "Quartz Filter" drop-down menu, choose a filter "Reduce to xxx dpi yyy quality"; "Reduce to 150 dpi average quality - STANDARD COMPRESSION" is a good trade-off between quality and file size
    Here is how it works:
    These are Quartz filters made with Apple Colorsinc Utility.
    They do two things:
    downsample images contained in a PDF to a target density such as 150 dpi,
    enable JPEG compression for those images with a low or medium setting.
    Which files does it work with?
    It works with most PDF files. However:
    It will generally work very well on unoptimized files such as scans made with the OS X scanning utility or PDFs produced via OS X printing dialog.
    It will not further compress well-optimized (comrpessed) files and might create bigger files than the originals,
    For some files it will create larger files than the originals. This can happen in particular when a PDF file contains other optomizations than image compression. There also seems to be a bug (reported to Apple) where in certain circumstances images in the target PDF are not JPEG compressed.
    What to do if it does not work for a file (target PDF is too big or even larger than the original PDF)?
    First,a good news: since you used a Save As or Export command, the original PDF is untouched.
    You can try another filter for a smaller size at the expense of quality.
    The year being 2013, it is now quite easy to send large files through the internet using Dropbox, yousendit.com, wetransfer.com etc. and you can use these services to send your original PDF file.
    There are other ways of reducing the size of a PDF file, such as apps in the Mac App store, or online services such as the free and simple http://smallpdf.com
    What else?
    Feel free to use/distribute/package in any way you like.

    Thanks ioscar.
    The original link should be back online soon.
    I believe this is a Dropbox error about the traffic generated by my Dropbox shared links.
    I use Dropbox mainly for my business and I am pretty upset by this situation.
    Since the filters themsemves are about 5KB, I doubt they are the cause for this Dropbox misbehavior!
    Anyway, I submitted a support ticket to Dropbox, and hope everything will be back to normal very soon.
    In the meantime, if you get the same error as ioscar when trying to download them, you can use the link in the blog posting he mentions.
    This is out of topic, but for those interested, here is my understanding of what happened with Dropbox.
    I did a few tests yesterday with large (up to 4GB) files and Dropbox shared links, trying to find the best way to send a 3 hour recording from French TV - French version of The Voice- to a friend's 5 year old son currently on vacation in Florida, and without access to French live or catch up TV services. One nice thing I found is that you can directly send the Dropbox download URL (the one from the Download button on the shared link page) to an AppleTV using AirFlick and it works well even for files with a large bitrate (except of course for the Dropbox maximum bandwidth per day limit!). Sadly, my Dropbox shared links were disabled before I could send anything to my friend.
    I may have used  a significant amount of bandwidth but nowhere near the 200GB/day limit of my Dropbox Pro account.
    I see 2 possible reasons to Dropbox freaking out:
    - My Dropbox Pro account is wronngly identified as a free account by Dropbox. Free Dropbox accounts have a 20GB/day limit, and it is possible that I reached this limit with my testing, I have a fast 200Mb/s internet access.
    - Or Dropbox miscalculates used bandwidth, counting the total size of the file for every download begun, and I started a lot of downloads, and skipped to the end of the video a lot of times on my Apple TV.

  • FILE and FTP Adapter file size limit

    Hi,
    Oracle SOA Suite ESB related:
    I see that there is a file size limit of 7MB for transferring using File and FTP adapter and that debatching can be used to overcome this issue. Also see that debatching can be done only for strucutred files.
    1) What can be done to transfer unstructured files larger than 7MB from one server to the other using FTP adapter?
    2) For structured files, could someone help me in debatching a file with the following structure.
    000|SEC-US-MF|1234|POPOC|679
    100|PO_226312|1234|7130667
    200|PO_226312|1234|Line_id_1
    300|Line_id_1|1234|Location_ID_1
    400|Location_ID_1|1234|Dist_ID_1
    100|PO_226355|1234|7136890
    200|PO_226355|1234|Line_id_2
    300|Line_id_2|1234|Location_ID_2
    400|Location_ID_2|1234|Dist_ID_2
    100|PO_226355|1234|7136890
    200|PO_226355|1234|Line_id_N
    300|Line_id_N|1234|Location_ID_N
    400|Location_ID_N|1234|Dist_ID_N
    999|SSS|1234|88|158
    I would need a the complete data in a single file at the destination for each file in the source. If there are as many number of files as the number of batches at the destination, I would need the file output file structure be as follows:
    000|SEC-US-MF|1234|POPOC|679
    100|PO_226312|1234|7130667
    200|PO_226312|1234|Line_id_1
    300|Line_id_1|1234|Location_ID_1
    400|Location_ID_1|1234|Dist_ID_1
    999|SSS|1234|88|158
    Thanks in advance,
    RV
    Edited by: user10236075 on May 25, 2009 4:12 PM
    Edited by: user10236075 on May 25, 2009 4:14 PM

    Ok Here are the steps
    1. Create an inbound file adapter as you normally would. The schema is opaque, set the polling as required.
    2. Create an outbound file adapter as you normally would, it doesn't really matter what xsd you use as you will modify the wsdl manually.
    3. Create a xsd that will read your file. This would typically be the xsd you would use for the inbound adapter. I call this address-csv.xsd.
    4. Create a xsd that is the desired output. This would typically be the xsd you would use for the outbound adapter. I have called this address-fixed-length.xsd. So I want to map csv to fixed length format.
    5. Create the xslt that will map between the 2 xsd. Do this in JDev, select the BPEL project, right-click -> New -> General -> XSL Map
    6. Edit the outbound file partner link wsdl, the the jca operations as the doc specifies, this is my example.
    <jca:binding  />
            <operation name="MoveWithXlate">
          <jca:operation
              InteractionSpec="oracle.tip.adapter.file.outbound.FileIoInteractionSpec"
              SourcePhysicalDirectory="foo1"
              SourceFileName="bar1"
              TargetPhysicalDirectory="C:\JDevOOW\jdev\FileIoOperationApps\MoveHugeFileWithXlate\out"
              TargetFileName="purchase_fixed.txt"
              SourceSchema="address-csv.xsd" 
              SourceSchemaRoot ="Root-Element"
              SourceType="native"
              TargetSchema="address-fixedLength.xsd" 
              TargetSchemaRoot ="Root-Element"
              TargetType="native"
              Xsl="addr1Toaddr2.xsl"
              Type="MOVE">
          </jca:operation> 7. Edit the outbound header to look as follows
        <types>
            <schema attributeFormDefault="qualified" elementFormDefault="qualified"
                    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
                    xmlns="http://www.w3.org/2001/XMLSchema"
                    xmlns:FILEAPP="http://xmlns.oracle.com/pcbpel/adapter/file/">
                <element name="OutboundFileHeaderType">
                    <complexType>
                        <sequence>
                            <element name="fileName" type="string"/>
                            <element name="sourceDirectory" type="string"/>
                            <element name="sourceFileName" type="string"/>
                            <element name="targetDirectory" type="string"/>
                            <element name="targetFileName" type="string"/>                       
                        </sequence>
                    </complexType>
                </element> 
            </schema>
        </types>   8. the last trick is to have an assign between the inbound header to the outbound header partner link that copies the headers. You only need to copy the sourceDirectory and SourceGileName
        <assign name="Assign_Headers">
          <copy>
            <from variable="inboundHeader" part="inboundHeader"
                  query="/ns2:InboundFileHeaderType/ns2:fileName"/>
            <to variable="outboundHeader" part="outboundHeader"
                query="/ns2:OutboundFileHeaderType/ns2:sourceFileName"/>
          </copy>
          <copy>
            <from variable="inboundHeader" part="inboundHeader"
                  query="/ns2:InboundFileHeaderType/ns2:directory"/>
            <to variable="outboundHeader" part="outboundHeader"
                query="/ns2:OutboundFileHeaderType/ns2:sourceDirectory"/>
          </copy>
        </assign>you should be good to go. If you just want pass through then you don't need the native format set to opaque, with no XSLT
    cheers
    James

Maybe you are looking for

  • How to limit entry of Ship to party in a sales order

    Dear Gurus, My current project requires the following Scenario: My  client's requirement is that for <b>a single sold to party</b>, there need to be <b>more number of ship to parties</b>.   We were able to achieve the same by <b>assigning </b> the li

  • How to pass value from Javascript function to JSP ?

    hi, hello i have 2 jsp page and one external javascript page. from page 1.jsp i am calling a fuction named fun(1).and i am passing that value to external javascript page from external javascript.js i am getting this value in the fun(w) and sending th

  • Working with external assets

    I remember in previous versions of FW that you could impot a PSD to the library as an imported external asset, place it on the canvas and then if you made any changes to the original PSD, update the asset to see the changes reflected in FW. Some wher

  • Birthdays in Adressbook after sync are all 1 day off

    hi, I am using the latest Mac OSX 10.6.6. After sync with Blackberry (using Blackberry Desktop Manager ver. 2.0) suddenly all my birthday entries in Addressbook have been deducted by one day. Ical (birthday subscription) changed accordingly. Contact

  • TS3276 My Mac OS X is sending messages to everyone in my address book.  What is going on?

    My Mac OS X 10.6.8 Safari must have some sort of virus.  It is sending messages to everyone in my address book without my knowledge.  What is happening?  How can I stop it?