Bug report #21498

python error when using the QGIS "assign projection" tool in batch mode and output format is GPKG

Added by Giovanni Manghi over 1 year ago.

Status:Open
Priority:Normal
Assignee:-
Category:Processing/QGIS
Affected QGIS version:3.4.5 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29315

Description

Input layers have already a "fid" field. Does not happen not using batch mode. Possibly affects other tools?

error is like

Algorithm Assign projection starting…
Input parameters: {'CRS': <qgis._core.QgsCoordinateReferenceSystem object at 0x0000000010CABCA8>,
'INPUT': 'input1',
'OUTPUT': <QgsProcessingOutputLayerDefinition {'sink':C:/Users/qgis/test1.gpkg, 'createOptions': {}}>}

Could not create layer C:/Users/qgis/test1.gpkg: Creation of field fid failed (OGR error: Wrong field type for fid)

Also available in: Atom PDF