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: 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 (x64)

My version of Windows is Windows 10 version 2004



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