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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Oracle: ORA-604: error occurred at recursive SQL level %s

I am attempting to setup a Gateway to Oracle 11gR2. I have installed the 64 bit client and 64bit ODAC on the server running the Gateway, but I get this error on powerbi.com : 

 

 

Underlying error code: -2147467259
Underlying error message: Oracle: ORA-604: error occurred at recursive SQL level %s
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.DataSourceKind: Oracle

Microsoft.Data.Mashup.ValueError.ErrorCode: -2147467259
Microsoft.Data.Mashup.ValueError.Message: ORA-604: error occurred at recursive SQL level %s
Microsoft.Data.Mashup.ValueError.Reason: DataSource.Error

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Does this error happen when adding the Oracle data source under the on-premise gateway?

 

Once 64 bit client and 64bit ODAC are installed, please verify that the tnsnames.ora file is properly configured and you are using the proper net_service_name.

Also make sure that the net_service_name is the same between the machine using Power BI Desktop and the machine that is running the gateway.

https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem-manage-oracle

 

Besides, there is a link how to troubleshoot "ORA-00604: error occurred at recursive SQL level 1"

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hello, i have just encountered this problem when trying to add a data source with on premise data gateway, have you found the solution for this problem?

Regards

Anonymous
Not applicable

I ended up just having to capitalize the net service name, even thought it was lower case in my TNS file. For example, originally my net service name in Power BI desktop was abc-prd, I changed it to ABC-PRD and everything started working.

v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Does this error happen when adding the Oracle data source under the on-premise gateway?

 

Once 64 bit client and 64bit ODAC are installed, please verify that the tnsnames.ora file is properly configured and you are using the proper net_service_name.

Also make sure that the net_service_name is the same between the machine using Power BI Desktop and the machine that is running the gateway.

https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem-manage-oracle

 

Besides, there is a link how to troubleshoot "ORA-00604: error occurred at recursive SQL level 1"

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.