Symptoms
Post-deployment failure causes all package objects to 'check out' on the host server.
When any failure to publish a package to the host server occurs, there is no option to undo the updates, which leaves the objects in check out, forcing the developer to check in one by one. See the enclosed evidence that we work with a full and large package publication (1390 items), which costs a manual operation to return for almost 2 hours. In case of this type of failure, an option should be available that would undo the check out of all the objects involved automatically. If this is not done, the objects are checked out in the target environment and you can not redo the publication because there will be a failure because the objects are changing.
Diagnoses
Tried to repro the issue by deploying an existing package on to a new environment, then did a redeployment of the same package with more artefacts and data on the same environment mid deployment, shut down the K2 server. After that I restarted the server and tried to deploy the same package with more artefacts and data and one of the forms was checked out.
- Logged a new bug for this behaviour on Bug 710492: Post-deployment failure causes all package objects to 'check out' on the host server
- Linked and old TFS item to the ticket as well but this does not seem to be related (Bug 490886: Appit - PandD - Deploying the K2Management site package throws errors that objects/forms are checked out and when retrying all, post deployment fails with not checked out)
Resolution
Provided the smartforms rollup version "Smartforms rollup 4.6.11.37" and it helped resolve the issue