-
Notifications
You must be signed in to change notification settings - Fork 297
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
Error while trying to create document. #2194
Comments
Can you share the document content (keys and values) and document ID? |
Hi, We were able to solve the issue. It was because of an index we created recently. When we stopped creating this index, the problem went away. Regarding providing the document content, I was denied permission from my seniors, but the problem was not with the contents as any type of document creation would fail, after creating the faulty index. We also tried by creating just a simple test document with contents - { I also cannot share information about the faulty index. But I can share the following details about it -
It is by far the most complex index in our project (the rest have a single item), but was able to complete the task, and there are only 3 more indexes apart from this one. I still don't know where we went wrong. It would be nice if you could let us know what we did wrong (if possible with the information available). Plus more documentation on index would be welcome as there is very little written regarding it. |
@SalmanZafar1105 I need more detail for reproducing the issue.
[[NSLocale currentLocale] objectForKey: NSLocaleLanguageCode]
|
@SalmanZafar1105, any chance to get the info pasin requested? |
If you can get the info, please update and re-open. |
Hi,
We suddenly started facing problems when trying to save documents.
The logs are -
CouchbaseLite DB Verbose: DataFile: begin transaction
CouchbaseLite DB Verbose: KeyStore(default) insert M.84639319-A40B-4EF6-B0FA-E3C85F3377F1
CouchbaseLite WARNING: SQLite error (code 1): no such column: key
CouchbaseLite WARNING: SQLite error compiling statement "INSERT OR IGNORE INTO kv_default (version, body, flags, sequence, key) VALUES (?, ?, ?, ?, ?)": no such column: key
CouchbaseLite DB Info: DataFile: abort transaction
no such column: key
We have tried everything but it doesn't seem to work, although a query just before trying to create the document runs correctly.
From the warnings it looks like an internal issue, although when I checked the database, the column 'key' is present.
I have attached the db.sqlite3
db.sqlite3.zip
.
The text was updated successfully, but these errors were encountered: