Bug report #19130

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

Added by Matthew Bodnar almost 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Digitising
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

Description

'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

History

#1 Updated by Alessandro Pasotti almost 6 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 almost 6 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 5 years ago

  • Status changed from Feedback to Open

#4 Updated by Jürgen Fischer over 5 years ago

#5 Updated by David Signer over 5 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF