Bug report #16588

Cannot save duplicated layer back to GeoPackage

Added by Eron Lloyd over 6 years ago. Updated about 6 years ago.

Category:Data Provider
Affected QGIS version:2.18.7 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:24490


When I duplicate a layer in a GeoPackage, I cannot save that layer back to the same GeoPackage. Instead, I get an error message stating "Export to vector file failed. Error: Cannot overwrite a OGR layer in place." However, if I save the duplicated layer to another GeoPackage, and then save it back into the original one, it works. The issue consistently occurs each time.

Screen Shot 2017-05-21 at 1.10.32 AM.png (146 KB) Eron Lloyd, 2017-05-21 07:14 AM


#1 Updated by Giovanni Manghi over 6 years ago

  • Operating System deleted (OS X)
  • Status changed from Open to Feedback

To me sounds like is expected. The duplicate layer is not a different datasource from the original one, is exactly the same, just with a another name in the layer tree.

#2 Updated by Giovanni Manghi about 6 years ago

  • Resolution set to invalid
  • Status changed from Feedback to Closed

Closing for lack of feedback, please reopen if necessary.

Also available in: Atom PDF