# Issues with footnotes using wrapping parbox with longtable, threeparttable and tablenotes

I have an issue with footnote not showing up when I wrap the threeparttable/longtable with a parbox. If I remove the wrapping parbox from the code below, the footnote show up under the table, as I want it to.

Update - for clarification: The reason for wrapping the table are that in the complete document I need to wrap a couple of longtables so that they "group" and don't get splitted on different pages. So a solution to do the grouping in another way could also be the solution for my problem.

\documentclass{article}
\usepackage{longtable}
\usepackage{threeparttablex}
\begin{document}
\parbox{\textwidth}{
\begin{ThreePartTable}
\begin{TableNotes}
\item[a] {\scriptsize testfootnot}
\end{TableNotes}
\begin{longtable}{p{50mm} }
Col1\tabularnewline

• Out of curiosity: Why do you wrap the table with a \parbox? – DG' Feb 11 at 13:37