Unable to edit old versioned file in KM

Hi,
I have a requirement wherein I need to edit older versioned file in KM programatically. I have got the older version file but I am not able to edit it and it gives an error; "*this collection does not support workspace creation".
Supopse, I have versioning enabled on /documents/Public documents/test folder programatically. I created new version of a file say test.txt in it through code. This much is working fine. But, editing of older versioned file is creating problem. I used the below code:
IVersionHistory iVersHistory = fileResource.getVersionHistory(); // fileResource refers to test.txt
wdComponentAPI.getMessageManager().reportSuccess("IVersionHistory SIZE: " +iVersHistory.size());
IResource resourceElement = null;
name=fileResource.getName();
IResource R1v5VCR=null;
for(int i=0; i < iVersHistory.size(); i++)
  resourceElement = iVersHistory.get(i);
  list.add(resourceElement);
  if(resourceElement.getName().equalsIgnoreCase("test(3).txt"))
    //resourceElement.setAsCurrentVersion();
   ICollection collection = folder; // refers to /documents/Public documents/test folder
   wdComponentAPI.getMessageManager().reportSuccess("Reached "+collection.getRID());
   if( collection.isA(IExtendedCollection.class) )
     wdComponentAPI.getMessageManager().reportSuccess(" extending ");
     IExtendedCollection extendedCollection = (IExtendedCollection)collection.as(IExtendedCollection.class); 
     ICollection workspace = extendedCollection.createWorkspace("myworkspace", null); ---> Error on this line
     wdComponentAPI.getMessageManager().reportSuccess("Created test folder workspace ");
     IExtendedCollection Wa = (IExtendedCollection)workspace.createCollection("test",null).as(IExtendedCollection.class);
     R1v5VCR = Wa.createVersionControlledResource(resourceElement.getRID(), resourceElement.getName(),null);
     wdComponentAPI.getMessageManager().reportSuccess("Created New versioned resource ");
    // more code but unreachable code
For editing a revision resource (i.e older version file), we have to create workspace on extendedCollection.
I went through this URL: [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/netweaver/netweaver-developers-guide-2004s/NetWeaverDevelopersGuide2004s_Documents/KM_articles_new/howto/rf/client_api/rf_client_api_sdn.html|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/netweaver/netweaver-developers-guide-2004s/NetWeaverDevelopersGuide2004s_Documents/KM_articles_new/howto/rf/client_api/rf_client_api_sdn.html]
Let me know if you have any solution or suggestion in this context.
Thanks,
Udit

Hi Julian,
Tjanks for the reply. But I already moved with that approach. I was finally able to create the workspace and a new versioned resource inside the workspace. But I get a new error on checkout of the resource: "subsequent checkin is expected to cause a fork!"
Below is the code snippet used:
IResource R1v5VCR=null;
IResource resourceElement = iVersHistory.get(5); // file(5).txt is coming properly
IResourceMetadata resourceMetadata=(IResourceMetadata)resource.as(IResourceMetadata.class);
IRidSet ridSet=resourceMetadata.getWorkspaceCollectionSet();
IRidIterator iter=ridSet.iterator();
RID workRID=null;
while(iter.hasNext()){
workRID=iter.next();}
ICollection newWorkSpace=(ICollection)ResourceFactory.getInstance().getResource(workRID,resourceContext);
wdComponentAPI.getMessageManager().reportSuccess("Created folder workspace ");
IExtendedCollection Wa =(IExtendedCollection)newWorkSpace.createCollection("test",null).as(IExtendedCollection.class);
R1v5VCR = Wa.createVersionControlledResource(resourceElement.getRID(),resourceElement.getName(),null);
R1v5VCR.checkOut(); --> Error on this line
So, this issue is taking time now and I want to resolve it soon.
Regards,
Udit

