No match for field: Account Name


i added a field “country” in create opportunity. Country is autopopulated when we choose the account.
When i try to save, i get this message “No match for field: Account Name”
PS: i choose the account from the pop up menu
Where does this came from?

here it is what i added to editviewdefs:

   1 => 
      array (
'name' => 'account_name',
'displayParams' => array (
    'field_to_name_array' => array(
        'country_c' => 'populated_country_c',

Try ‘id’ => ‘account_id’

That line has to be an id, it can’t be the same as the name.