Bug report #19130
'Move and Copy' feature of vector editor duplicates 'fid'
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
History
#1 Updated by Alessandro Pasotti over 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 over 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 about 6 years ago
- Status changed from Feedback to Open
#4 Updated by Jürgen Fischer about 6 years ago
- Related to Bug report #19776: Copy and Move Feature Error on Geopackage added
#5 Updated by David Signer almost 6 years ago
- Status changed from Open to Closed
This is solved by https://github.com/qgis/QGIS/pull/8436