I have a site workflow developed in Visual Studio 2010 for SharePoint 2010. It runs fine when invoked manually from View All Site Content > Site Workflows > WorkflowName. I'm trying to call it from a Nintex site workflow so I can schedule it. I get this error:
System.NullReferenceException: Object reference not set to an instance of an object.
at WorkflowName.Workflow1.Workflow1.WorkFlowName_ExecuteCode(Object sender, EventArgs e)
There are no parameters/arguments. I have tried running with <Data></Data> as well.