Problem in Copy/Move resource

Hi,
I am trying to copy a resource from one folder(test1) to another folder(test2) with the help of below code..
RID pathRID = RID.getRID("/documents/test1/d.txt");
resource = resourceFactory.getResource(pathRID, resourceContext);
RID Target = RID.getRID("/documents/test2);
resource.copy(Target,new CopyParameter(true));
but it is overriding the test2 folder and saving like /documents/d.txt even it should save like /documents/test2/d.txt
If I won't pass ICopyParameter as new CopyParameter(true) then nothing is happening.
Can anyone suggest . where m I wrong?
NS: Same case with Move action of resource.
Thanks,
Vikas

Hi,
The first parameter in the copy command should be the new RID of the copied resource. It should include the resource name. try this:
RID Target = RID.getRID("/documents/test2/" + resource.getName());
resource.copy(Target,new CopyParameter(true));
Best regards,
Avishai Zamir

Similar Messages

  • PROBLEM TO COPY RESOURCE ASSIGNMENTS TO EXCEL

    To COPY the resources from p6 to excell I do as follows:
    On the assignment screen, I group the screen as I
    prefer and on the right pane of the screen right I customize what to
    include,remaining early and late units. Then I chnage
    the time scale to what I want(from ps TO pf).after that and on the
    right pane, highlight the items and press ctrl C and
    then ctrl V in an Excel file.
    The problem is that even if I change the timescale to finish in the PF DATE when I copy the information
    TO excel he last date that is copied istn the PF Date and because of that i do not have the complete remaining late units distribution.
    Thank you in advance

    Why don't you do a report out to Excel. Make sure and check the Time Distributed button on the first screen.

  • Sharepoint 2013 copy/move operation using Content and Structure fails

    Hi,
    We had a recent upgrade from SP2010 to SP2013 environment. After the migration, we realized that the
    copy/move operations using Manage content and structure(sitemanager.aspx) is not working as expected, neither does this give any error nor is it stuck. In fact if I check the content and structure log I find the message as
    succeeded but file/item is not copied to the target. 
    The strange thing is that if I am performing this operation with Full Control permission level it
    does not work but if I do the operation as Site collection admin it works without problem. I know if sub-sites are to moved then one should be site col admin but in this case I am trying to move just documents or pages.
    Any help will be greatly appreciated.
    Thanks

    Hi Vineet,
    According to your description, my understanding is that copy/move operation using Content and Structure cannot work in SharePoint.
    I recommend to check if there are any custom fields in the source list/library and target list/library. If yes, delete the custom fields to see if the issue still occurs.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/56d803d7-8573-4c29-9f6b-c63023941f44/manage-content-and-structure-cannot-move-or-copy-items?forum=sharepointgeneralprevious
    To copy or move files/items between sites, we need to have
    appropriate permissions on both sites.
    I recommend to check if the user has full control on both sites.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Final Cut 10.1 crash when copy/move events

    Final Cut 10.1 crash or hangs up with spinning beachball when copy/move several events between libraries at once. The problem happens more often than not when managaging media in different libraries on same and/or different disks.
    Move or copy one event at a time works, but not several events at the same time. 
    The problem occurs on an 21.5 iMac (mod 2010) i3, 12 Gb RAM, 500 Gb HDD with external WD FW800 disk, an 27" iMac i7 (mod 2010), 12 Gb RAM, 1Tb HDD with external LaCie FW800 disks as well as with a 13" MacBook Pro (late 2012) i5, 16 Gb RAM, 480 Gb SSD with 1Tb External thunderbolt disk.
    Just checked one of the external drives that had problems with move/copy with Disc Manager and there were no errors.
    /Casi

    I tried the same thing with smaller (200 Gbyte) library and this problem didn't occur.
    My guess is that something fishy was going on with the large (>1 Tbyte) default libraries during upgrade to 10.1 and therefore not found during test of move/copy functionality.
    My own two machines are now upgraded to 10.1.1, but I have not dared to see if this work with an on-going project ;-)

  • Copying movies and music into iTunes

    Is there a way to have iTunes copy songs to my music folder when I import them, but not copy movies to my music folder when I import them?
    When I import new songs into iTunes, I like to have iTunes copy the song to my iTunes Music folder. When I encode a movie I like to keep it in the Movies folder on my hard drive. Makes sense music -> Music folder, movies -> Movies folder. However, I recently got an iPod Touch and in order to add movies to it I have to go through iTunes. When I add a movie to iTunes, it makes a copy of the movie in my music folder. Now I have two copies of the movie. I have a small(ish) hard drive and don't want to sacrifice the space.
    I can copy songs to my Touch without importing the movies into iTunes if I disable music/movie syncing, but then my music and playlists are not synced, making it an incomplete solution.
    Any ideas?

    Thanks for the ideas, but neither really solve the problem.
    By keeping the files on an external drive I no longer have access to my songs when I don't have my external with me. In any case I still have two copies of a movie for no good reason, even if only one copy is on my computer.
    And while I'll probably end up changing the preferences every time will work, it is very inelegant. Hopefully Apple builds a better solution into iTunes.
    Thanks again.

  • Cannot copy .mov & .mpeg files to iPod 80

    Hello
    I have just bought an iPod Video 80 gb.
    I have some .mov & .mpeg files on my iTunes library. But when I try to copy those files to my iPod, a message appears:
    "filename" was not copied to the ipod "My iPod" because it cannot be played on this iPod.
    So I cannot copy those files to iPod. But I can copy .mp4 videos to iPod without any problem.
    Why is this happening? How can I copy .mov & .mpeg files to my iPod?
    I am using the latest iTunes, 7.0.2.16. Also my iPod has the latest software, 1.2.1.
    Thanks

    Have you looked at the troubleshooting document? "Disk cannot be read from or written to" when syncing iPod

  • Elements 12 "Copy/Move to Removable Drive"

    Reference case # 185684196, phone support given last year, the problem persists.  In Elements 12, on my desktop PC (Windows 7, 64 bit) - I import photo files into the organizer, from camera card (RAW files, Nikon), THEN use the "Copy/Move to Removable Drive" function to move these files to a external hard drive (RAID 1 configuration) for permanent storage.  When I run this process, it initially moves the files to the destination drive -- then a dialogue asks (approximately):  are you sure you want to delete these files? (from the desktop drive) -- I click "yes" -- a progress bar runs -- and near completion, the process fails "Elements Organizer - 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."  In fact, there is a great amount of disc space available at the destination drive.  My wife and I use (for many years) this program for semi-professional purpose.  It is CRITICAL to avoid any corruption -- the indexing / connection between the organizer thumbnail reference images and the externally stored image files MUST be properly maintained.  What is causing this error message, what must be done to resolve the issue?  I couple of times, when this has occurred, I went to the storage drive, manually deleted the just-imported files, ran the process again -- and, on this 2nd attempt, the process completed successfully.  Obviously, this is not a long-term solution, nor a proper procedure -- and I always worry some sort of corruption may be introduced -- so, please advise the correct solution.  Also -- I have been advised, and do practice, not allowing the catalogue to grow beyond 5,000 images (I then start a new catalogue).  With the current, large batch of photos I'm importing (over 300 images), I'm also getting an "advice" message to back up the catalogue -- something I think I will do, to a different external drive, to have redundancy beyond even the present RAID 1 storage - however, this in no way solves the problem I'm asking you to help

    I don't know how you managed to write in such a tiny font, but I managed to read your post and here is my take about your problems.
    1 - What's the purpose of uploading from your card to your internal drive and not directly in your external NAS drive, since you don't keep them on your internal drive? You can use Windows to copy from your card to the NAS. You can even set the default location where the photo downloader in the Organizer sends your pictures. I don't have a NAS, but that works perfectly on an external USB drive.
    2 - Reminder: the Organizer does not store picture files, only links to their real location (drive and path, that can be on an external drive). The catalog itself by default is on your boot drive, but it can be used on an external drive (not on a NAS for Macs).
    3 - If you want to move files from your internal drive to the external one, you can simply use the drag and drop method in the left Folders panel. You can also 'export' selected files in the organizer to another drive.
    4 - The advice to limit the catalog size to 5,000 items and split catalogs is stupid. There are happy users of 100,000 pictures, and splitting catalogs only creates organizing problems without any real advantage.
    5 - About storing catalogs and photos on a network drive: http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Storing_the_catalog
    6 - What about your backup procedures? Do you use the built-in backup/restore feature in Elements? If you use another external backup, how do you backup catalogs?
    Photoshop Elements 6/7/8 Frequently Asked Questions (FAQ)

  • Windows 8 Copy/Move Dialog In Background

    Every time I copy/move something in Windows 8, that dialog that pops up is always in the background.
    Anyone else having this problem, how do I change it so its the foreground? 
    In addtion to this, sometimes
    when I click on the recycle bin and hit empty, it takes a few seconds to 20 seconds to give me the dialog that pops up.
    And things like that, randomly. 

    Hi,
    Does this occur if you copy in Safe Mode? Please try and inform the result. I think this is caused by 3rd party software.
    Juke Chou
    TechNet Community Support

  • Copy, Move, or XML import drops non 1080p clips with no warning

    What are the limitations on moving, copying, or exporting/importing XML?
    It seems that FCPX dropped all my clips that are not 1080p. And to make matters worse, FCPX went through the motions like it was moving/importing, but ignored the clips that were not 1080p and gave me no warning.  So I worked on the project for 2 days only to discover that part of the clips were missing.
    Has anyone else found this problem or do I have a configuration problem.
    I have some Gopro video and timelapse that are large frame sizes, 2.7k and whatever the medium timelapse stills were set to.  These are the problems.
    This seems to work with XML on the same computer, but when moving to a second computer is were the problem comes in.  The move/copy either events or clips dropped all my odd sized video clips, even on the same computer.  Again no warning.
    You can import the original clips but not copy, move, or export/import XML to another computer.  I thought XML export was the recommended way of working in a distributed enviornment with FCPX 10.1?
    Configuration:
    2 computers
    both OSX 10.9.2
    both FCPX 10.1.1
    all media is external to the libraray, so it needs to be re-linked when moved.
    It does appear that if I copy the library to the other computer that everything is OK, but not with XML.
    Should export/import XML work with non-standard frame sizes?  It would seem that if you can import the original clip, that you should be able to copy, move, export/import XML.
    Rick

    Thank Louis for the reply.
    My problem is not the media, but clip instances.  I have the media on both computers.  For some reason the unlinked images are not loading accept for the 1080p.  When the clips show up, I can re-link them without problems.
    I re-ran the XML import/export between computers, doing a complete round trip.  This time it worked!  I apparently am having a repeatability probelm, so I have some more work to do.
    However when I did a Copy event to Library command, only the 1080p clips appeared.
    Any suggestions on how to make this more repeatable?  Like emptying a cache or something.
    BTW  the clips that were dropped are 2704x1524 - would that make any difference?
    Rick

  • Delete partially copied movie file from iPhone. Shows grayed out in Videos on the iPhone but it doesn't show up in iTunes.

    Hello.
      I have synced my iPhone 4S with iTunes and I got an error while copying one movie. Now this movie shows up grayed out in videos on the iPhone but NOT in iTunes. Hence, I cannot delete this partially copied movie from my iPhone. And since it is grayed out, the right-to-left swipe does not work. I have resynced with "no movies" option so that every movie would be deleted and indeed every movie was deleted except for the problematic one. I rebooted the iPhone several times in case it was a glitch. No success. I even tried tools like iExplorer and DiskAid but I cannot find this **** file. Is there any way to delete this partially copied file from the iPhone without having to restore it?
    Regards,
    HawkeyeQ

    Hi adtsalmon,
    You can only watch the movie on the device you rented it on. Here's a snippet from the Apple Support site (italics mine):
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    Here's the link to the Movie Rentals FAQs site FYI:
    http://support.apple.com/kb/HT1657
    Hope this helps!
    Cheers,
    GB

  • HT1751 Hi I followed the istructions to copy/move iTunes music to a new PC, can see albums listed in Library, but SYNCH does not put any music on iPod. It took me three weeks to import my CDs into iTunes and i DON'T want to do it again! Can anyone help ?

    Hi I followed instructions to copy/move iTunes music to a new PC. I can see albums listed in the library but SYNCH will not put any music on my new iPod.
    It took three weeks to import my CDs on the old PC and I don't want to do it again!
    Can anyone help ?

    Take a look here; it should help:
    iTunes for Mac: How to copy purchases between authorized computers
    Though it refers to items purchased from the iTunes Store, it applies to all your iTunes content. And if you happen to also own an iPod:
    How to use your iPod to move your music to a new computer
    Once you have the tracks on some removable medium, you can mount that on your new computer and then just drag the content to the iTunes window. Make sure that the option to "copy files to iTunes Music folder when adding to library" is set in the iTunes -> Advanced -> General preferences before you do. Alternatively, you can use the Add To Library command and select each track (or folder of tracks).
    If you won't be using that Windows system once you move the content, don't forget to deauthorize the system from your iTunes Store account before you dispose of the computer.
    Regards.
    Message was edited by: Dave Sawyer

  • Problem in reading a resource file form JAR

    Problem in finding a resource file from the jar.....
    I have my code in the following directory structure
    rootDir -
         libDir -
              XMLEntities.res
         modelDir -
              File1
              File2
              File3
    Step1 - I create a jar file with root as modelDir and with all its files.
    Step2 - I add XMLEntities.res also to the root of the jar
    If I run my application using
    java -classpath ;C:\aip_build\build_dm\rmi_server_files\dm.jar; model.data_model.ActivateDataManager
    My application which uses Xalan.jar (lyong under ext directory in jdk) does not find XMLEntiries.res.
    If I use my application as under without creating jar my application does find XMLEntites.res
    Can anyone tell me why the application can not find the XMLEntities.res inside jar?

    Sorry I missed one line............
    Problem in finding a resource file from the jar.....
    I have my code in the following directory structure
    rootDir -
    ----libDir -
    --------XMLEntities.res
    ----modelDir -
    --------File1
    --------File2
    --------File3
    Step1 - I create a jar file with root as modelDir and
    with all its files.
    Step2 - I add XMLEntities.res also to the root of the
    jar
    If I run my application using
    java -classpath
    ;C:\aip_build\build_dm\rmi_server_files\dm.jar;
    model.data_model.ActivateDataManager
    My application which uses Xalan.jar (lyong under ext
    directory in jdk) does not find XMLEntiries.res.
    If I use my application as under without creating jar
    my application does find XMLEntites.res
    java -classpath
    ;C:\aip_build\build_dm\rmi_server_files\;C:\aip_build\b
    ild_dm\rmi_server_files\lib
    model.data_model.ActivateDataManager
    Can anyone tell me why the application can not find
    the XMLEntities.res inside jar?try loading the resources as a InputStream
    something like :
    InputStream is = NameOfLoadingClass.class.getClassLoader().getResourceAsStream("XMLEntities.res");
    Hope this might help you in some way.

  • Problem on copy with hp printer m127

    hi
    sorry! my english is not good
    i have a printer hp m127 and i have problem on copy with this printer
    when i copy a A4 paper from feeder or glass don't print about 1 inch of botton of page but when i scan this page, it's correct and when i print scaned document, it's correct too
    I do'nt know why this problem exists
    thanks alot
    This question was solved.
    View Solution.

    Hi @hamidjoon , and welcome to the HP Forums!
    I see you are having copy issues.  I'd like to help!
    Before we get started, I need a little info:
     I am linking a few HP Support documents below that will show you how to find which operating system you are using. Also, if you're using Windows, please include whether your operating system is 32-bit or 64-bit.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please let me know what you find.  Thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Is there any way to add a digital copy movie to an iPhone without syncing with my iTunes library? I use iCloud to sync, not iTunes. So when I go to sync movies, it deletes the other ones I already have loaded on the iPhone. Thanks.

    Is there any way to add a digital copy movie to an iPhone without syncing with my iTunes library? I use iCloud to sync, not iTunes. So when I go to sync movies, it deletes the other ones I already have loaded on the iPhone. Thanks.

    or is there a way to upload the digital copy to store in my iCloud account?

  • Is this a bug?: copied movie clip has wrong frame rate and ruins the main movie's sync

    Hello,
    I am trying to copy a movieclip with a frame rate of 30 frames per second to a movie that has a frame rate of 30 frames per second. Both movies are actionscript 3 movies. When I do this, my copied movie clip's frame rate reverts to 12 frames per second and all my audio synched animation is trashed. Then when I change it back manually to 30 frames per second it makes my main movie's stage animation go crazy at full possible speed and the audio is all out of sync. I have not set export for sharing or action script on this movie clip. I've tried other movie clips that are 30 frames per second and it is all crazy!
    Is this a bug? What can I do? I've got 100s of movie clips I need to make. I can't keep remaking them just because flash has a screw loose. I'll go crazy!
    -theGibler

    Oh sorry I goofed! My main time line is 12 fps! I can't belive I didn't see this before.

