Friday, February 11, 2011

Nintex Workflow 2010 ‘Task Reminder’ Bug & Fix

This morning I came across the following error while trying to publish a Nintex 2010 workflow which contains a ‘Task Reminder’ workflow action.


Background:
I have a SharePoint 2010 MOSS environment. I create a new Nintex 2010 Workflow which I can save and publish without problems.


Then I add a ‘Task Reminder’ action

image


And when I publish the workflow I get the following error:

image

Cause:
For a type to be used within the workflow, it must be registered as an Authorized Type in the web.config file. All of the Nintex workflow actions and custom types are registered as authorized types.
Some of the workflow actions have a property of a type that inherits from a generic list, that is List<T>. List<T> is a basic system type provided in .NET.
With SharePoint 2010, List<T> is no longer authorized. Workflow actions that use a type that inherits from List<T> no longer run or publish.
The SharePoint web service to validate workflows returns the following error when publishing:
<Error><CompilerError Line="0" Column="0" Text="Type System.Collections.Generic.List`1, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as authorized in the application configuration file." /></Error>

Work around:
Add the following to the web.config of the SharePoint web application on which you want to publish the workflow.

<authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Collections.Generic" TypeName="List`1" Authorized="True" />

Save the web.config and return to SharePoint and now you will be able to successfully publish the same workflow (containing the Task Reminder):

7 comments:

Regmi said...

Thank you Johan. Saved me a lot of bug hunting I suppose. I was starting to look at whether our system has expired license.

sarah lee said...

Hurricane season brings a humbling reminder that, despite our technologies, most of nature remains unpredictable. See the link below for more info.


#reminder
www.ufgop.org

Silvia Jacinto said...


I really love your blog there's a lot to share. Keep it up.Visit my site too.

n8fan.net

www.n8fan.net

gowsalya said...

Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
digital marketing training in marathahalli

digital marketing training in rajajinagar

Digital Marketing Training in online


full stack developer training in pune


full stack developer training in annanagar

Mouni yoga said...

I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
python training in Bangalore
python training in rajajinagar
Python training in btm

ragul ragul said...

It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
Blueprism training in annanagar

Blueprism training in velachery

Blueprism training in marathahalli


AWS Training in chennai

shalinipriya said...

Hello I am so delighted I found your blog, I really found you by mistake, while I was looking on Yahoo for something else, anyways I am here now and would just like to say thanks for a tremendous post. Please do keep up the great work.

Data Science Training in Chennai
Data science training in bangalore
Data science online training
Data science training in pune

Post a Comment