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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lw24
Helper I
Helper I

Object reference not set to an instance of an object (Oracle DB)

Hi All - I want to first say I've tried to go through as many posts about this subject as I could and still they did not resolve my error.

These are the steps I have followed. 

This error first occured around Feb 14th but I refresh the dashboard on weekly basis so around time of 2.122 release. My company uses VM workspace one to download apps... I reinstalled PowerBI once from there but then installed directly from Microsoft website.

My company has a blocker on the 64 bit ODAC

Next, the file mentioned in this post is already in the \bin folder

Next, I cleared permissions from the data source and logged back in, still no solution. 

Next, this solution looks promising but I'm not sure how to ensure the file is properly configured?? 

 

The error message: An error happened while reading data from the provider: 'Object reference not set to an instance of an object.'

detail: C: oracle\product\12.1.0\client_1

 

Appreciate any responses, my IT team says the issue is with Power BI and cannot provide further assistance... 

 

 

3 REPLIES 3
v-yaningy-msft
Community Support
Community Support

Hi, @lw24 

 

Based on the information you've shared, it appears that the "Object reference not set to an instance of an object" error is related to accessing or retrieving data from an Oracle database through Power BI. This error typically indicates a null reference exception, which can occur for various reasons, including insufficient permissions, incorrect configuration, or issues with the Oracle Data Access Components (ODAC).

Given that your company has a blocker on the 64-bit ODAC and considering the error message points to an Oracle client directory, it's likely that the issue is related to the Oracle client configuration or permissions.

Here are a few steps you can take to troubleshoot and potentially resolve this problem.

1. Verify User Permissions, ensure that the user account used to connect to the Oracle database has the necessary permissions. This includes access to the relevant tables, views, and any other database objects required by your Power BI report.

2. Check ODAC Configuration, the Oracle client directory mentioned in your error message ('C:\oracle\product\12.1.0\client_1') should be part of the PATH environment variable, and the tnsnames.ora file should be correctly configured to point to your Oracle database.

Connect to an Oracle database: Connect to an Oracle database with Power BI Desktop - Power BI | Microsoft Learn

3. Reconfigure Power BI Data Source, since you've already cleared permissions from the data source, try setting up the data source connection again. Make sure to use the correct connection string and credentials. If you're using an ODBC connection, ensure that the DSN is correctly configured to use the Oracle client.

 

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!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

@v-yaningy-msft regarding #3 these are the steps I take, is there something I'm missing? I'm only able to login to Microsoft Account

 

Oracle DB signin.jpgEdit Permissions.jpgData Source Settings.jpg

@v-yaningy-msft regarding #2 the mentioned file is in this location C:\oracle\product\12.1.0\client_1\network\admin and when I open the file this is the server I should be connected to ... 
XLOSP.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = MATLKXLO1ORP001)(PORT = 15210))
)
(CONNECT_DATA =
(SERVICE_NAME = xLOSP)
)
)

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.