Does the "OldID" match the file name of the PDF file? Does it also include the extension (.pdf)? If it matches the name, but not the extension, you need to filter for %OldID%.pdf or %OldID%.*
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.