Maybe you are looking for

  • FSCM Dispute Open items with Special GL account (SPL GL indicator)

    Hi All, We are  implementing dispute management  in SAP 5.0 . When we create dispute case in FBL5n tx, a error message appears     “A dispute case must always contain at least one receivable. For example,      you cannot inlcude only credit memos or

  • Playing out from FCP to Sony Z1

    have been using my sony z1 with no problems to capture onto fcp5.1 but when it comes to playing back out the finished sequence onto a dv master i can't get the z1 to read it. with other cameras in the past once you're connected up you can see on the

  • Af:inputListOfValues - bug?

    Hi, I have created a List of Values in the model layer of my application and have found a few problems with the component af:inputListOfValues. My create Organisation popup contains the following code: <af:popup id="editOrgPopup" contentDelivery="laz

  • Error upgrading the firmware from 3.0 to ny version on WLC

    Hi All, Please help me on this issue:- I am currently running 3.0 version on my WLC 4402 and i want to upgrade it to the latest versions. I am following the correct procedure mentioned in the cisco link but its failing. The error is TFTP Path is gett

  • Editing the Menu Bar in Workgroup Manager

    Hi There. Could anyone help me with editing the Menu Bar for my users. I want to do away with the 'GO' option on the Menu Bar so that my pupils cannot browse down to the 'Network' button thus stopping them browsing the network. I presume that it is a