MerginMaps / MerginMaps/mobile
SQL Query Layer causing? "Saving Failed"
@uclaros is already working on this.
Since Jul 15, 2026.
- Dominant language
- C++
- Stars
- 388
- Forks
- 87
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 20
Description
android version: 14
kernal version: 4.19.191+
app version: 2025.2.0
It appears that the presence of a SQL Query Layer querying data on a geopackage within the project leads to a saving failure within the mergin app on android.
The query layer is made through QGIS DB Manager --> SQL window --> query --> "Load as new layer", and queries a geopackage present in the current project.
The SQL query, combines the geometry of one layer, and the attributes of another non-spatial layer - both of which are located within the same geopackage.
When attempting to input new data, first by creating geometry via the geometry layer, then inputing data into the many-to-one related non-spatial form/layer, the app presents the following error.
"Saving Failed
Failed to save changes. This should not happen normally. Please restart the app and..."
This error occurs when trying to save the non-spatial layer, and once the form/data deleted and the user us returned the the spatial layer form, is also presented with the same error.
The error persists even if the SQL Query Layer is turned off within the app, and disappears when the SQL Query Layer is removed from the project without any other changes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.