"duplicate key value violates unique constraint" error when using "Edit Feature in Place" with PostGIS Layer #33816
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Feedback
Waiting on the submitter for answers
Processing
Relating to QGIS Processing framework or individual Processing algorithms
in our postgis database for line(road) layer we have defined primary key field and have applied unique not null constraint when i save split line segements manually by editing toolbar it works fine, but when i split lines with "split with lines" tool by turning on edit feature in place it gives me postgis error
"""
Could not commit changes to layer pk_roads
Errors: ERROR: 4 feature(s) not added.
Provider errors:
PostGIS error while adding features: ERROR: duplicate key value violates unique constraint "pk_roads"
CONTEXT: SQL statement "INSERT INTO pk_roads SELECT(pk_roads '(,,,,,,,,,,,,0102000020110F000002000000A00ABFB828A35F411E7335C4B9484D41C9CA687C3CA35F41405E7DA3BD484D41,103564332,"digi1,",,,,,,,,,,,,,,,,,,,,,,,,)').* RETURNING id;"
PL/pgSQL function fn_rd_partition() line 9 at EXECUTE
"""
but from my point of view it must have to work fine for "split with lines" tool if same splitting works from "Advance Digitizing Toolbar"
The text was updated successfully, but these errors were encountered: