Skip to main content


 

Symptoms


SP List is configured to Force the item to be checked out. We are using a Smartform to add the document. Workflow throws the following errors even when the document is already checked out:

1. Service: SPLIST] Service Guid: GUID] Severity: Error Error Message: The file ""SHAREPOINTURL/LIST/Document]" is not checked out. You must first check out this document before making changes.

2. 1. Service: SPLIST] Service Guid: GUID] Severity: Error Error Message: The file ""SHAREPOINTURL/LIST/Document]" is not checked out. You must first check out this document before making changes. is checked out for editing by USER].


 

Diagnoses


This was caused by a race condition between K2 trying to check the document out to make changes and requiring the document to be checked out so the K2 account could check it out with the correct account.
 

Resolution

We implemented a workaround which used a Timer control on the smartform.

#1. Add a Timer control to the Form.

#2. Disable/delete the following rules in the When the Start a Workflow button is clicked Rule.
Disable: Start a Workflow
Disable: If a Form Parameter is specified and navigate to a URL. Both of these rules should be near the bottom
Add: Execute the Start method on the Timer

#3. Now we create a new rule for when the Timer is ticked. We add the rules back that we disabled/deleted above.
Add: Start a workflow and
Add: If a Form Parameter is specified and navigate to a URL.




 
Be the first to reply!

Reply