Error during Transition to PUBLIC state

I was looking at the logs, and have noticed Exception at several places.

2010-02-23 12:05:10,453 INFO [STDOUT] java.lang.IllegalArgumentException: The revision ‘8’ does not specify the edit revision for the item with content id ‘29,066’ but the user ‘manvinder.singh’ has the item checked out.

The sequence of flow is:
The Guid for the item is created using content id, and the max revision id. The prepareForEdit() is invoked for the above GUID,
Updates are done on the item
Using the above Guid, the item is transitioned to Public state.

However, during the transitioning of the item to PUBLIC state, the exception is thrown.

manvinder

Manvinder,

Transitions can only be performed on a Content Item when it is checked in. Invoke ReleaseFromEdit() before making the transition, and your problem should be resolved.

RLJII

In addition, you can call releaseFromEdit() and set the “checkin only flag” to FALSE, the item will be returned to the public state without any further action.

How do we set this check in flag to FALSE? Is it a property in the PSCoreItem that we need to set?

Manvinder,

It’s a flag on the ReleaseFromEdit service. See the Web Services development Kit for details.

RLJII