on 10-22-2007 10:11 PM
during the moving folder to the target folder I've got exception:
Error in Resource::moveResource method for resource /documents/Test123
[EXCEPTION] #1#com.sapportals.wcm.repository.NotCheckedOutException
ICopyParameter cp = new CopyParameter();
cp.setIgnorePropertyFailures(true);
cp.setOverwrite(true);
resource.move(destinationRid, cp);
Somebody has faced a similar problem??
Many thanks in advance
Hello Costa,
i think the problem comes from versioning or approving processes set on KM folder.
Try this:
if (resource.isVersioned()){
if(!resource.isCheckedOut()){
resource.checkOut();
// Your CODE here
if(resource.isCheckedOut()){
resource.checkIn(null,null);//resource.checkIn(resource.getContent(),resource.getProperties(),true);
}
}else{
// Your CODE here
}
}else{
// Your CODE here
}
regards.
mz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maxim ,
Thanks a lot for your advice .
Really appreciate it
Thanks
Costa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.