Error trying to enter data in mobile database (Android Sqlite)

Asked

Viewed 59 times

1

I am trying to insert 864 objects in the mobile database. I can enter up to 450, but then generates an exception: System.Argumentexception: Busy.

Does anyone have any idea what might be going on?

  • There may be a lack of synchronicity.

  • Have you examined what you have at position 450 to generate the exception? Have you reached any space limit? Have you tried debugging the process? Have you tried using try-catch and then treat the exception?

  • 1

    Yes, I found the error, it is synchronization problem. In Sqliteconnection has a property "Busytimeout", I set a reasonable value and it worked. Thank you!

  • You are using bulkInsert to make this load or a loop with multiple Inserts?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.