Symptoms
Client is attempting to Package a SharePoint list but they are getting multiples of the following errors when creating the package: Error: 'IIS Team Form Dev IMS Technical Order FormIMS Technical Support Order Form Workflow' process is referencing the 'Missing ID' Unknown that could not be found. Details: The source of this error is located in the "SmartForms Integration" process wizard. Open the workflow and re-run the wizard.
Diagnoses
As per the attached CreatePackageErrors.png we had two sets of errors.
One set of errors pointed to a workflow and category that did not exist.
The other set was for the current existing workflow on this list. Our deleted workflow did still show in K2 Management. When we went to delete it we got the warning that there were two dependencies for this process
Resolution
Most likely what happened here was that when this old workflow was deleted, we did not select the option to delete all historical data for this workflow. This list was most likely recreated or renamed to IIS Team Form Dev IMS Technical Support Order Form instead of IIS Team Form Dev. That is why in K2 management we saw a nonexistent category and also a workflow that did not exist.
We selected delete all versions and delete all Historical (log) data for selected versions in K2 Management for this deleted workflow that no longer existed. Since all data was deleted for this workflow that in turn deleted the two dependencies that we see in Orphaned_Dependencies.png. When trying to make the package again we saw that the top errors highlighted in red on CreatePackageErrors.png were in fact now gone. In order to clear out the errors highlighted in blue the error said to rerun the SmartForms Integration Wizard. There is no SmartForms integration wizard on this workflow directly since it is a K2 Designer based workflow.
We ran through the Workflow Settings (Start) wizard and also all of our SmartForms client event wizards in this workflow and redeployed the workflow. Now, if we go to create a package of the items on this list we saw that we could successfully create a package without any of the previous errors.
A request was submitted to change the wording on the error message: Details: The source of this error is located in the "SmartForms Integration" process wizard. Open the workflow and re-run the wizard. Since this contextually does not fit with the workflow designer and/or point us in the right direction we need to change the name to reflect the Workflow Settings and SmartForms Wizards.