I just updated to QGIS 3.20. Now I can no longer do multiple updates, due to a constraint at the field ID. I changed the constraint of ID but the problem stays.
I do can make changes when I select objects in the map.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
I had the same problem once. In my case I had placed a constraint on what values a field can contain.
Check the field you're trying to give a new value to, go to the form view of the layer and check if you have placed any constraints on that field. In my case for example it was a "radius" field that I had once decided should not take a value of more than 8. Hope your issue is as simple this one.
Edit Just realized the field you had issues with was an id field, could be a case of null or duplicates in the id field? Null should be easy to find, for duplicates check this nifty technique: Identifying duplicate attributes in field using QGIS?
I just ran into the same problem, on a 3.26.0-Buenos Aires QGIS.
It took me some time to figure it out, but finally, all I had to do was to explicitly add a primary key to the table.
In psql (or any other decent SQL interface to the PostgreSQL server), this did the trick:
ALTER TABLE table_that_i_want_to_edit_in_qgis ADD PRIMARY KEY (id); -- (provided that id is actually a SERIAL or something -- equivalent, a unique identifier for the table -- table_that_i_want_to_edit_in_qgis)
After that, I was able to edit attributes, modify geometries, etc. in QGIS.