The problem was that the content had been migrated from drupal 6. The specific content type had some "views attach" fields. Since this module is deprecated in d7 the fields remained orphaned and they were causing the prob. I was able to find what fields did not have a valid name in the field list page. Then used the following php command to delete the problematic fields
field_attach_delete_bundle('node', 'problematic_field_name');