AnsweredAssumed Answered

Unable to set the search location in a java script using the API

Question asked by Jean-FrancoisAnctil606475 on Oct 15, 2014
Latest reply on Oct 16, 2014 by kay_koll_automic
Hi,
      I have a script in java and I want to search all the objects in a specific directory. So, I have this in my script:

SearchObject search = new SearchObject();
search.selectAllObjectTypes();
search.setSearchLocation("/dir1/dir2",true);
search.setName("*.*");
cnx.sendRequestAndWait(search);

At execution, I've got this error: Exception in thread "main" java.lang.RuntimeException: Cannot find information for path '/dir1/dir2'.

Can anyone help me with this?

jfa

Outcomes