One of my "helpers" decided to delete links from his module using delete all outgoing links. Unfortunately, he accidently did it to the wrong module. Scolding aside, I have the history of the module for that session, which gives me the objects in the source module that had the link deleted. Now, I have to go to the history of each one of those objects to see what the target ID was (I am sure of the target module, and of the link type). I am populating an attribute in the source module so we can use it to link by attribute to get the links back, and to insure against future fumbles. |
Re: Recovering from Edit Links - Delete All :-(( Here's a possible alternative - consider creating a temporary instance of a DOORS DB and restore a BU copy of the production DOORS DB taken prior to this incident (may need to delete the servdata.dtc file if the BU was done whilst the DB service is running). Re-direct a DOORS client to access this new instance so that you can open up the module and see the links that have been deleted. Two options. 1: Use this temporary DB instance as a guide to rebuild the links manually in the production DB. 2: In the DB instance, capture the UID's of target links, export these attributes to a csv file and include the source UID of the module in the export, import this data into the same module on the production DB and then use the Link > Advanced > Link by Attribute menu option to rebuild the links. There is a lot of detail missing above - if you need more details on how to create a new instance of a DOORS DB (it's surprisingly easy), capture UID's into attributes, export and import then let us know. The kitchen scripts can be useful here as there is a handy function that will copy target UID's into an attribute in the source module - the Kitchen Script menu path is Links > Save Links as an Attribute. Always handy to have a development level instance of a DOORS DB server readily available for situations like this and many others. Paul Miller Melbourne, Australia |
Re: Recovering from Edit Links - Delete All :-(( Attachments attachment_14580370_undelete_links_from_history.dxl |
Re: Recovering from Edit Links - Delete All :-(( Pekka, thank you for the script. I'm sure it will spawn lots of application, especially around metrics reporting from history. |