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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
ericOnline
Post Patron
Post Patron

On-prem data unreachable in a local copy of pbix file

Hello,

How do I connect a .pbix file to an on-prem data source such that it can be edited locally (while on VPN)?

 

Scenario:

- .pbix file stored in a shared folder on-prem

- Connected to our VPN

- If I open file using PBI Desktop, no problem editing/saving/etc.

- If I make a copy of the .pbix file and store it locally, even while connected to our VPN, I get a bunch of errors:

image.png

 

1 ACCEPTED SOLUTION

The fix ended up being:

- I need to connect to VPN and manually refresh each time I transform data

- Clicking the "Refresh" button here worked

image.png

View solution in original post

8 REPLIES 8
v-kelly-msft
Community Support
Community Support

Hi @ericOnline

 

Can you advise me in which mode do you connect the data source of Sql?Import Or direct query?

Can you take a screenshot of what is in advanced editor?From your pic,it seems a data source error,but I need more details to confirm it...

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 Hi @v-kelly-msft , 

I inherited this PowerBI report. I'm unsure how to determine the method (direct query or import). Where do I look for this info?

Here is the code (redacted) from Advanced Editor:

let
    Source = DB2.Database("test.db.mycompany.com:1111", "dbName", [HierarchicalNavigation=true, Implementation="Microsoft"]),
    TST = Source{[Schema="TST"]}[Data],
    TABLENAME = TST{[Name="TABLENAME"]}[Data]
in
    TABLENAME

And here is the (redacted) error message:

DataSource.Error: Microsoft Db2 Client: No such host is known SQLSTATE=08S01 SQLCODE=-1336
Details:
    DataSourceKind=DB2
    DataSourcePath=test.db.mycompany.com:1111;dbName
    Message=No such host is known SQLSTATE=08S01 SQLCODE=-1336
    ErrorCode=11001

 Thank you

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @ericOnline ,

 

what kind of VPN Software do you use?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Hi @mwegener . Its a major vendor. Nothing niche. (I don't usually speak about these types of things on public forums).

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @ericOnline ,

 

but you are sure that it is a VPN and not a terminal access such as Citrix.

Because it is surprising that the same Power BI desktop installation should use a different connection depending on the storage of the PBIX file.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Hi @ericOnline

 

Based on your description,it seems an individual issue,better create  a support ticket via below link and our relevant personnel will help to handle it.
https://powerbi.microsoft.com/en-us/support/

 

Support Ticket.gif

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

The fix ended up being:

- I need to connect to VPN and manually refresh each time I transform data

- Clicking the "Refresh" button here worked

image.png

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @ericOnline ,

 

what kind of VPN solution do you use?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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