Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SqlCeException (0x80004005)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SqlCeException (0x80004005)

    I'm having trouble loading and processing tickreplay historical data when loading a chart. Here is the error message I get in the Log tab.
    Error on executing DB command: System.Data.SqlServerCe.SqlCeException (0x80004005): There is insufficient disk space to complete operation. at System.Data.SqlServerCe.SqlCeCommand.ProcessResult s(Int32 hr) at System.Data.SqlServerCe.SqlCeCommand.ExecuteComman dText(IntPtr& pCursor, Boolean& isBaseTableCursor) at System.Data.SqlServerCe.SqlCeCommand.ExecuteComman d(CommandBehavior behavior, String method, ResultSetOptions options) at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQue ry() at NinjaTrader.NinjaScript.StrategyBase.DbAdd() at NinjaTrader.NinjaScript.StrategyBase.DbUpdate() at NinjaTrader.Cbi.DB.DBThread()


    please let me know what can be done. Thanks, Evan

    #2
    Hello Evan,

    Can you please repair the NinjaTrader database and check if the error persists.
    • Disconnect NinjaTrader from any open connections via Control Center > Connections > Disconnect
    • From the NinjaTrader Control Center window select the menu Tools > Database Management
    • Click on 'Repair DB'
    • Press the "Repair" button
    If so, please rename the database and check again.
    • Shutdown NinjaTrader and go to the Start Menu
    • Select 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
    If you still experience the error, could it be there is not enough space left on the drive that holds the Documents-->NinjaTrader 8 folder?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    91 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    69 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X