Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
KarlCullimore
Advocate II
Advocate II

Gateway will not connect to an Excel File due to naming convention

Has anyone else had the same issue , I had an error connecting to an Excel sheet on a local drive. So I checked it was not pointing a a hard coded drive C;\ but at the actual link \\ .  I managed to fix it by amending from '20170101 – ABC.xlsx' to 20170101_ABC.xlsx has anyone else come across any naming conventions that caused an issue ?

1 ACCEPTED SOLUTION

@KarlCullimore,

What error message do you get? I have no issues connecting to the Excel file which has spaces in file name under gateway, please review the following screenshot.

1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Bordalos
Helper I
Helper I

@KarlCullimore do you have spaces before and after the dash? 

 

Data Management Best Practices for file naming  recommends to:

  • Avoid Special characters such as  ~ ! @ # $ % ^ & * ( ) ` ; < > ? , [ ] { } ' " and |
  • Do not use spaces. Some software will not recognize file names with spaces, and file names with spaces must be enclosed in quotes when using the command line. Other options include:
    • Underscores, e.g. file_name.xxx
    • Dashes, e.g. file-name.xxx
    • No separation, e.g. filename.xxx
    • Camel case, where the first letter of each section of text is capitalized, e.g. FileName.xxx

Thats why when you changed it to a 20170101_ABC.xlsx it worked.

 

BR

BR

Thanks @Bordalos it did indeed have spaces before and after.  As I need to update my company docs for our self service contingent, I could do with knowing whihc microsoft site this comes from so that I can add it to company documentation on the Power BI gateway. If you have a link that would be very much appreciated.

@KarlCullimore,

What error message do you get? I have no issues connecting to the Excel file which has spaces in file name under gateway, please review the following screenshot.

1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lydia,

 

I cannot reproduce , the error message was an unable to connect issue. But it currently reading as connection succesful. Im blaming the hidden character issue. 

 

Thanks

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.