MKS125216: sandbox file is not registered with the system / MKS124822: Invalid value provided for "sandbox".
Hi,
I am trying to add member (si add), check-out (si co) and check-in (si ci) through MKS APIs but I am receiving below error,
com.mks.api.response.InvalidCommandOptionException: si: MKS124822: Invalid value provided for "sandbox": File paths must be rooted in <Integrity_installed_directory>\data\tmp: sandboxName is set to <sandbox_path>\project.pj
After getting this error I have created sandbox on <Integrity_installed_directory>\data\tmp path but then I get the below error,
com.mks.api.response.ItemNotFoundException: MKS125216: The sandbox file <Integrity_installed_directory>\data\tmp\<file_name> is not registered with the system.
Though the command created through the MKS APIs are executed successfully from the command prompt.
Kindly assist me on this and have a look on the command creation code.
Add member command code:
public Command checkInCommand(CheckInFileVO checkInFile) {
Command command = new Command(Command.SI, "ci");
command.addOption(new Option("sandbox", checkInFile.getSandbox()));
command.addOption(new Option("author", checkInFile.getAuthor()));
command.addOption(new Option("description", "Update revision"));
command.addOption(new Option("yes"));
command.addSelection(checkInFile.getFilePath());
System.out.println(IntegrityUtil.printCommand(command));
return command;
}
Same way the check-out and check-in command created, let me know if you need to have look on those command code as well.
Thanks,
Gajanan

