The first thing I would check is that all the styles are spelled the same across the documents. Style names are case-sensitive. Also, styles in groups are not the same as tyles outside groups.
That said, I haven't needed to run a TOC from a book in some time, so I haven't tried it here in CS6 yet (you haven't mentioned your version). Be sure you are up to date on patches. It may help to export each of your chapter files to .idml, save new files and make a new .indb to hold them.
Thanks for the reply,
The problem ended up being the syles in groups. I would never have picked that up so thanks for the tip.
All working well now.
I'm having the same problem as gwh. The TOC won't go beyond the first document. All my style names are the same. I don't have style groups.
To make the book I began with one long document that included all the chapters. I broke it into chapters by copying and pasting into new .indd documents (each one created by Save As from the first) and adding all those documents to the book.
Generating the TOC from the one long .indd document works perfectly. I just can't get it to generate from the book (.indb) doc.
I have all the documents in the book open. I have the first one active (in front). I generate the TOC, and I get only the entries for the first document. Here's a screenshot of my TOC box. I must be missing something really simple, huh? (I'm using CS5)
It certainly sounds, and looks in the dialog, like everything is correct. Did you open the file through the book panel?