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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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 

 

This error (file '', line, function '') isn’t caused by the PBIX file itself it’s almost always due to an environment issue. Since it works on one machine and not others (all with different OS setups), the root cause is likely one of the following:

  • Corrupt or incompatible ODBC/OLEDB drivers (even if updated)

  • Permissions or access issues from OneDrive/shared paths

  • Missing dependencies after OS upgrade (like .NET or C++ runtimes)

Fix to try:

  • Move the file to a local folder (e.g., Documents)

  • Run Power BI as Admin

  • Try Compatibility Mode (set to Windows 10)

  • Fully uninstall and reinstall the ODBC driver

  • Check Event Viewer or %LOCALAPPDATA%\Microsoft\Power BI Desktop\Temp\ for detailed error logs

If none of that works, it's worth logging a ticket with Microsoft this seems like a system-level bug post-upgrade.


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 PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.

Top Solution Authors