Symptoms
Customer created a simple workflow in the K2 for SharePoint app. They next attempted to created a package via SharePoint P&D. It threw the following error"
--
Error: - 'WFSetting for Appit Template Leave RequestsLeave Requests Workflow' WorkflowSetting is referencing the 'Appit Template Leave RequestsLeave Requests Workflow' Process that could not be found
--
Diagnoses
Customer only 'Saved' the workflow but did not 'Deploy' nor 'Delete' it before attempting the SharePoint P&D as per the following instructions:
http://help.k2.com/onlinehelp/K2blackpearl/packageanddeployment/current/default.htm_Deploy/DeployAppElementsDifferent_SPEnv.htm?TocPath=Package and Deployment|Using K2 Package and Deployment|Package and Deployment with SharePoint 2013|_____0
Resolution
To successfully create the package you either have to deploy the workflow or delete it.
There is currently also a TFS to throw an error message, which will be more descriptive than the one listed in Symptoms above. Details below:
Bug 534609: PandD WEB UI and MMC - Please adjust wording of error message when attempting to package and workflow that has not been deployed