This article only applies to datasets created prior to the introduction of Read/Write datasets in version 4.5. So it only applies to datasets created prior to version 4.5.
When you archive a dataset, only a Domino Admin can make that action permanent. Normally it's possible to unarchive or restore the dataset.
Look up the dataset_collection that matches your search for missing Dataset
db.dataset_collection.find({name:"datasetName [archived]"}).pretty()
Look up the dataset_collection to ensure we've still got the right one, and it's flagged as archived:
db.dataset_collection.find({ "_id" : ObjectId("<Insert Dataset ID>"), archived: true}).pretty()
Here we're using the unique "_id" to look it up. We'll use this "_id" for the rest of the operations as well.
Next is the actual update command to run:
db.dataset_collection.update({_id: ObjectId("<Insert Dataset ID>")}, {$set: {"name":"<Insert Old Name>", "archived": false}})
If done successfully you should see an output that says WriteResult ({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 }).
If you don't rename it, it will contain the text: [archived]
Finally, look up the record one last time to ensure the changes were successful:
db.dataset_collection.find({ "_id" : ObjectId("<Insert Dataset DatasetID>"), archived: false}).pretty()
Afterwards, the dataset will be seen right where it used to be.
Sometimes Datasets have tags, and the tag may be required as well - locate the Dataset and create the old tag if that is the case. Workspace startup will print the tag in the error output.
You can undo the restore operation and archive it manually or by setting the name (to DatasetName [archived]) and archived: true flag with the same commands used above.
Comments
0 comments
Please sign in to leave a comment.