I have created a code to provision workflow pro-grammatically through C# Code.
But i am facing exception as below
"Server was unable to process request. ---> Workflow action 'Nintex.Workflow.Activities.Adapters.NWDocGenAdapter' is not allowed on site Test:11111/sites/test"
I am using below code to provision workflow.
byte[] arrWorkflowFile = System.IO.File.ReadAllBytes(workflow.SourcePath);
SPList list = currentWeb.Lists.TryGetList(workflow.List);
if (list == null)
{
EventLogWriter.Write(LogSeverity.Critical, LogCategory.Configuration, "The target list with the name " + workflow.List + " does not exist in the site. so can not import the nintex workflow.");
}
else
{
workflowService.PublishFromNWF(arrWorkflowFile, workflow.List, workflow.Name, true);
}
Can any one Help me out for this exception ?
Thanks in n advance.