Forum Discussion

RobG's avatar
RobG
New Contributor
8 years ago

Spaces in File names or folder paths

I wonder if anyone has a resolution to my current challenge. I am a “newby” so please assume “I know nothing!”

I’m building some basic pipelines to connect to a xlsx.
If any folder in the path has a space or the filename itself has a space I am getting the following error…

Failure: Invalid URI, Reason: Illegal character in path at index 19: file:///T:/RobG/New Microsoft Excel Worksheet.xlsx, Resolution: Please make sure the URI file:///T:/RobG/New Microsoft Excel Worksheet.xlsx is correct.

When I introduce a space in the folder name it also fails…

Failure: Invalid URI, Reason: Illegal character in path at index 14: file:///T:/Rob G/NewMicrosoftExcelWorksheet.xlsx, Resolution: Please make sure the URI file:///T:/Rob G/NewMicrosoftExcelWorksheet.xlsx is correct.

Clearly the Resolution suggestion is not entirely helpful as we do have spaces and so the URI is correct…
Any help, gratefully received…
Rob

1 Reply

  • clarrivey's avatar
    clarrivey
    New Contributor

    Hi Kory,

    Thanks, the union all worked. As for the design perspective, I am not sure I understand how to do that. Given the example I supplied, would I break that into 2 separate SQL Execute statements with the first being select ‘Last_Name’||chr(09)||‘First_name’ alias_name from sys.dual and the second being select rtrim(spriden_last_name) from spriden||chr(09)||select rtrim(spriden_first_name) from spriden and the just having the second one as input into the CSV Formatter and using the alias_name and clicking the show header box? If that is not what you meant, could you please further elaborate?

    Thanks,

    Chris