Bug report #19130

'Move and Copy' feature of vector editor duplicates 'fid'

Added by Matthew Bodnar over 4 years ago. Updated about 4 years ago.

Affected QGIS version:3.0.3 Regression?:No
Operating System:WIN 10 1709 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26960


'Move and Copy' feature of vector editor duplicates 'fid' prohibiting changes to be saved until all instances are manually modified to a unique FID value.

This occured on a poly-line feature of a geopackage file type.

re-assigning the fid column to '@row_number' did not work... it invalidated all fields in the table.

Related issues

Related to QGIS Application - Bug report #19776: Copy and Move Feature Error on Geopackage Closed 2018-09-05


#1 Updated by Alessandro Pasotti over 4 years ago

  • Status changed from Open to Feedback

I'm afraid we need some more details, can you please attach a sample project and data plus step-by-step procedure to reproduce this issue?

#2 Updated by Jérôme Guélat over 4 years ago

I was able to reproduce this bug. Here's a step by step procedure:

1. Create a new GeoPackage with a polygon table
2. Digitize a new polygon, toggle the editing off (and save the edits)
3. Toggle editing on and use the tool "Copy and Move Feature" (click on the previous polygon, move it around and click a second time to create the new one)
4. Try to save the changes

The split tool have the same behaviour in QGIS 2.18 but this is fixed in QGIS 3.0. Maybe a similar fix can be applied to the "Copy and Move Feature" tool.

#3 Updated by Giovanni Manghi over 4 years ago

  • Status changed from Feedback to Open

#4 Updated by Jürgen Fischer about 4 years ago

#5 Updated by David Signer about 4 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF