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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Changing data source from Excel to PBI.

My first post. Maybe a silly question.

I have an existing perfectly run data model in Excel, which is located on a network drive.

Now I would like to run this model on my local machine.

What I did, I copied all related tables, and data sources, all of it on the local drive and preserved all file structure, thinking that I would only need to change the drive letter in "Data Source" in PBI.

I did. 

It did not work. I am getting an error on refresh "We cannot convert data binary to value" or something like that.

I went and changed the drive letter everywhere, in Data Source, in Quries Sample files, but I am still getting an error.

Can someone suggest a solution? Did you guys run into this ever?

Regards!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, thanks for replying!

Actually, I have figured it out.

What you need do, if you change your data path, you need not only to change the drive letter in the Data Source options, but also you have to go to Advanced Editor of Get data and in the Sample Files correct all those wrong references to the initial data source.

And then it works!

Before doing so I get this, even if changing drive letter in the Data Source Options.

 

DataSource.NotFound: File or Folder: We couldn't find the folder 'N:\Participation & Connection\DataSets\Relations Tables (Do not change)\Fee Schedule\*'.
Details:
N:\Participation & Connection\DataSets\Relations Tables (Do not change)\Fee Schedule

 

This is what's happening in the Sample 

let
Source = Folder.Files("N:\Participation & Connection\DataSets\Relations Tables (Do not change)\Fee Schedule"),
Navigation1 = Source{0}[Content]
in
Navigation1

 

So I change drive letter there to F and it works.

With other files same situation.

 

let
Source = Folder.Files("N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume"),
#"N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume\_UWVolume xlsx" = Source{[#"Folder Path"="N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume\",Name="UWVolume.xlsx"]}[Content]
in
#"N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume\_UWVolume xlsx"

 

See here, not only I needed to change first line to drive F, but in the advanced editor all of those following the first line.

 

Thanks it's solved. (By me Smiley Happy)

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@Anonymous,

Before you change data source in Power BI Desktop, do you get same error when refreshing the data model? What steps do you take to transform data in Query Editor of Power BI Desktop? Could you please share the excel file which I can test?

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.
Anonymous
Not applicable

Hi, thanks for replying!

Actually, I have figured it out.

What you need do, if you change your data path, you need not only to change the drive letter in the Data Source options, but also you have to go to Advanced Editor of Get data and in the Sample Files correct all those wrong references to the initial data source.

And then it works!

Before doing so I get this, even if changing drive letter in the Data Source Options.

 

DataSource.NotFound: File or Folder: We couldn't find the folder 'N:\Participation & Connection\DataSets\Relations Tables (Do not change)\Fee Schedule\*'.
Details:
N:\Participation & Connection\DataSets\Relations Tables (Do not change)\Fee Schedule

 

This is what's happening in the Sample 

let
Source = Folder.Files("N:\Participation & Connection\DataSets\Relations Tables (Do not change)\Fee Schedule"),
Navigation1 = Source{0}[Content]
in
Navigation1

 

So I change drive letter there to F and it works.

With other files same situation.

 

let
Source = Folder.Files("N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume"),
#"N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume\_UWVolume xlsx" = Source{[#"Folder Path"="N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume\",Name="UWVolume.xlsx"]}[Content]
in
#"N:\Participation & Connection\DataSets\UW Weekly Reporting\UWVolume\_UWVolume xlsx"

 

See here, not only I needed to change first line to drive F, but in the advanced editor all of those following the first line.

 

Thanks it's solved. (By me Smiley Happy)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors