This discussion is archived
1 Reply Latest reply: Jul 8, 2011 1:45 AM by user8726358 RSS

Auto versioning

user8726358 Newbie
Currently Being Moderated
Our software is integrated with CDB. When user adds document to our application we do add a document (with category that have some attributes) to specified folder in CDB. After 10 minutes our application updates document. To be specific we update only attributes on category not a content of document.

Now client turned on auto versioning on folder where we store documents (It is needed for client to keep track of changes on document) And here is strange situation because sometimes on client machine when we try to update attributes we get error : ORACLE.FDK.ItemNotCheckedOut. it does not happen all the time only once a while!

Moreover this problem does not happen on our local environment with ContentDB.

In our code we simply call updateDocument method as follows (We do not check In or check out any documents):

AttributeRequest[] requestedAttributes = AttributesRequests.CATEGORY_CLASS_ATTRIBUTES;
fileManager.updateDocument(document.getId(), documentDef, requestedAttributes);

Is there any setting in Content DB that can be turned on / off to make it work all the time? Why the code above works on local environemnt and sometimes doeas not work on client's environment ?

Thank You for help.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points