Issue with counter field

An exception appeared in getValueFromRow when counter filed accessed as getInt