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

Internal database error: Library used incorrectly. SQLite Error Code=21.

Starting yesterday most of our Power BI report refreshes are failing with the following reason. This is happening to multiple reports in the workspace. The report refreshes used to work perfectly till now.  

 

Internal database error: Library used incorrectly. SQLite Error Code=21. An error occurred while attempting to insert a row into the system table 'Table' in the metadata database.

 

The data source is SQL Server 2016. Any idea why this could be happening?

 

The workspace is on P1 capacity. The reports refresh fine on desktop. 

 

Thanks

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous,

 

I think you are working with SSAS data source and third party sqlite connector, right?

If this is a case, I think this issue should more related to sqlite itself, you can post to sqlite related forum to get better support.

 

In addition, you can also take a look at following link with same error message:
Unable to Deploy Cubes - Error : Failed to save modifications to the server. Error returned: 'Internal database error: Library used incorrectly. SQLite Error Code=21. An error occurred while attempting to delete a row from the system table 'Table' in the

 

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

@Anonymous

We are not using SSAS and neither a third party SQL lite connector. All the affected reports are using SQL Server 2016 as the data source and models are import based.

I'm having the same problem. I would appreciate any answer

Anonymous
Not applicable

HI @Anonymous,

 

Is there any update on your sql server environment? I can't reproduce this on my side, it works when you test with sql 2016.

Can you please open a support ticket to get better support from power bi team? It is free for pro and above licenses.

 

submit a support ticketsubmit a support ticket

Regards,
Xiaoxin Sheng

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.

Top Solution Authors