Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

NotCheckedOutException during the moving folder

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

Former Member
Former Member replied

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

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question