Symptoms
We deploy a new version of the K2 Workflow but when it is deployed the task is using the wrong SharePoint content type in the SharePoint task list so the people are not seeing all the information that is in the other content type form.
Diagnoses
The issue was caused by permission of the deployment account to the task form folder.
Resolution
During the call we noticed that the deployment account was unable to access the custom TaskForm in the folders
After granting the deployment account permission to access this folder, you received the following errors during deploy:
Build FAILED.
D:MEP20054-pdspProdK2_Prod****20150330****.msbuild
(60,5): error : Task Error: System.Exception: The K2 SharePoint Workflow Integration generated pages could not be updated. If the pages have already been deployed perform an application pool recycle.
D:MEP20054-pdspProdK2_Prod********.msbuild
(60,5): error : at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.
WorkflowIntegrationTask.Execute()
0 Warning(s)
1 Error(s)
We then perform iisreset on all WFE, but the task form is still associated to K2 Task Form. You then restarted SharePoint Timer Job on all WFEs and that resolved the issue.