SharePoint 2010: Reusable Workflow Form Error

So you take a copy of the  ‘Approval – SharePoint 2010’ workflow, and you make some changes. But after publishing the workflow, and adding it to a list on a site, you try to add a Approver and/or a CC you get the following error when the page does a post back:

1This lovely error is due to SharePoint designer security update, KB2553322 (Security update for InfoPath 2010: July 10, 2012). This error has apparently been a huge pain in developers butts all over the world. The truth is I have tried every recommend solution on the net and this is the only solution that worked!!!

 Solution:

Please Note: This solution will have to be performed whenever the workflow is modified.

  • In SharePoint Designer, go to All Files.

2

  • Navigate to:
    • Local workflows:  Workflows > select the name of the workflow.
    • Global workflows:  _catalogs > wfpub > select the name of the workflow.
  • Open the “Workflow Name” .xoml.wconfig.xml file.

3

 

 

  • Click the Edit File link.

4

  • Navigate to the “DefaultData” Section

5

  • Remove xsi:nil=”true” from the Assignee and CC Fields.

6

7

  • It should now look like this.

8

  •  Save the file and your done!

Happy Coding!

Advertisements