How to avoid problems when saving edits in Geopackages from QGIS

224 Views Asked by At

I really like working with Geopackages as the data format in QGIS. Only one file per layer and no limits on the namin of attributes.

But from time to time after editing a Geopackage I get the error message that the edits cannot be saved.

As latest example I tried just to rename an attribute and got this error:

Could not commit changes to layer Aktiviteter-Aarhus Kommune — Aktiviteter

Errors: ERROR: 2 attributes not renamed

Provider errors: OGR error renaming field 1: sqlite3_exec(ALTER TABLE "Aktiviteter" RENAME COLUMN "ANTAL_ENHEDER" TO "Boliger") failed: no such column: ""ANTAL_ENHEDER""

I use the layer properties window to do the renaming: Layer Properties - Fields

Any recommandations when editing Geopackages?

0

There are 0 best solutions below