-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Feature Not Saved after edit it ( Last Update ) #4693
Comments
@abdullamuthana , can you share a sample project? I'm unable to replicate with the sample bees project shipped with QField. |
test.zip
|
@abdullamuthana , thanks this is helpful. Turns out that the problem has to do with your geopackage structure. For some reason, your feature ID column in your layers are name-less, i.e.: This results in QGIS/gdal not being able to add the feature ID column when sorting features. In QField 3.0, we now sort feature lists, which means in your case that editing sorted features results in a missing ID needed to save the edits. My suggestion is to simply edit your geopackage and name the fid columns "fid" (you can do that easily using the open source sqlite browser application) That fixes the situation. You could also file an issue upstream in QGIS, but in this case I think name-less columns is the problem, not QGIS :) |
You mean the issue happen because the id column is NULL ? |
@abdullamuthana , no, I mean the issue is happening because your fid index column has an empty name (i.e. the |
but why the same project file was working without any problem before the update ? |
@abdullamuthana , prior to QField 3.0, we were not sorting feature lists (eg the list you get when identifying features through tapping on the screen). Your malformed geopackage leads to the loss of feature ID when sorting features. It is replicable in QGIS too. I'm surprised the geopackage worked at all considering the empty attribute name used for the indexed ID. |
@abdullamuthana , exactly 💯 |
Ok let me try to do name for it |
@abdullamuthana , empty column names have got to break quite a few assumptions in QGIS. I was able to rename the column using SQLite Browser. |
The Issue has been fixed after creating a name for it |
@abdullamuthana , great, thanks for confirming. Happy field mapping! |
Describe the issue
if there is any feature on the map then i want to edit the feature after that the edit i have done not save
Observed behavior
When i try to edit any feature on the map it said Changes Saved but it's not saved
Screenshots and GIFs
Already Added
[Please also attach additional files if a
specific project/dataset is useful to investigate the problem.]
Desktop (please complete the following information)
Qfield Last Update
Mobile (please complete the following information)
Additional information
The text was updated successfully, but these errors were encountered: