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
igordossantos
Helper I
Helper I

Microsoft.Mashup.Evaluator.Interface.ErrorException: Attempted to read or write protected memory.

Team,

 

Having an issue while connecting to the data source (Oracle) using Get Data (Power Query). 

 

I have been able to connect to the same datasource and have built a data model with a decent size, but for some reason I'm no longer able to connect. 

 

I'm remote connected to the VPN working on this model. 

 

Below is the error stack:

 

--------------------------------------------------
Please provide a complete description above.

Data to send to Microsoft:


Feedback Type:
Frown (Error)

Timestamp:
2016-11-10T17:38:11.3970651Z

Local Time:
2016-11-10T12:38:11.3970651-05:00

Product Version:
2.40.4554.463 (PBIDesktop) (x64)

Release:
October, 2016

IE Version:
11.0.9600.18499

OS Version:
Microsoft Windows NT 6.1.7601 Service Pack 1 (x64 en-US)

CLR Version:
4.6.1 or later [Release Number = 394271]

Workbook Package Info:
1* - en-US, fastCombine: Disabled.

Peak Working Set:
525 MB

Private Memory:
447 MB

Peak Virtual Memory:
4.07 GB

Error Message:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Stack Trace:
Microsoft.Mashup.Evaluator.Interface.ErrorException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Oracle.DataAccess.Client.OpsMet.GetSchemaMetaData(IntPtr pOpsConCtx, IntPtr pOpsErrCtx, OpoMetValCtx* pOpoMetValCtx, Int32 AddRowid, Int32 AddToStmtCache)
%

 

 

 

1 ACCEPTED SOLUTION

Thank you for the reply. 

 

It turns out that the issue was the code. The code I was passing through DirectQuery to the Oracle backend was in ANSI-89 format, similar to the below:

 

select a.id, b.id, b.address_1
from person a, address b
where a.id = b.id

 

Once the code was converted to ANSI-92 format, the error message went away. 

 

select a.id, b.id, b.address_1
from person a
inner join address b
on a.id = b.id

 

Is this documented somewhere? If not, this should be. 

 

-Igor

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi,

 

I have an user having this issue in Power BI, may I know what is the issue of this? and any solution?

 

MicrosoftTeams-image (6).pngMicrosoftTeams-image (5).png

Anonymous
Not applicable

I've tried to reinstall the software and checked that the version has been upgraded to latest version, which is version 2.108.825.0

v-yuezhe-msft
Employee
Employee

Hi @igordossantos,

In Power BI Desktop, please firstly go to File-> Options and Settings-> Options-> Data Load, clear cache in the following screenshot, then check if you can connect to Oracle successfully.
1.PNG



Alternatively, you can go to C:\Users\username\AppData\Local\Microsoft\Power BI Desktop\Cache to delete all files in Index and Temp folders.


Thanks,
Lydia Zhang

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

Thank you for the reply. 

 

It turns out that the issue was the code. The code I was passing through DirectQuery to the Oracle backend was in ANSI-89 format, similar to the below:

 

select a.id, b.id, b.address_1
from person a, address b
where a.id = b.id

 

Once the code was converted to ANSI-92 format, the error message went away. 

 

select a.id, b.id, b.address_1
from person a
inner join address b
on a.id = b.id

 

Is this documented somewhere? If not, this should be. 

 

-Igor

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.