You need to pass the name of the column not the the index: idVar = inFeat["somefeildname"] - Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130203/9f83fb8f/attachment.html>