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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
haripp
Frequent Visitor

Unable to connect to Cosmos Db (Beta) V2 with Power Bi.

I am getting below error while connecting cosmos DB with Power BI . can any one help me to resolve the issue.

This error is coming for lower env in cosmbos and prod as well .

 

An exception occurred: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

3 REPLIES 3
v-kaiyue-msft
Community Support
Community Support

Hi @haripp ,

Thanks for the reply from @amitchandak . I have some more suggestions here that I hope will help you.

1. Make sure you are using the latest version of Power BI Desktop. Download link: Download Microsoft Power BI Desktop from Official Microsoft Download Center

2. Verify the Cosmos DB connection settings in Power BI. Ensure that you follow the correct steps for setup as outlined in the Microsoft documentation. Power BI tutorial for Azure Cosmos DB | Microsoft Learn

3. Here is a link to a similar issue to yours, hopefully it will be more helpful. Solved: error import data from OLE DB - Attempted to read ... - Microsoft Fabric Community

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@haripp , Start Power BI with Admin privileges and try. Also, increase Data Cache from File -> Options and Settings -> Options -> Data load

@amitchandak thank you for response. unfortunaley ,I still encounter the issue as below . 

 exception occurred: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Session ID: ).

 

any suggestions will be helpful as i blocked to connect to cosmos db. I can connect to my local cosmos but when i connec to environment, i am getting an error. this is blocking me.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.