Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unable to Initialize Database

Featured Replies

Hi Maarten,

Downloaded your program.  Ran it a couple of times then saw there was an update so downloaded and installed v5.9.6444.37686.  Now it will not start up and gives me the error message Unable to Initialize Database Simlauncher will now close.  Any idea what went wrong?

The log states the following:

20170823175511    Loading database    
20170823175511    Database file C:\Users\JimY\Documents\SimLauncherX\SimLauncherX.P3Dv4.sqlite exists    
20170823175511    Initializing database    
20170823175513    Error initializing database    "Telerik.OpenAccess.OpenAccessException: System.InvalidOperationException: The migration of a primary key to a different type is not supported. PrimaryKey column [Id] of table [AircraftType] is modeled as integer. Database has int. ---> System.InvalidOperationException: The migration of a primary key to a different type is not supported. PrimaryKey column [Id] of table [AircraftType] is modeled as integer. Database has int.
   at OpenAccessRuntime.Relational.sql.SqlDriver.FixColumns(TableDiff tableDiff, DDLAction actions)
   at OpenAccessRuntime.Relational.sql.SqlDriver.ReportFixes(ICollection`1 schemasToCreate, List`1 diffList, DDLAction actions)
   at OpenAccessRuntime.Relational.sql.SqlDriver.checkDDL(ICollection`1[] tables, Connection con, ControlParams controlParams, DDLAction actions)
   at OpenAccessRuntime.DataObjects.tools.ant.SchemaMigrationTask.migrateDatabase()
   --- End of inner exception stack trace ---
   at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)
   at OpenAccessRuntime.ExceptionWrapper.Throw()
   at OpenAccessRuntime.DataObjects.tools.ant.DataObjectsTaskBase.throwBuildException(String str, Exception e)
   at OpenAccessRuntime.DataObjects.tools.ant.SchemaMigrationTask.migrateDatabase()
   at OpenAccessRuntime.DataObjects.tools.ant.SchemaMigrationTask.execute()
   at OpenAccessRuntime.OpenAccessSchemaAdapter.CreateUpdateDDLScript(SchemaUpdateProperties schemaUpdateProps)
   at OpenAccessRuntime.SchemaHandlerImpl.Telerik.OpenAccess.ISchemaHandler.CreateUpdateDDLScript(SchemaUpdateProperties props)
   at MaartenBoelens.SimLauncherX.Model.SimLauncherXDatabase.<>c__DisplayClass98_0.<InitializeAsync>b__0()"

Best regards,

Jim

 

Jim Young | AVSIM Online! - Simming's Premier Resource!

Member, AVSIM Board of Directors - Serving AVSIM since 2001

Submit News to AVSIM
Important other links: Basic FSX Configuration Guide | AVSIM CTD Guide | AVSIM Prepar3D Guide | Help with AVSIM Site | Signature Rules | Screen Shot Rule | AVSIM Terms of Service (ToS)

I7 8086K  5.0GHz | GTX 1080 TI OC Edition | Dell 34" and 24" Monitors | ASUS Maximus X Hero MB Z370 | Samsung M.2 NVMe 500GB and 1TB | Samsung SSD 500GB x2 | Toshiba HDD 1TB | WDC HDD 1TB | Corsair H115i Pro | 16GB DDR4 3600C17 | Windows 10 

 

Hi Jim,

Sorry about that, your not the first one to suffer from this issue. To solve the issue, delete the C:\Users\JimY\Documents\SimLauncherX\SimLauncherX.P3Dv4.sqlite file and start again. Upon restart a new database will be created and everything will be ok after that. A new database had to be created anyway with the new version, but the application should not crash. I have disabled further downloads of the new version temporarily and will try to find a solution tomorrow (bedtime now in The Netherlands).

Edit: I was able to reproduce and fix issue. I will release a new version asap.

thanks, Maarten

Edited by mawibo
found the cause of the issue

Maarten Boelens ([m][a:][R][t][ʏ][n])
Developer of SimLauncherX

ftx_supporter_avsim.gifC172Siggy1_zps11944daf.jpg

  • Author

Thanks Maarten.  That fixed it and I was able to reinstall the new version with no errors.  Sent you a small donation earlier.  I really appreciate your contributions to the community.  This program is like a Swiss Army Knife!!

Best regards,

Jim

Jim Young | AVSIM Online! - Simming's Premier Resource!

Member, AVSIM Board of Directors - Serving AVSIM since 2001

Submit News to AVSIM
Important other links: Basic FSX Configuration Guide | AVSIM CTD Guide | AVSIM Prepar3D Guide | Help with AVSIM Site | Signature Rules | Screen Shot Rule | AVSIM Terms of Service (ToS)

I7 8086K  5.0GHz | GTX 1080 TI OC Edition | Dell 34" and 24" Monitors | ASUS Maximus X Hero MB Z370 | Samsung M.2 NVMe 500GB and 1TB | Samsung SSD 500GB x2 | Toshiba HDD 1TB | WDC HDD 1TB | Corsair H115i Pro | 16GB DDR4 3600C17 | Windows 10 

 

Hi Jim,

Thank you very much for your donation and the compliments!

I couldn't resist fixing the issue before going to bed. Unfortunately for you, you will have to delete the database again before you install the latest version. There was no other way to fix it ;-(

thanks, Maarten

Maarten Boelens ([m][a:][R][t][ʏ][n])
Developer of SimLauncherX

ftx_supporter_avsim.gifC172Siggy1_zps11944daf.jpg

  • Author

Hi Maarten,

That was a superfast response and fix.  I appreciate your losing some sleep and the support!  I'm anxious to 'dive' into this program to see everything it does. :biggrin:

Best regards,

Jim

Jim Young | AVSIM Online! - Simming's Premier Resource!

Member, AVSIM Board of Directors - Serving AVSIM since 2001

Submit News to AVSIM
Important other links: Basic FSX Configuration Guide | AVSIM CTD Guide | AVSIM Prepar3D Guide | Help with AVSIM Site | Signature Rules | Screen Shot Rule | AVSIM Terms of Service (ToS)

I7 8086K  5.0GHz | GTX 1080 TI OC Edition | Dell 34" and 24" Monitors | ASUS Maximus X Hero MB Z370 | Samsung M.2 NVMe 500GB and 1TB | Samsung SSD 500GB x2 | Toshiba HDD 1TB | WDC HDD 1TB | Corsair H115i Pro | 16GB DDR4 3600C17 | Windows 10 

 

Hi Jim,

I hope you like it! If you have any questions, don't hesitate to ask here on the forum or via e-mail. I still need to bring the user guide up to date, but a description of the more recent features (like RAAS, the fleet management, taxi route finder etc.) can also be found in the change log (button on the Home ribbon tab).

thanks, Maarten

Maarten Boelens ([m][a:][R][t][ʏ][n])
Developer of SimLauncherX

ftx_supporter_avsim.gifC172Siggy1_zps11944daf.jpg

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.