AnsweredAssumed Answered

Unable to publish from stapled feature receiver

Question asked by on Jan 30, 2015
Latest reply on Feb 5, 2015 by

I have a feature that publishes my site collection reusable workflow.  It works when I activate it from the Site Features page.  Now I need to staple it so that every new site collection created will have it automatically created, but it doesn't work when run under that context.


At first it was giving me an object reference exception coming from the ActivityReferenceCollection.GetAllowedActivities().  I was able to get around that by adding the web to the HttpContext.Current Items list.  Now it tells me that Nintex isn't activated for my web application, but I've double and triple checked that it is.


Can anyone help?  Has anyone had similar issues getting workflows to publish when using stapled features?