InfoPath 'Control cannot repeat here' message
Learn why InfoPath displays the message 'Control cannot repeat here' and how you can get the rid of that message if you want to display and not store data in a repeating table on an InfoPath form.
Repeating tables in InfoPath must be bound to repeating group nodes in a data source - either the Main or a secondary data source. This also means that any controls you place within a repeating table must be bound to a field that is located under the repeating group node that is bound to that repeating table.
Failure to do so will result in InfoPath displaying the message Control cannot repeat here on any "foreign" control you place within the repeating table.
In some situations, you may not be able to add an extra field under the repeating group node that is bound to a repeating table, for example because the XML schema of the form is locked or because you are not allowed to alter the data source of the form for one reason or another.
In those cases, if all you want to do is display data and not store it within the form itself, you could make use of a Calculated Value control to display the data within a repeating table without getting the Control cannot repeat here message.
The InfoPath video shown below shows you how you can take data from a secondary data source, relate it to a field that is present in a repeating table, and then display related data from the secondary data source inside of the repeating table.
In this InfoPath 2010 tutorial video, you learned...
- Why the message Control cannot repeat here appears when you place a field within a repeating table.
- How you can avoid getting the Control cannot repeat here message in a repeating table if all you want to do is display and not store data in the repeating table.
- How to bind a Calculated Value control to a field in a secondary data source for display within a repeating table.
See more InfoPath 2010 tutorial videos »
Related InfoPath Articles:
- What is InfoPath repeating table
- Add people picker to repeating table in InfoPath 2010
- 2 Ways to place a Date Picker in a Repeating Table in InfoPath
- People picker data merging in InfoPath 2013
- Count persons selected in a people picker in a repeating table
Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author.