Bug report #19130

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

Added by Matthew Bodnar over 2 years ago. Updated almost 2 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 over 2 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 2 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 about 2 years ago

  • Status changed from Feedback to Open

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

#5 Updated by David Signer almost 2 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF