correct the update statement for setting archived flag on SM where document revision does not exist in the xml_documents table
correct the update statement for setting archived flag on SM where document revision does not exist in the xml_documents table