I am using GDAL ogr2ogr to export to a file geodatabase from postgres. I keep receiving this error for some layers within my database. Any idea on what is causing this error?

enter image description here

enter image description here

  • Please always include commands and errors in the question body as text, so they are legible on all devices and indexable by search engines.
    – Vince
    Apr 10, 2017 at 23:06

1 Answer 1


You can probably use the -unsetFid flag in your ogr2ogr command if the FID's do NOT need to be retained in the exported FileGDB.

It looks like it's trying to add a feature that has a matching feature ID and the FileGDB probably needs them to be unique, hence the error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.