A common issue encountered with the \includepdf command is when the file names contain spaces. As stated in the documentation on the second page: "(The filename must not contain any blanks!)" This means that spaces in file names are not supported by this package. Here's a solution for this problem:
\documentclass{article}
\usepackage{grffile}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{Test X}
\end{document}
However, the functionality provided by the grffile package has now been integrated into the graphicx package. So, the current version of the example looks like this:
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{Test X}
\end{document}
With this setup, you can include the file "Test X.pdf" without any issues. If this doesn't work, then renaming the file might be necessary.