Unhandled exception: attempt to write to a readonly database
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
error when rolling "unable to write readonly database"
Collapse
X
-
Here's the solution from Ninja, I had a .sqlite file instead of the .sdf file. use this info at your own risk but the roll over worked for me and charts seem to be fine at this point.
I'm unfamiliar with this particular error, but it seems to be referencing the database. I'd like you to create a brand new database file and see if the issue persists. We advise that you rename your database using the following steps :- Shutdown NinjaTrader and navigate to the Start Menu
- Select My Documents--> NinjaTrader 8--> db--> "NinjaTrader.sdf" file (may only say 'NinjaTrader' depending on your Windows File Explorer settings)
- Right click on NinjaTrader.sdf and select "Rename" *Name it "OLDNinjaTrader.sdf"
- Then restart the software and NinjaTrader will create a fresh database file to use
- Unfortunately the following items stored in the old database will be lost - Trading Hours templates, Instrument Lists / Custom Instruments, historical trade execution data, saved Strategy Analyzer backtest results
To prevent running into situations where you can potentially lose important data in the future, we advise running regular backups via our inbuilt backup feature in NinjaTrader.
Please feel free to write in with any additional items we may assist with. Thank you for choosing NinjaTrader.
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
71 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
43 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
25 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
28 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
56 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment