Can you help me understand this exception: type detection failed

I do not understand the meaning of this exception.

BASIC runtime error. An exception occurred Type: com.sun.star.lang.IllegalArgumentException Message: Unsupported URL <file:///E:Gem%20Invoices/BT1V000023.pdf>: “type detection failed”.

The call in my macro in my base document was…

oDoc = StarDesktop.LoadComponentFromUrl(filePath, “_blank”, 0, Noargs())

Where the variable filePath was “file:///E:Gem%20Invoices/BT1V000023.pdf”

My version of LibreOffice is 6.4.6.2 (x64)

My version of Windows is Windows 10 version 2004

Perhaps:

file:///E:/Gem%20Invoices/BT1V000023.pdf"

Are you indicating that there is something wrong with the document URL?