BPM, Workflow, and Case

 View Only
  • 1.  CIL2106 - update document content issue

    Posted Fri October 15, 2021 08:34 AM
    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
    ------------------------------


  • 2.  RE: CIL2106 - update document content issue
    Best Answer

    Posted Mon October 18, 2021 05:02 AM
    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
    ------------------------------



  • 3.  RE: CIL2106 - update document content issue

    Posted Mon October 18, 2021 05:34 AM
    Thank you, works perfect now!

    ------------------------------
    Vladislav Tishchenko
    ------------------------------



  • 4.  RE: CIL2106 - update document content issue

    Posted Mon October 18, 2021 10:02 AM
    If the file is in filenet, you need to check it out before making changes.
    If it is already check out by someone else, you can't make changes
     
    Mikhail Zilbergleyt
    Business Automation Developer
    IBM Technical Garage