-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
multiedit in attribute table not working properly in version >=3.22 #48077
Comments
Maybe related to #47223 |
I got the the same error with Postgres, ver >=3.22. |
I think this should be adressed as regression. |
@elpaso |
@paolomartinis I'm looking at the issue. Regarding issue A: I think that it is caused by the layer not having any selected feature. Here is my proposal to fix it: instead of showing the warning, we show a nice info. |
Next time please file two separate issues for A and B, it is easier for us to handle atomic issues. |
Partial fix for qgis#48077
Possible partial fix for qgis#48077 (part B) zzz
Partial fix for qgis#48077
Possible partial fix for qgis#48077 (part B)
Just in case someone who has the same problem finds this issue and has to use QGIS version 3.28.6. or < 3.30. where the bug hasn't been fixed: My customer just had the same problem as described in here part A ("Changes to this form will not be saved. One field doesn't meet their constraints." while trying to use multiedit in attribute table). The problem could be solved by opening the Properties of the layer in question and going to the Attribute forms page. As the problem is in this case the ID field, select that from the list. Under the "Constraints" are "Enforce not null constraint" and "Enforce unique constraint". Try unchecking them. You have to either have both of them or only one of them unchecked. Now multiediting is possible without the getting the "One field doesn't meet their constraints". Note! ID field is maybe the most important field of your layer, so you usually want each feature to have unique ID or not a null value as ID. If you multiedit other fields, QGIS won't change the IDs but always double-check that they remain unchanged. Alternatively uncheck "Editable" in the same place you made the previous changes (Properties > Attribute forms > ID). Now the ID field cannot be edited while you edit other values. |
Thanks for the tip!
rekjuh ***@***.***> ezt írta (időpont: 2024. jan. 18., Cs,
8:07):
… *Just in case someone who has the same problem finds this issue and has to
use QGIS version 3.28.6. or < 3.30. where the bug hasn't been fixed:*
My customer just had the same problem as described in here part A
("Changes to this form will not be saved. One field doesn't meet their
constraints." while trying to use multiedit in attribute table).
The problem could be solved by opening the Properties of the layer in
question and going to the *Attribute forms* page. As the problem is in
this case the ID field, select that from the list. Under the "Constraints"
are "Enforce not null constraint" and "Enforce unique constraint". Try
unchecking them. You have to either have both of them or only one of them
unchecked. Now multiediting is possible without the getting the "One field
doesn't meet their constraints".
*Note!* ID field is maybe the most important field of your layer, so you
usually want each feature to have unique ID or not a null value as ID. If
you multiedit other fields, QGIS won't change the IDs but always
double-check that they remain unchanged. Alternatively uncheck "Editable"
in the same place you made the previous changes (Properties > Attribute
forms > ID). Now the ID field cannot be edited while you edit other values.
image.png (view on web)
<https://github.com/qgis/QGIS/assets/87303508/29426d7a-286d-4ca6-a18b-37ca6dada0ab>
—
Reply to this email directly, view it on GitHub
<#48077 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGBF6SMQULLGJQGX6UT6JCLYPDC2HAVCNFSM5SPAXGAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBZG44TEMBQG4YQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thanks a lot! |
What is the bug or the crash?
Issue A:
When activating the
Toggle multi edit mode
in the Attribute Table for a generic database layer (e.g. a geopackage), Qgis raises the alertChanges to this form will not be saved. One field doesn't meet their constraints.
,Issue B:
Bypassing the issue by removing the unique identifier field from the Attributes Form fields list, by pressing the
Toggle multi edit mode
button Qgis saysAttribute changes for multiple features applied.
. Every subsequent change will apply to all the elements, not just the selected one.This bug will cause data losses, in a critically way for Postgis or other remote database layers.
With QGIS 3.16 everything worked fine.
I found other threads online reporting the same problem, but no other issues here: e.g. https://gis.stackexchange.com/questions/417285/qgis-3-22-automatic-changes-by-multiedit-in-attribute-table
Steps to reproduce the issue
Issue A:
Toggle multi edit mode
buttonIssue B:
Attributes Form
tab in theLayer properties
dialogautogenerate
todrag and drop designer
fid
field from theForm layout
listToggle multi edit mode
buttonVersions
QGIS version
3.22.5-Białowieża
QGIS code revision
c272317
Qt version
5.15.2
Python version
3.9.5
GDAL/OGR version
3.4.2
PROJ version
9.0.0
EPSG Registry database version
v10.054 (2022-02-13)
GEOS version
3.10.2-CAPI-1.16.0
SQLite version
3.38.1
PDAL version
2.3.0
PostgreSQL client version
13.0
SpatiaLite version
5.0.1
QWT version
6.1.3
QScintilla2 version
2.11.5
OS version
Windows 7 Version 6.1 (Build 22000)
Active Python plugins
AnotherDXF2Shape
1.2.3
Cxf_in
9.2
db-style-manager_MOD
0.9.0_MOD
GeofabrykaToolbox
0.5
GroupStats
2.2.5
idrostudi_toolbox
1.21
ImportEpanetInpFiles
1.6.3
joinmultiplelines
Version 0.4.1
mmqgis
2021.9.10
MultiEdit
1.1
multiple_layers_tools
1.2
nominatim
1.4.1
ntv2_transformations
0.20
plugin_reloader
0.9.1
QCopycanvas
0.5
qepanet
2.5
QGIS3_Delft3D_FM
1.0
QuickMultiAttributeEdit3
version 3.0.3
scriptrunner3
3.0.5
SpreadsheetLayers
2.0.1
StreetView
3.2
TerrainShading
0.9.3
wnt
1.3.4
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.5
processing
2.12.99
sagaprovider
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: