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 August 31st. Request your voucher.

Reply
eugenio_paoli
Regular Visitor

file '', line, function '' while opening e project in PowerBI desktop

hello!

I have a report/project shared in one drive.

We changed the server updating the OS from 2016 to 2022.

on the 2016 everything worked fine, now, with 2022, I have this error while I'm opening the project in PowerBI desktop.

the same project in a windows 11 (updated from 10 to 11) virtual machine, in the same server works without any error.

I created a totally new windows 11 machine in the same server and it doesn't work.

I tried to open the project in another 2016 updated to 2022 and it doesn't work.

The report works fine in the service and updates without any issue.

 

I have already installed the last version of powerbi desktop, the last (and previous) version of the ODBC driver.
The configuration is the same in all the machines.
I've already checked every origin and they are all ok...

 

I don't really know how to fix this problem

 

9 REPLIES 9
rohit1991
Super User
Super User

Hi @eugenio_paoli ,

OS upgrades can definitely introduce weird issues, especially with shared reports and data sources. A few things to check based on your description:

 

  • Double-check that your Windows 2022 machines (including the fresh Win 11 VM) have full access to the OneDrive location where the report is stored. Sometimes newer OS versions have stricter permission or security defaults, and the error you’re seeing (“file '', line, function ''”) might be related to not being able to access or lock the file.

  • ODBC Driver Compatibility: Even if you’ve installed the latest ODBC driver, some older connectors or system libraries may not play nicely with Windows Server 2022. Make sure you’re using the 64-bit version if your Power BI Desktop is 64-bit, and consider re-installing or repairing the driver.

  • Is the OneDrive client the same version on all the machines? I’ve seen cases where the OneDrive app version (or whether files are set to “Available on this device” vs “cloud only”) can affect how apps like Power BI can open files.

  • Make sure all Windows updates and .NET dependencies are installed on the new machines, not just Power BI Desktop.

  • Path Lengths & Special Characters: Sometimes the file path or name can trip up Power BI or the OS—especially with network drives or synced folders. Try moving the .pbix to a very simple, local folder (like C:\Temp) and see if it opens.

  • Try Running as Admin: As a test, try launching Power BI Desktop as administrator and see if it makes a difference.

 

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
v-ssriganesh
Community Support
Community Support

Hello @eugenio_paoli,
Thank you for reaching out to the Microsoft Fabric Community and providing detailed information about the issue. Here are some troubleshooting steps to try:

  • Check all machines are using the latest 64-bit Power BI Desktop version from the Microsoft Download Center.
  • Temporarily disable antivirus or endpoint security on the failing machines. If successful, add exemptions for PBIDesktop.exe.
  • In Power BI Desktop, go to File > Options and settings > Data source settings, clear, and re-enter credentials.
  • Export the .pbix from the Power BI Service and check for errors in date or boolean fields in Power BI Desktop’s Data or Model view. Simplify the model to isolate issues.
  • Check Windows Server 2022 event logs for errors related to Power BI Desktop.

Thank you @lbendlin, for sharing valuable insights.

If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.

  • all the machines have the latest version of 64 bit powerbi desktop
  • in 2 different machines (1 with and 1 without antivirus) the report doesn't work
  • already cleared the data source settings and inserted again
  • already tried to export directly from the service and didn't found anything wrong. but... the same project, in 2 different machines works differently, in 1 yes, on the other no...
  • not tried yet... i will try...

thank you for your support!

Hello @eugenio_paoli,

Just checking in have you been able to resolve this issue? If so, it would be greatly appreciated if you could mark the most helpful reply accordingly. This helps other community members quickly find relevant solutions.
Please don’t forget to “Accept as Solution” and Give “Kudos” if the response was helpful.
Thank you.

unfortunately not solved yet! 😞

 

Hello @eugenio_paoli,
We regret the inconvenience caused. Please consider raising a Microsoft support ticket for further investigation. You can explain all the troubleshooting steps you have taken to help them better understand the issue.

You can create a Microsoft support ticket with the help of the link below:
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket

If this helps, please accept it as a solution and drop a "Kudos" so other members can find it more easily.

Thank you.

 

Hello @eugenio_paoli,

We are following up once again regarding your query. Could you please confirm if the issue has been resolved through the support ticket with Microsoft?

If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community. If we don’t hear back, we’ll go ahead and close this thread.

Should you need further assistance in the future, we encourage you to reach out via the Microsoft Fabric Community Forum and create a new thread. We’ll be happy to help.

 

Thank you for your understanding.

lbendlin
Super User
Super User

Microsoft are listing this issue on their admin center. Service health - Microsoft 365 admin center  (if you have access)

 

As a workaround, users with the Power BI Report Server May 2025 version can move back to the January 2025 version. Users with Power BI desktop can use the 32-bit May 2025 version or they can move to the previously released version.

  

  • already tried with january and february versions - i can't open the project with a previous version.
  • already tried with 32bit - memory error. maybe too many queries.
  • both didn't work....

thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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