Opened 14 years ago

Closed 14 years ago

#2413 closed bug (fixed)

save as shapefile with column names > 10 chars fails "Creation of an attribute failed"

Reported by: anitagraser Owned by: nobody
Priority: minor: annoyance Milestone: Version 1.5.0
Component: Vectors Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

The error message should be adjusted to point the user to a solution (shortening the column names) or offer auto-truncation of column names

See related forum topic: http://forum.qgis.org/viewtopic.php?f=2&t=6114

Change History (3)

comment:1 by jef, 14 years ago

See also #2151. Apparently OGR trims (or used to trim) the fieldnames by itself. What GDAL version is in use? Do the trimmed fieldnames produce duplicate names in use case that triggered this ticket?

r12890 improves the error reporting a bit by including OGRs error message and reporting which column produces duplicate names when truncated.

in reply to:  1 comment:2 by anitagraser, 14 years ago

Replying to jef: Yes, trimming produces duplicate column names. This seems to cause the failure.

comment:3 by jef, 14 years ago

Resolution: fixed
Status: newclosed

fixed in r12890.

Note: See TracTickets for help on using tickets.