cancel
Showing results for 
Search instead for 
Did you mean: 

Unable To Open PDF with a space in the File Name

PrateekMehan
Level 6
Hi, I am unable to open a PDF which is having a space between its name. Ex: "PD Test.pdf" with error: "There was an error opening the document , the file cannot be found" If I do this manually, it works fine. I think the issue is due to a white space character. Does anyone know how to escape white space characters.? Or any help with above would be appreciated. If the same PDF without a space in its name, launches easily.
5 REPLIES 5

DexterWhelan1
Level 4
Prateek what are you using to 'open' a PDF file in Blueprism? Is it an Action in Blueprism or is it some bespoke code you made yourself or...?

PrateekMehan
Level 6
Thanks bastiaan both of this work fine.

Anonymous
Not applicable
Hi Dexter, You can use ""Start Process"" action in ""Utility - Enviroment"". Write full path of the application as Application input (for example to open a PDF file write smthng like ""C:\[%ProgramData%]\Acrobat Reader DC\Reader\AcroRd32.exe"") and write the related file path as Arguments input. It works for me 🙂

PrateekMehan
Level 6
Yea Dexter same as gokhan mentioned.

RasmusSeverinse
Level 2
If you are pushing the file path from a data item, make sure it is qualified as text in quotation marks. For instance, if you refer to a data item [File path] in arguments, you could change this to """"""""&[File path]&"""""""" in order to maintain the quotation marks required by the Arguments. Evaluate your expression to check that the quotation marks persist when pushing. This solved the problem for me.