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
Changes are not written to data.gpkg by QField #609
Comments
I was not able to reproduce the issue with QGIS 3.4.12, QField 1.2.0 using qfieldSync for setting the project offline. And yes I also used geopackages |
I'm also having this problem. Looking at the geopackage log files, it appears for my project that the layer_id references may be wrong. When I look at the log files in the geopackage, the log_feature_updates and log_added_features reference layer_id in their attribute table, the value for which is at least 0. Looking at the log_layer_id, the qgis_id value for id=0 is "Trees_Field__offline__9f01cb53_1029_463f_9076_6ace43c0e3eb". If I understand the relations correctly, shouldn't the log_layer_id reference the table being updated, in this case "Trees_Field_bde016a9_22e3_4e6e_aaf5_e7945f43aaf5"? And so the reference to "Trees_Field__offline ..." could be why the updates aren't showing up. |
When I try the Synchronise from QField project, it just re-adds all the tables to the project without the updated data in the edited GPKG. I have set the editable files as offline and they are in a single gpkg with the same projection. |
I can confirm this behaviour. layer (in gpkg) set by the Syncplugin to offline editable. Added and changed features with Qfield. Syncing back the data with Sync plugin wrote the changed features correctly to the database, but did not add newly created features (Qfield 1.2, QGIS 3.10, Qfield Sync Plugin 3.1.5) |
@meyerlor That is interesting, because I just updated my project using QFieldSync on the weekend, and only the new features were added, but no existing points were updated. Basically the inverse of what you just described. This was the first time it had happened like that for me, though. |
Thanks for reporting this bug. Bugs are often fixed on a voluntary basis (see sustainability initiative). This still often takes time and we need to prioritize bugs, so some may slip through the cracks. If you need this bug to be fixed in a more timely manner, get in touch. |
Fixed, closing. |
I have been wasting hours trying to get changes in QField to sync to QGIS, and have narrowed it down to a failure by QField to add new features to the
log_added_features
layer indata.gpkg
.Reproduction Steps:
Expected behavior:
Entries in
log_added_features
and addition of new features to master project layers.Observed behavior:
No entries in
log_added_features
, no features transferred, no error messages.QField version: 1.1.0
Additional information:
I'm running QField on a Huawei P Smart.
The text was updated successfully, but these errors were encountered: