If I were to pipe this to Get-Member, I would see a new property called Item#.
I tried every fix suggested on the net (creating new multi lists and importing uncorrupted styles etc) and the problem kept returning.
The below seems to have worked for me and I hope it's a permanent solution.
After accepting/rejecting the change, update the LOT/LOF and all should be well again. I’m not sure what causes this, but turning off Track Changes and updating the TOC/LOT/LOF should fix it.
I am referencing the variable in the global scope because otherwise $i would be new for each object and everything would have a value of 1 in the Expression scriptblock.
The first time everything will look fine, but unless you reset $i it will keep increasing every time you format the output with this custom view.
Once you have it complete, you can load it into your session and use it.In this example, the TOC entries are all in red and there’s a change bar to the right of the TOC. To fix it, turn off Track Changes (Review tab), then update the TOC again (see below for how). Super easy with an immediate reduction in stress related to things going wrong with your document just before your deadline ;-) The second issue relates to why the new tables/figures, sections etc.that you’ve added to the document aren’t appearing in the TOC/LOT/LOF, or why your changes or deletions aren’t reflected in the TOC/LOT/LOF.(adapted from a ‘Writing Tip’ email I recently sent to work colleagues [Word 2007 environment]) *************** Bottom line: Before releasing your document, turn off Track Changes then update the Table of Contents, List of Tables, and List of Figures so that they reflect the current headings, captions, and page numbers.Some recent questions from my authors have related to updating the Table of Contents (TOC), List of Tables (LOT), and List of Figures (LOF), common things that can go wrong when doing so, and how to fix them. You had Track Changes turned on when you updated the TOC.Another option would be to add your own type and formatting extensions. To create a custom format, you’ll need to create a .ps1xml.