Select to view content in your preferred language

"Attempt to write a readonly database" error on importDeltaWithGeodatabase:deltaPath:completion:()

1194
1
11-14-2018 08:49 AM
JakeShapley
New Contributor III

iOS SDK version: 100.2.1

We have a public-facing mobile app with ~40k users. It leverages the runtime geodatabase and imports delta files (sqlite) with the SDK importDeltaWithGeodatabase:deltaPath:completion:() method. This works great almost every time 95+%, but we've started seeing failures due to "Attempt to write a readonly database" error. We have not been able to reproduce it such that we can determine a cause. It would be great if the product team could weigh-in on what circumstances/logic/blocks in the SDK throw this error.
We use a modified disconnected workflow, but:
    a) The mobile client never connects to the service, rather the client downloads a replica.geodatabase (mobile sqlite replica) from AWS S3.
    b) All edits are one-way, server to client, via a delta.geodatabase (mobile sqlite delta file).
    c) Edits import just fine, 95+% of the time, and then they don't and we get that error.
    d) We never set the database to be read-only; nor would we want to, or even know how to.
Given these factors, I need to know what other circumstances could cause the SDK to think the database is read-only.
Cheers,
Jake
Tags (3)
0 Kudos
1 Reply
ShaneDillon
New Contributor

Did you ever get a response to this issue?

0 Kudos