Windchill RV&S 13.1.0.1 Error: MKS6411972: Item "491775" does not exist
Hi all,
We want to delete unused Requirement/Test documents from Windchill RV&S, for that we found that we can use im deletesegment command and this should run through APIs, below is the code snippet
IntegrationPoint ip = factory.createLocalIntegrationPoint(4, 16);
Session s = ip.createSession(USER, PASS);
Command cmd2 = new Command("im", "deletesegment");
cmd2.addOption(new Option("reportOnly"));
cmd2.addSelection("491775");
CmdRunner cr2 = s.createCmdRunner();
Once we run this, we are getting error - MKS6411972: Item "491775" does not exist.
Is there something missing, is this a correct way to use this command, any inputs will be helpful.
We have done the prerequisite given in help document, so permission is there.
Thank you!

