Hi Vladislav,
have you tried to first checkOut the document and subsequently use the documentID which was returned by the checkOut operation as input for the setDocumentContent operation?
In a nutshell, a documentID refers to one version of a document. If you work with a document which already has more than one version, you may want to use the versionSeries to determine the latest version of the document.
Best regards,
Michael
------------------------------
Michael Kirchner
Leading Technical Specialist - Digital Business Automation
IBM Technology
Germany
------------------------------
Original Message:
Sent: Fri October 15, 2021 08:33 AM
From: Vladislav Tishchenko
Subject: CIL2106 - update document content issue
Good day,
I'm trying to update document content with "Content integration task" and operation name "Set document content" where i'm trying to change string inside document that is located in FileNet. Issue is that after service starts i'm getting error:CWTBG0019E: Unexpected exception during execution. Exception information: 'com.lombardisoftware.component.common.workflow.WorkflowProcessItemException: An exception occurred in activity "Edit string" of "Service Flow" with name "test". Task instance id "Task.69159". Details: "CIL2106: The service cannot be completed because the {0} document is not the current version. Explanation: The service can be completed only for the current version of a document. Action: Specify the current version of the document and try again.".'.
I have read something about "CIL2106" error but it doesn't gave me any information how to fix it, how to set current version of document programaticly or via navigator.
Thank you for any help.
------------------------------
Vladislav Tishchenko
------------------------------