Symptoms
When trying to edit a workflow that had been deployed from QA to Prod using the K2 for SP PnD UI an error was being thrown:
Value cannot be null.
Parameter name: xml
Diagnoses
After lengthy inspection it was decided to use the MMC PnD snap-in to package the solution and the packing itself went fine. As the solution was being analyzed for deployment in the target environment the snap-in started complaining about missing references for service instances. As it happens a handful of columns on the target SP list had slightly different names than they had on the source environment and that is a problem as there needs to be consistency in order to have an effective deployment.
Resolution
Removing and re-adding the columns and giving them names consistent with the source environment. The solution deployed without a hitch and was at this time able to be edited without throwing the error which sparked the ticket.