Similar Messages

  • Unable to remove old version of iTunes

    no "remove" option, in the control panel for itunes, downloaded new itunes, can't install it. message said
    "cannot remove old version, contact technical support group".
    i give up.
    anyone know about this???

    First, head into your Add/Remove programs and uninstall your QuickTime. If it goes, good. If it doesn't, we'll just attend to it when we attend to iTunes.
    Next, download and install the Windows Installer CleanUp utility:
    Description of the Windows Installer CleanUp Utility
    Now launch Windows Installer CleanUp ("Start > All Programs > Windows Install Clean Up"), find any iTunes and/or QuickTime entries in the list of programs in CleanUp, select those entries, and click “remove”.
    Next, we'll manually remove any leftover iTunes or QuickTime program files:
    (1) Open Local Disk (C:) in Computer or whichever disk programs are installed on.
    (2) Open the Program Files folder.
    (3) Right-click the iTunes folder and select Delete and choose Yes when asked to confirm the deletion.
    (4) Right-click the QuickTime folder and select Delete and choose Yes when asked to confirm the deletion. (Note: This folder may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
    (5) Delete the QuickTime and QuicktimeVR files located in the C:\Windows\system32\ folder. Click Continue if Windows needs confirmation or permission to continue. (Note: These files may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
    (6) Right-click on the Recycle Bin and on the shortcut menu, click Empty Recycle Bin.
    (7) Restart your computer.
    Now try another iTunes install. Does it go through properly now?
    (thank you very much, {b nior})

  • Unable to remove old version of iTunes, apple application support.msi

    Hi, I'm having trouble with my itunes and i don't know how to uninstall the old version of itune or uninstall the apple application support file that is in my control panel if anybody can help it will be greatly apprciated....

    Did you get your issue resolved?  I think I'm having the same problem.  I can't uninstall itunes and I can't reinstall itunes without a box popping up stating
    " The feature you are trying to use is on a network resource that is unavailable.  Click ok to try again, or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below"
    And when I search for that file on my computer, it finds 2 different paths and NEITHER of them contain the .msi file.   I'm ready to pay apple support just so I can scream at someone.  This is so frustrating!!!!

  • Unable to remove old version of Power Query

    I suddenly observed that Power Query and Power View tabs are missing from my Excel 2013 Pro Plus. Don't know the reason for this, but when I tried to install again, it says "The feature you are trying to use in on a network resource that is unavailable...
    Enter alternate path to a folder containing the installation package "PowerQuery_2.10.3598.81 (32-bit) [en-US].msi
    Old version of Microsoft Power Query for Excel cannot be removed.
    Can you please help me with this error?

    How are you attempting to uninstall the old version of Power Query? Add/Remove Programs?
    Ehren

  • "Unable to uninstall old version of Quicktime" - HELP PLEASE!

    I am trying hard to install iTunes 7 on my PC and when running the installer it tries to uninstall the old version of quicktime and it cannot. I uninstalled it manually through the control panel, but it said some parts could not be removed. iTunes 7 still will not install. Is my PC messed up or, though iTunes 7 is released, is it just not at the stage where we want to be installing it? Should I wait for an updated version?
    As well, the iTunes installer installed Apple Updater. I ran it, and it said my programs were up to date, which is not true seeing as iTunes 7 is not installed.
    Please help!

    Just goto the control panel and remove/uninstall all listings for iTUnes AND quicktime.
    Go here at microsoft and install the windows cleanup utility http://support.microsoft.com/default.aspx?scid=kb;en-us;290301
    Once installed goto start>all programs>Windows cleanup
    Remove each listing of iTUnes one at a time, For example if theres 2 or more listings of iTUnes, highlight ONE and click remove, then highlight the seconnd one and remove it ect ect
    Do the same for all listings of quicktime
    Now scan the system for malware with Ewido http://www.ewido.com
    After that disable your antivirus and security programs then head to apple.com to download and install itunes

  • Unable to import old AB files- SL

    Hello,
    Just upgraded to SL from Tiger. Did a full backup (not with Time Machine as it wasn't included with Tiger) onto an external drive. ( I used SuperDuper if that helps any)
    I can see all my old AB files on the backup drive (looked in my home Library/app supp/addbk and also found the Metadata folder in /Caches)
    When I tried to import my old data into SL, all my old AB files are greyed out and I can't select them or any folder associated with them in order to import them into Snow Leopard.
    Things I've tried: I took the entire Address Book folder from my backup and used it to replace my Snow Leopard folder of the same name and location. No good. No errors either, just ignores the data.
    Help?

    Woot!
    Seems that the drive has a quirk in that it needs to be triggered during startup to boot.
    I had used the "option key" to select the drive which didn't work. When I went into "System Preferences" and "Startup Disk", selecting the backup and rebooting it worked!
    Sigh. It's illogical quirks like this that drove me to Mac's in the first place -Windoze is rife with them!
    Oh well, this is the first real quirk I've run into, guess I shouldn't complain.
    Thanks for all the help!

  • Unable to edit .vsdx visio file that is inside a document library using visio 2010 sp2

    I have Visio 2010 SP2 installed locally inside my machine. The current version can open vsdx files by doing some conversions. I got the following scenario inside my SharePoint server 2013:-
    Currently I have Visio file (with .vsdx extension) uploaded to my SharePoint 2013 document library.
    If I click on the Visio file I got the following dialog.
    I select “Edit”, click on ok.
    Then the visio 2010 application will convert the current file and open it locally inside my machine.
    But the opened file will have it name as “Copy (1) of ….”, as follow:-
    So if I do some changes to the Visio file and I click on save I will not be able to save my changes back to the SharePoint server’s document library. Now if I do the same steps for a .vsd file not .vsdx then I can directly open the Visio file (without any
    conversion process) and I will be able to save my changes back to SharePoint server.
    So can anyone advice how to be able to edit .vsdx files which are uploaded to SharePoint document library using visio 2010 SP2 ?
    Thanks

    Thank you for your ideas.
    After that last posting, but before your response, I asked them to add the local farm to their trusted sites zone. Several blogs I had encountered while searching had listed that as something they had tried.
    As soon as they added the site to their trusted site zone, the problems went away.
    It was definitely not all users - I only had 2 people directly contact me about the issue.
    I never got a chance to ask them about other SharePoint sites - they were working on the sites where they spent most of their time - I don't know if they had other sites.
    The old location and the new location of these 2 sites are in the same site collection - it was moving them from
    http://myfarm/sites/div/dept67/site1
    to
    http://myfarm/sites/div/dept64/site1
    basically (with the actual names changed to protect my job).
    The site collection is /sites/div . So the site collection features are the same.
    I suppose that the site features could have changed between the export and the import - but since things are working now and I didn't change any features, I don't think that it is.
    At this point, things appear to be working. However strange that seems to me.

  • Downgrade probs with desktop mgr: app loader retrieves old version files thru internet

    really this is for desktop mgr 4.6 and 4.7 but i could not write to thread some time ago i purchased documents to go premium. unfortunately at first dataviz was insiting it would only be available OTA, after install, and later after os upgrade to patch .055 of RIM OS 4.5, at first it wanted to downgrade documents premium to go to the base edition that is included in the OS. then i was using desktop mgr 4.2 or 4.3 this cost me some 20 eur for reupgrade OTA, great, guys then i found the same solution which another thread quotes, i.e. to prevent downgrading by renaming the base alx/cod file for docs to go in the loader directory (common files, rim , shared or such, also there is a cache directory) this helped for a while then i met this text by dataviz, which was suggesting RIM had "fixed" the downgrading issue in desktop mgr 4.7 well cheers after installing it (and i have two pcs, on both of which i had to field the same obnoxious tragedy), the device was telling me it wanted to downgrade documents to go. dataviz smartly suggested i should rename the backupfile of docs to go, reboot the device and delete docs to go base edition and reboot again. now obviously, the base edition can t be deleted, since it is part of the OS base of RIM OS 4.5 (after uninstall) but even better: i was NOT able to reupgrade (i now had some desktop installer files for the premium edition) NOT AT ALL even reupgrading OTA would bring back the same stupid !requirement" from desktop mgr to downgrade docs to go dataviz was maintaining, their "fix" was crucial and works. but it does not. some 30 hours later, by accident i found the cause. my BB has OTA switched off. NOWHERE on the pc could i found traces of the old docs to go loader... really nowhere ? no, ALMOST NOWHERE. in temporary internet files there suddenly were some. and it had a url. so the app loader is trying to retrieve the old files from the BB OS vault. i unplugged the pc from the internet, and viola, the upgrade works again. and, sure enough, reconnecting it to the internet, the app loader immediately wants to downgrade the SW again. how abt fixing this. the user should be able to control, what version he wants to have, and also there should be control over whether i want the app loader to retrieve SW from the internet. (and of course dataviz should supply their SW for desktop installers, not just OTA, since the adventure cost me some 40 eur in total for useless OTA reupgrades, which i am not responsible for)

    not exactly true is maybe this problem.
    but in those 30 hours i was NOT able to erase the application AT ALL
    pull on battery or legs. it CANNOT be highlighted for deletion, even after clearing cache and uninstalling pdf to go and documents to go either thru options adv options applications or thru app mgr.
    but it absolutely can t be that RIM is leaving this matter as it is

  • Lion - unable to read old leopard files on windows server

    Hi,
    We had a mac which was on Leopard and saved files to the server
    The file system we use is a Windows 2008 File Server, this has worked fine with leopard for years
    However I understand that Leopard splits the files into resource forks - and that Lion has dropped support for these files.
    That particular mac is now on Lion as we upgraded and encountering LOTS of issues
    I unable to open or edit lots of the files as i believe chunks of the files are missing.
    E.g an .eps file showed as 740KB on leopard - Viewing from a windows PC it was 730kb for the .eps and 10kb for the ._ resource fork.
    Now that we are on the LION upgrade, we only see the .eps file and it is only 730kb. Information missing is things such as preview (quark), Font data, type of file, version number
    Is there anyways to fix this? we have hundreds! of images, files etc created with leopard and now upgraded to lion they all have become useless!
    Rejoining the resource forks and files together so that they are usable on lion
    Thanks

    You installed the Developer Tools and ran the command line utility fixupresourceforks?
    I would think that would work.  Can maybe try this as well:
    Check to see if the file is already created and if not create it using the first line using touch. If file is already there just run the other two lines following the touch command line: 
    sudo touch /etc/nsmb.conf
    sudo echo "[default]" > /etc/nsmb.conf
    sudo echo "streams=no" >> /etc/nsmb.conf
    If you have slow browsing and issues create or renaming folders add:
    sudo echo "notify_off=yes" >> /etc/nsmb.conf
    Then re-connect to server shares or reboot and connect to shares again.

  • Unable to Edit Imported Jpeg files.

    I'm currently using iPhoto 9.6 and OS 10.10.   I have created jpg stills from .mov projects using QT Pro and imported them successfully into a previous version of iPhoto where I was able to crop them and make rudimentary color and exposure adjustments.  With the new iPhoto 9.6 I cannot.  I get an error message "Image Cannot Be Edited.  The original format is not supported."
    So I am assuming the only way to edit these imported jpegs is to open them in Lightroom or Photoshop make my adjustments and then attempt to re-import them into iPhoto or maybe just stop using iPhoto all together for this kind of file?

    Yes "master" copies of files - those located in the iPhoto >>package contents >> Masters folder organized by import date - once they have been edited from within iPhoto (exposure corrections, cropping, straightening, etc) become the master copies.
    Bewilderingly vague. They are the masters. They are never edited. The photos are edited and the results recorded in the SQL database. The never "become the Master copies". They are the Masters and never become anything.
    To prove this I have selected a master file from with this directory and created a copy of it on the desktop where I gave it a new name, then re-imported it to iPhoto and re-opened it there.  It is a virtual clone of the original edited file - edited from within iPhoto save for its name - an "edited master". 
    If you made a copy of a Master then it's not a virtual clone it's an actual clone. "It is a virtual clone of the original edited file" Huh? What's an "original edited file"? It's a Master or something else? Which is it? There is no concept in iPhoto of 'edited Master'. There are Masters. That's the file as imported from your camera. It is never edited. End of story.
    Subsequently from within iPhoto I have chosen the original photo - the one that had been modified to begin with - and reverted this file to its original version.  So then I had two masters of the same shot - one edited and one in its originally imported state.  Why did I do this (and originate this post)?
    No you didn't. You had two masters to begin with and thereafter you had two masters at the end. When you reverted to original all you did was delete the edit decisions for the database and destroy a preview. In no case was the Master touched.
    The terminology is important because it explains how the app works. You're conflating photos (which are edited in iPhoto) with files (which are never edited in iPhoto), all photo edits are virtual until baked in on export. That's why the concept and the term Master is important. Edited Master means nothing, Master of an Edited Photo does, but that's a different thing.
    Because I could not re-edit or export these affected photos unless I first re-imported them to iPhoto by either locating the original files from storage media or making copies of them from iPhoto's package contents>>masters folder as above and importing them back into the iPhoto library.  Once I did this - there were a lot of these affected files - I could edit and export to my heart's content.  Remember, these files were modified from within earlier versions iPhoto itself.  Yes, some files had been converted to jpegs from original PICT exports out QT Pro using Photoshop Elements.
    Because your database was corrupted. It has nothing to do with Masters/Versions or anything else. It was broken.
    How do I explain this apparent corruption of the iPhoto library database?  Disclaimers to the contrary, I put the onus on having to convert the db every time there is an app iteration which is sometimes coupled with an OS upgrade (like with Yosemite).  I suspect that the file metadata is susceptible to corruption during these upgrades.  It is the only variable in an otherwise static and stable environment that could possibly result in library corruption short of hardware failure.
    That's one possibility. Here are some more: anytime the app is interrupted writing to the database - by a crash, hang or even a power surge, bad blocks on a disk - there are many possibilities..
    And again, there is no need to convert the db "every time there is an app iteration". There are updates when it is not necessary. And, as I keep on saying, OS upgrades make no difference. It's app upgrades only.

  • Unable to edit my raw files after uploading

    I am using PCS2 and windows XP. Canon 30-and-40D. I am just learning about photoshop and RAW files. I did go to the update 4.3 was unable to use so I down loaded DNG. I can convert the RAW files to jpig however I can't use them in bridge or photoshop as a RAW file to make the changes that I would like. After doing some reading on the forum I am still having problems. My plugin is 3.7. Is their anything in preferences that might need to be changed. Thank Joe

    Personally, I wouldn't dismiss the idea of the DNG converter, at least until you get Lightroom and are comfortable with it. Just download the latest version and use it to create Digital negative copies of your raw images. You will still have your original raw images, and the image data in the DNG files is exactly the same image data. You can get identical results with the DNG file. And you will be able to use ACR 3.7 just as you always have been able to do.
    Then, Lightroom is something that you can learn at your own pace. As you become more comfortable with it you will be able to work with the DNG files that you started working on with ACR 3.7. I think starting with the DNG converter would provide you with a good transition as you become familiar and comfortable with the new controls and the new interface in Lightroom.

  • IWeb Publishing New Version But Only Allows Me to Edit Old Version

    In OSX 10.7.5 and iWeb 3.0.4, the iWeb app opens to show my website as it was 1 year ago. When I visit the site published on the web, it shows my most current version of the site as it's posted through a local folder and online Dropbox. How do I get my most current version to show through iWeb so I can make further edits?

    You need to download iWeb user sites or domain cracker to be able to open individual domain files.  In OS 10.7 and above, you can only open single domain.sites files.
    Download it and you should be able to open your current domain file.

  • Unable to edit an ASP file in KM content

    I have a colleague working on a customer portal where some ASP files were created and stored in the KM content.  The customer is requesting to edit the content of one ASP file (basically, remove one section).  However, when viewing the file in KM content, there is no option to edit it.  This issue happens only to one specific ASP file, while all the other ASP files in the KM content are editable.
    According to a previous developer (who has since left the project), the ASP file is a wrapped XLM file.
    Hoping to get some help on this issue.  Thanks in advance.

    Hi, Charisse Basilio!
    You need to add "text/asp" MIME type to the list of the Online editing types.
    Try to do following:
    1. Find a list of MIME types, see: Content Management - Utilities - Editing - Online Editing.
    2. Add after comma this string:  text/asp. For example:
                   Supported Mime Types for editing: text/plain, text/html, text/xml, text/asp
    3. Save your changes.
    Also, see this [article|http://help.sap.com/saphelp_nw70/helpdata/en/a6/181b09bcc7fe4389c8c17d2ad849cc/frameset.htm]
    Hope it helps. Mikhail.

  • Unable to edit PDF output file

    After report server generating the PDF file, The PDF file cannot be edited by acrobat writer. Is there any method to make the PDF file editable ? Thanks

    Hi Auanthony,
    Sorry, I can't help you, but want the same from you.
    Actually we need to implement this security feature in our application. Will you kindly tell me how you have generated such PDF reports?

  • Unable to uninstall old version and install 9.2

    Help!!! When trying to install itunes 9.2 I get a pop up saying "The feature you are trying to use is on a network resource that is unavailable". It then goes on to say..."Click OK to try again, or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below". I can then browse to a path but nothing seems to work. When I click cancel another pop up says..."the older version of iTunes cannot be removed". Please help

    These sorts of msi-related troubles have gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes 9.2 again. Does the install go through properly this time?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

Maybe you are looking for

  • Deleted iPhoto photos in photostream

    When I upload photos into iphoto it creates an event (I have hundreds as am using a time delay sports camera). I then delete the unwanted photos from the event in iphoto BUT photostream uploads ALL photos.  Even when I go into WEB Photostream on imac

  • My videos have sound...but no image!

    Hi, I have a really annoying problem in iMovie 08'... like... when I click on a clip, I don't see the video in the screen(at the right)... it stays blck... like all the time...... in fact there's only one project that I can see on the the screen... a

  • XML Schema Element any

    Is there any workaround or planned support for the XML any tag in future for PI 7.1?

  • How to get smaller window of picture in pe10

    I'm new to pse10.  I recently saw someone draw in the Program and saw that they had two screens: one was what the picture was as they drew up close and the 2nd was the same photo but was from its true size.  Both were changing real time.  Can anyone

  • ADF MOBILE: Storing images into sqlite DB

    Can someone please show me how to store and retrieve images and other file types into the local sqliteDB. I know I have to use blobs, but what is the process of converting a file into a blob and converting a blob into a specific file (an image or pdf