XML Mapping Repeatable content controll

Hi!
I’m using repeating content controls and xml mapping pane in my document and I have a strange issue.
Here is an example of xml
# Atmung
<tacs_code>2.01.01</tacs_code>
<beschreibung_methodisch>Umfasst alle Aktivitäten zur Unterstützung oder Übernahme im Zusammenhang mit der Atmung. </beschreibung_methodisch>
<beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb_text>test1</beschreibung_anwenderbetrieb_text>
</beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb_text>test2</beschreibung_anwenderbetrieb_text>
</beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb_text>test3</beschreibung_anwenderbetrieb_text>
</beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb_text>test4</beschreibung_anwenderbetrieb_text>
</beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb>
<beschreibung_anwenderbetrieb_text>test5</beschreibung_anwenderbetrieb_text>
</beschreibung_anwenderbetrieb>
<tacs_massnahmen>
<massnahmen_code></massnahmen_code>

</tacs_massnahmen>

So everything works fine when the number of repeating entities is lower than 5 (like “test5”). Result looks like this:
image.png (4.3 KB)
But when it becomes greater - strange duplicates appear:
image.png (19.2 KB)
And i found that after entering in a “design mode” and back - everithing looks perfect.
So my questions: What can be a source of this duplicates and how can I “simulate” design mode trick from C# code. Thanks

@RomanBorovets,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.