You can use an OASIS CMIS service, such as getChildren or query, to determine the objects that are still in the folder.
See the content management server documentation for information about resolving the error that occurred on the content management server.