Hi,
We need to implement below functionality
- Unlink an entity.
We are using OpenText TCP 10.0.1 and OpenText context server API.
We referred the document – “Programming Guide for the Open Text TCP Context Server API.pdf” for the same.
According to the sample code(for unlink pg. 72 / 3.4.10 TCP Folders) we need to provide the path of the entity which is to be unlinked, however it gives path not found exception even though correct path is provided.
We had provided the following input to the unlink code :
- String path="//apps/livelink/TCP1001/OIArchiveStorage/OI_HDSK_0046/00/00/00048AF6"; // physical path where the document is stored
- String entityId = " OIDBUK0000297718"; // entity id
The output was as follows :
Validating the path ...parent Id : ixos.dms:Root
Params size : [parentId=ixos.dms:Root, childName=apps]
records :0
Params size : [parentId=, childName=livelink]
records :0
Params size : [parentId=, childName=TCP1001]
records :0
Params size : [parentId=, childName=OIArchiveStorage]
records :0
Params size : [parentId=, childName=OI_HDSK_0046]
records :0
Params size : [parentId=, childName=00]
records :0
Params size : [parentId=, childName=00]
records :0
Params size : [parentId=, childName=00048AF6]
java.lang.RuntimeException: Path //apps/livelink/TCP1001/OIArchiveStorage/OI_HDSK_0046/00/00/00048AF6 does not exist!
records :0
done.
at unlink.Unlink.main(Unlink.java:157)
Can anyone provide a solution/fix?
Thanks and Regards,
Kamlesh Awari