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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AnuragYadav
Regular Visitor

Error while creating pipeline to connect to on-premises files

Hi,

I am getting an error "Invalid credentials" while creating a pipeline to connect to on-premises files. In username, I'm giving usename, which is displayed after giving whoami command and password as blank because I never give any password for my PC. Please refer to the screenshots below - Error screenshotError screenshot

 

 

1 ACCEPTED SOLUTION
AnuragYadav
Regular Visitor

Sorry everyone, error message was misleading, so I got confused. Since, I had not given password to my pc, so I was using blank. But, when I created password for my PC and used it, my problem resolved.

View solution in original post

5 REPLIES 5
AnuragYadav
Regular Visitor

Sorry everyone, error message was misleading, so I got confused. Since, I had not given password to my pc, so I was using blank. But, when I created password for my PC and used it, my problem resolved.

Hi @AnuragYadav ,

 

It looks like you have found a solution. Could you please mark this helpful post as “Answered”?

 

This will help others in the community to easily find a solution if they are experiencing the same problem as you.

 

Thank you for your cooperation!

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

v-huijiey-msft
Community Support
Community Support

Hi @AnuragYadav ,

 

Thanks for the reply from lbendlin .

 

The error message indicates that the data credentials information is invalid. The username I'm using for testing is “whoami” and the password is the host's login password.

 

You need to configure the data gateway first when connecting to the local file on the service side.

vhuijieymsft_0-1734498463969.png

 

For more information on how to configure gateway see this official document:

Add or remove a gateway data source - Power BI | Microsoft Learn

 

If you have not pre-configured the gateway, the following screen will appear when you enter the file path in pipeline.

vhuijieymsft_1-1734498520938.png

vhuijieymsft_2-1734498520940.png

 

If you have pre-configured the gateway, the following screen will appear when you enter the same file path in the pipeline as in the gateway.

vhuijieymsft_3-1734498531960.png

 

Although I can now connect to the local folder without any problems, I get an error when using it. I'm using lakehouse as the data write destination, my local folder has csv files and excel files, I can't write the data smoothly, it will say formatting error and need to staging the data outside error, when test connection it will say I don't have access to this folder even though I've already configured the gateway. I'm not sure if this is an individual error on my part, you can run a test to check if it works.

 

I have a workaround to write the data inside the local folder for use by lakehouse and that is using Dataflow Gen2. In Dataflow Gen2 select Get Data as Folder and enter the same path as in the gateway configuration.

 

After a successful connection, all the files present in the folder will be displayed, with the contents in binary format.

vhuijieymsft_4-1734498531965.png

 

Click on this binary to expand it.

vhuijieymsft_5-1734498544054.png

 

After successfully reading the csv file, the data can be displayed without any problem.

vhuijieymsft_6-1734498544072.png

 

Set destination to lakehouse.

vhuijieymsft_7-1734498555806.png

vhuijieymsft_8-1734498555817.png

 

After successful publish, we can see the data of the csv file stored in the local folder in lakehouse.

vhuijieymsft_9-1734498567059.png

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Hi @v-huijiey-msft,

Thanks for detailed explanation, but I am not using Power BI service, rather I've installed microsoft "on-premises data gateway" on my machine.

Gateway installation.png

I'm using it, while creating pipeline. Moreover, I'm also using the username “whoami” and the password is the host's login password. Hope, it clears my problem.

Credentials screenshot.png

lbendlin
Super User
Super User

The pipeline lives in the cloud. It has no idea at all what "C:\Users"  means, or how to get there.  

You specified an On Premises gateway.  Do you really want the Azure service looking at the hard disk in your PC? Surely not!

 

Consider placing your data into a cloud share, like a SharePoint folder. 

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! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!