DOCS- Deleting documents from DOCs which are pending approval in Openspace
Article ID
deleting-documents-from-docs-which-are-pending-approval-in-openspace
Article Name
DOCS- Deleting documents from DOCs which are pending approval in Openspace
Created Date
14th March 2023
Product
Problem
Deleting documents from DOCs which are pending approval in Openspace
Resolution
When attempting to delete a document from Docs which has been sent for approval in OpenSpace, this message appears: “The selected document is pending approval. It cannot be deleted.”
There is not currently a way of deleting documents which are pending approval in OpenSpace from within Iris Docs. The below script will need to be run on the Docs database to remove the publishing state from to document:
- Open SQL Server Management Studio on the Docs server
- Select the instance where the Docs database is
- Expand Databases
- Right click the Docs database and select New Query
- Copy the below into the new query:
UPDATE NODE
SET PUBLISHINGSTATE = 55
WHERE PUBLISHINGSTATE = 52
and NODENUM in (XXXXX)
- Change XXXXX to the reference number of the document in Docs
Note: you do not need “IRIS” at the start, just enter the number
- Click Execute
This script can be run for multiple documents at once, simply enter each document reference number separated by commas for step 6.
For example if you were deleting documents with references IRIS1000, IRIS2000 & IRIS3000, the last line of the script would be: and NODENUM in (1000,2000,3000)
We are sorry you did not find this KB article helpful. Please use the box below to let us know how we can improve it.