I am trying to Publish Nintex workflow using below .Net CSOM code...
NintexWorkflowService.NintexWorkflowWS objWFService = new NintexWorkflowService.NintexWorkflowWS();
objWFService.Url = siteUrl1 + "/_vti_bin/nintexworkflow/workflow.asmx";
objWFService.Credentials = System.Net.CredentialCache.DefaultCredentials;
WFpath = @"C:\\Workflow\Document_Management_Task_Workflow.nwf";
arrWorkflowFile = System.IO.File.ReadAllBytes(WFpath);
bool isWFPublish = objWFService.PublishFromNWF(arrWorkflowFile, "MyDocumentLibrary", "Document Management Task Workflow", true);
catch (Exception ex)
the Code works well without exception, however the workflow doesn't get publish on document library.
The variable isWFPublish returns false
The same code works fine for other workflows. i am getting issue for only one workflow.