Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: ObjectBoxException: failed to create store: 10501 DB's last entity ID 2 is higher than 1 from model #483

Closed
alasriaj opened this issue Oct 30, 2022 · 2 comments
Labels
more info required Needs more info to become actionable. Auto-closed if no response.

Comments

@alasriaj
Copy link

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: ObjectBoxException: failed to create store: 10501 DB's last entity ID 2 is higher than 1 from model
#0 ObjectBoxNativeError.throwMapped (package:objectbox/src/native/bindings/helpers.dart:78:9)
#1 throwLatestNativeError (package:objectbox/src/native/bindings/helpers.dart:50:48)
#2 checkObxPtr (package:objectbox/src/native/bindings/helpers.dart:32:5)
#3 Store._checkStorePointer (package:objectbox/src/native/store.dart:367:7)
#4 new Store (package:objectbox/src/native/store.dart:208:7)
#5 openStore (package:objectbox_flutter/objectbox.g.dart:56:5)

#6 ObjectBox.init (package:objectbox_flutter/helper/object_box.dart:15:19)

#7 main (package:objectbox_flutter/main.dart:10:15)

@alasriaj alasriaj added the bug Something isn't working label Oct 30, 2022
@greenrobot-team
Copy link
Member

See https://docs.objectbox.io/advanced/meta-model-ids-and-uids#resolving-meta-model-conflicts on why this happens and how to resolve it.

@greenrobot-team greenrobot-team added more info required Needs more info to become actionable. Auto-closed if no response. and removed bug Something isn't working labels Oct 31, 2022
@github-actions
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info required Needs more info to become actionable. Auto-closed if no response.
Projects
None yet
Development

No branches or pull requests

2 participants