When I insert the table of contents, in some documents the whole document disappears or there is in the contents only the word "contents" and nothing else. I know, how to do this, I've done it lot's of times, and only in some document have I this problem. And I've tried everything with the options.
@Csillagpolare – at any cost avoid threading the text frame that holds the Table of Contents to a "normal" text frame!
In the moment you'll do refresh the TOC all your text in that thread (the whole story!) will vanish.
Yes, I've tried separate text frames and separate layers also,
and I've tried to rise the size of the text frame too,
but none of them worked.