Bug report #16847

Copy and paste feature in polygon layer won't commit changes

Added by Amy Taylor about 4 years ago. Updated about 4 years ago.

Affected QGIS version:2.18.10 Regression?:Yes
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:24746


When editing a polygon layer copying and pasting a feature works, but on attempting to save the edits the following error msg is displayed:

Could not commit changes to layer A3_10K_tiles

Errors: ERROR: 1 feature(s) not added - geometry type is not compatible with the current layer.

Features can be added by digitizing, but any feature created using the copy/paste functionality is now "not compatible with current layer", even when it has been copied from an existing and valid polygon in the layer. The layer cannot be saved until all features created with copy/paste functionality have been deleted.

Example polygon layer attached. This functionality worked in v2.14.

A3_10K_tiles.zip (1.71 KB) Amy Taylor, 2017-07-11 11:15 AM


#1 Updated by Giovanni Manghi about 4 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

Fixed in d19ed1c627ac43c7a00221f5cb637b8b049f6681

you need to wait for 2.18.11, or downgrade to 2.18.9 meanwhile

Also available in: Atom PDF