InfoPath Error: The Control Must Be in the Control Tree of a Page

If you are running your SharePoint Server 2010 environment with the latest August 2011 CU, and are using the External Item Picker control in a browser-enabled InfoPath form, you will receive the following message when the form posts back:

If you look in your Event Viewer, you will see the following exception:

Type: ArgumentException, Exception Message: The control must be in the control tree of a page.
Parameter name: control)

This appears to be a regression in the latest CU, but as of yet there is no fix to the problem.

Update: 01/11/2012
I have received new information on this bug that indicates it may be a part of the February 2012 CU.
Update: 11/08/2011
Microsoft has acknowledged the issue as a bug, and are currently working on a hotfix. However, there is currently no date on when that fix will be available.
Update: 10/31/2011
I have applied the October 2011 SharePoint Server 2010 CU, and the problem still exists.

Steps to Reproduce

  1. Ensure your SharePoint Server 2010 Environment has SP1 applied
  2. Ensure your SharePoint Server 2010 Environment has August 2011 CU applied
  3. Create a blank InfoPath form
  4. Add a Repeating Table with 1 Column (remove the default column)
  5. Add an External Item Picker to the Repeating Table and Configure General Settings (use the External Content Type details page in Central Admin to find the following information):
    1. Set ECT Namespace to the Namespace of External Content Type
    2. Set ECT Name to the Name of External Content Type
    3. Set System Instance Name to External System of External Content Type
  6. Publish the form to a SharePoint Form Library as a browser-enabled form
  7. Launch a new form
  8. Launch the Entity Picker and select a value for the first control in the repeating section
  9. Click “Add New Item” to add an additional item (this forces a postback, which is why I chose the repeating table to easily display the issue)
  10. Upon clicking “Add New Item” you will receive the error

Workarounds

At this point the only workaround to this issue is to not upgrade your farm to the latest CU. If you have already done so, however, then I do not currently have a solution that will solve this issue. I will update this post as I get more information.

Cheers,
Matt

Add a Comment

Your email address will not be published. Required fields are marked *