Fix the Bookmark Not Defined Error in a Word TOC
Learn what causes "Error! Bookmark not defined" in a Word table of contents, and how to update fields or rebuild the TOC so its links work again.
If you open a Word document and see "Error! Bookmark not defined" where your page numbers should be, your table of contents has lost track of the headings it links to. This usually happens after you edit a long report, paste sections from another file, or delete a chapter that was listed in the TOC. The message looks alarming, but the document text is usually fine. Only the table's links are broken.
This guide is for anyone who builds a table of contents in Word, especially in theses, manuals, proposals, and long reports. You will learn what the error means, how to find the cause, and how to rebuild the broken links. Most readers can fix the problem in a few minutes by updating the table. If that doesn't work, a full rebuild takes only a little longer.
Why does Word show bookmark not defined in a TOC? The short answer
Word builds a table of contents by inserting hidden bookmarks at each heading and then writing page-number links that point to those bookmarks. When a bookmark is removed or the heading it marks is gone, the link can no longer resolve, and Word shows the error. Updating the table or rebuilding it from current headings solves the problem in most cases.
| Your situation | What to do | Why |
|---|---|---|
| The table was built, then headings were edited | Update the entire table | Word recreates heading bookmarks and refreshes links |
| A heading was deleted but its TOC line remains | Update the table, then delete any leftover lines | The line has no heading left to point to |
| Text with headings was pasted from another file | Update fields, then rebuild the TOC if errors remain | Pasting can drop or rename the bookmarks Word expects |
| The error appears only in cross-references | Update fields in the whole document | Cross-references are fields that use the same bookmark system |
| Errors persist after an update | Delete the table and insert a new one | A corrupted field block cannot always be repaired in place |
Figure out which problem you have
Before you change anything, identify the symptom. The table below helps you match what you see with the likely cause and a quick way to confirm it.
| Symptom | Likely cause | How to confirm |
|---|---|---|
| Every page number in the TOC shows the error | The whole table lost its bookmarks, often after a paste or merge | Select the table and press Alt+F9 to view field codes; look for missing bookmark names |
| One TOC line shows the error | That heading was deleted, renamed, or moved to a different file | Search the body for the heading text; if it is gone, the line is stale |
| Errors appear in the body near a "see section" reference | A cross-reference points to a bookmark that was removed | Click the reference and check its field code for a bookmark name |
| The error came back after a successful update | Headings were pasted in with formatting that breaks the link | Check whether the heading uses a built-in heading style or manual formatting |
| The TOC is plain text, with no page-number links | The table was copied as static text or converted from another format | Click in the table; if it does not behave like a field, rebuild it in Word |
A plain-text TOC cannot show this error because it has no links. If the table never updates when you press F9, it is probably not a live table of contents, so you will need to insert a new one.
Fix it step by step
Start with the simplest fix. Move to the next step only if the error is still there.
- Save a backup copy. Field updates rarely cause data loss, but a copy lets you compare the original if something goes wrong.
- Update the entire table. Click inside the table of contents, then press F9 and choose the option to update the entire table. Check whether the error is gone.
- Update all fields in the document. Press Ctrl+A to select everything, then press F9. This refreshes cross-references and other fields that may also point to missing bookmarks. Some fields may ask whether to update page numbers only or the entire table; choose the entire table.
- Check the headings. Scroll through the document and confirm that each heading in the TOC still exists. Delete any TOC line whose heading no longer appears, then update the table again.
- Show field codes. Press Alt+F9 to display field codes. Look for bookmark names inside the TOC or PAGEREF fields that have no matching bookmark in the document. Press Alt+F9 again to return to normal view.
- Rebuild the table if needed. Select the whole table, delete it, and insert a new table of contents with Word's built-in command. Word will create new bookmarks from the current headings. Remove any leftover manual text from the old table before you insert the new one.
When the headings are the problem
Sometimes the error persists because headings are not set up in a way Word can track. This happens when someone formats a heading by changing font, size, and bold instead of applying a heading style. Word cannot list those lines in the table reliably, so the TOC may contain old entries or fail to link.
Apply a built-in heading style to every chapter and section title you want listed. Then rebuild the table as described in step 6. This is often the lasting fix for a document that keeps breaking.
When the bookmarks are hidden
Word hides its heading bookmarks by default. If you want to see them, open the bookmark list from the insert menu and enable the option to show hidden bookmarks. Names beginning with an underscore, such as those Word creates for tables of contents, will then appear. If a name referenced in a field code is missing from this list, that link is broken. Updating the table or rebuilding it will usually create a fresh bookmark.
Avoid renaming or deleting these bookmarks by hand. Word generates them automatically, and manual changes can break the link again the next time you update the table.
Prevent it next time
A few habits keep the error from coming back.
- Use heading styles for every listed title. Apply built-in heading levels from the start so Word can track each section consistently.
- Update fields before you print, export, or send the file. A quick Ctrl+A, then F9, catches stale page numbers and broken references before a reader sees them.
- Delete headings with their TOC line in mind. Remove a section, then update the table right away instead of waiting until the end of the project.
- Paste carefully. When you bring in text from another file, check the headings afterward and update fields. Pasted sections can carry in bookmarks or formatting that conflict with the current document.
- Keep one master file. Merging several files creates duplicate or missing bookmarks. If you must combine sections, rebuild the table after the merge.
❓ FAQ
1. Will updating the table delete my content?
No. Updating a table of contents rewrites the table and its page numbers, and it does not change the body text. Deleting a TOC line only happens if you remove it yourself. Keep a backup before major edits, as a precaution.
2. Why does the error come back after I fix it?
A common reason is that a heading was edited again, pasted in, or formatted by hand after the last update. Update the table after each round of edits, and use built-in heading styles so the links stay stable.
3. Can I fix this error without rebuilding the whole document?
Usually, yes. Updating the entire table, then updating all fields, fixes most cases. You only need to rebuild the table if those steps fail or if the table has no live links.
4. What if I converted my Word file from another format?
Conversions can drop bookmarks or turn headings into plain text. Open the converted file, check that the headings use heading styles, and insert a new table of contents. A table copied in as static text will not update, so replace it with a live one.
📝 Summary
The "Error! Bookmark not defined" message means a table of contents link points to a heading bookmark that Word can no longer find. Update the entire table first, then update all fields, and rebuild the table if the error remains. Apply heading styles and update fields before you share the file, and the error should stay away.


