I am trying to delete objects using dfs and i get the following error:
Emc.Documentum.FS.Runtime.ServiceInvocationException: Service method "Delete" invocation failed. ---> System.ServiceModel.FaultException: "Delete" operation failed for object: 0901024b80046915. java.lang.NullPointerException
I also tried deleting with dql using queryservice and got the same error.
Other opertions are executed well by the same dfs.
There is no problem deleting objects manually in webtop. or by running dql statement not through DFS.
The code:
ObjectId objectId = new ObjectId(r_object_id);
ObjectIdentity objIdentity = new ObjectIdentity();
objIdentity.Value = objectId;
objIdentity.RepositoryName = DctmRepository;
ObjectIdentitySet objectIdSet = new ObjectIdentitySet(objIdentity);
DeleteProfile deleteProfile = new DeleteProfile();
OperationOptions operationOptions = new OperationOptions();
operationOptions.DeleteProfile = deleteProfile;
ObjectService.Delete(objectIdSet, operationOptions);