Issue
Workflow cannot be published due to a critical validation error
Resolution
If the workflow contains unpublished custom activities then it will prevent the workflow from being published. Unpublished custom activities can cause the workflow to hang and never complete.