I've created a document and added a second table of contents as per this Creating Two Separate Tables of Contents in LaTeX. However, I've just noticed that when I open the generated PDF in a PDF editor, only the Appendices section appears in the bookmarks (content pane). The rest of the sections, including the entries from the first table of contents, are missing. This issue occurs in both Google Chrome's PDF viewer and Adobe Acrobat.
Does anyone know what could be causing this?
By the way, below, I’ve included an approximate example of what I'm writing in my document for reference.
Also this is what I see in Adobe's pane: 
Thanks in advance!
Here is the code:
\documentclass{article} \usepackage{appendix} \usepackage{minitoc} \renewcommand{\partname}{} \renewcommand \thepart{} \usepackage{appendix} \usepackage{hyperref} % ========== beginning of the actual text section =========== \begin{document} \doparttoc \tableofcontents \clearpage \section{Main Section} x \clearpage \subsection{Methodology} x % In the main toc the subsubsection Experiment should not appear. However, in the document I still want to have 1.1.1 Experiment. \addtocontents{toc}{\protect\setcounter{tocdepth}{2}} \subsubsection{Experiment} x \addtocontents{toc}{\protect\setcounter{tocdepth}{3}} %reset % Start of the appendices % In the main toc I only want to see "Appendices" without its section, subsection and so on. However, in the Appendx toc (second toc) I want all section, subsection and subsubsections to appear. \addtocontents{toc}{\setcounter{tocdepth}{0}} \newpage \appendix \part{Appendices} \parttoc \clearpage \section{Appendix A} \subsection{Details of Appendix A} \subsubsection{Subsection of Appendix A} \end{document} Edit:
Since @cfr mentioned that the issue lies with \addtocontents{toc}{\setcounter{tocdepth}{0}}, I also wanted to point out that I wanted specific subsubsections in the main doc, such as 1.1.1 Experiment, to not appear in the main TOC. However, I still wanted them to be visible in the document itself.
Also, for sections, subsections, and subsubsections in the Appendix, I wanted them to appear in the Appendix TOC but not in the main TOC. The main TOC should only contain 'Appendices'
For the PDF viewer's bookmark pane, I wanted all sections, subsections, and subsubsections (in actual main doc and appendix) to appear.

\documentclass{article}isn't a correct language specification. A correct language specification would, e.g., belatex. But it is not needed here, becauselatexis the default.\usepackage{appendix}. Remove all auxiliary files before re-compiling (everything except the.texfile).hyperref. there is also a section in the manual (which the log refers you to) about precautions if used withappendix. but again, it isn't clear what you are trying to do with that package exactly either. could you say what output you expect in the document? you've set toc depth0globally, so you'll get minimal bookmarks.\addtocontents{toc}{\setcounter{tocdepth}{4}}(or change 4 to whatever depth you want) right before\end{document}...