when the same bookmark is inserted twice and there is a ref field on the same bookmark’s page, call Updatefields() causes a self-reference loop in the TOC.
If Updatefields() is not called, Word resolves correctly the TOC.
You can see on the attached output.docx the TOC with ? words and loop levels.
In the real application, from 25 real pages without Updatefields() the doc grows until 200 and over pages.
I guess is Updatefileds() problem.
Can you help me on how manage this situation ?
I’m using 13.9 version