SharePoint (2003 thru Online): Contact Selector cannot store bound data type (Infopath)

Monday, January 5, 2015

Contact Selector cannot store bound data type (Infopath)

Sometimes, you see an error message "Contact Selector cannot store bound data type" when you use the Design Checker to verify the template on the server. Also see "Control cannot store bound data type" in the Contact Selector field (as shown below).



To fix it, first check if your datasource groups and fields are correctly defined.

grpContactSelector (non-repeating group)
     Person (repeating group)
         DisplayName (field)
         AccountId (field)
         AccountType (field))  

(Fields can be elements or attributes, doesn't matter, but make sure fields are under Person group).

 Then, follow the remaining steps exactly...

  1. Remove the control from the Controls pane using "Add or Remove Custom Controls" link at the bottom of the Controls tool box window.

2. Add the control again using the above mentioned link, but follow the steps carefully:

Select "ActiveX Control" option, Press Next

Select "Contact Selector", Press Next

Select "Don't include a .cab file" option, Press Next

Select "Value" a binding option, Press Next

From the FIRST DROP DOWN (not the check boxes), select "Field or Group (Any Data Type)" choice, 

Press Next.  Do not literally select a data type from the check boxes, with the first option ("Select Field").  This will cause the above error. 

If you still see the error even after following the above steps, then remove the Control from the form and add it again.

No comments:

Post a Comment