> If any of the attributes is not in the database, for instance 'value', > then I get the error and have to restart my application. Still not very clear -- how can the value not be in the database? You mean it is null for the record you are retrieving?