Hello I am using ECS ver. 10. Web Service and for some reason the getNodeByName always returns me a null when I wanted to navigate under a 'project' (the method works OK if the parent is not a 'project', such as a 'folder'). The folders exist under a project. I can see it with the listNodes command and view the UI.
I wrote a silly test in java like below to test it out, and sure, all nulls:
//int testProjNodeId =563248; //parent is a folder, works
int testProjNodeId = 864565; //parent is a project, not working
List<Node> nodeList3 = docMan.listNodes(testProjNodeId, true);
int ttobj3 = nodeList3.size();
for (int i=0;i<ttobj3;i++){
Node cNode = nodeList3.get(i);
System.out.print(cNode.getID()+"--- Name:"+cNode.getName()+", and its type: "+cNode.getType()+"\n");
Node testNode = docMan.getNodeByName(testProjNodeId, cNode.getName());
if (testNode==null){
System.out.println("the Node does not exist");
}
}
Please help.
Thank you,
---Yang