Wouldn't making the fid field read only and generated once upon insert solve the issues? Still, it will uniquely identify the feature for its lifetime in the dataset. -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html