There's a good chance that whatever program you used to edit the csv file messed it up. Generally, what this error means is it's either trying to find an "id" column in a spreadsheet and not finding it, or an "id" key in a different file (such as a .ship or a .wpn) and not finding it.
I'd really suggest not making changes to the base game but making an actual mini-mod instead. It'll be much easier for you to isolate what went wrong, and you'd also be able to get help more easily, since you could post the mod for someone else to take a look at.
Extracting what you're doing into a proper mod shouldn't actually be too complicated. The example mods
here should work with the latest version of the game, even though they haven't been updated in a while. And there's a bit of extra documentation
here, but that's probably overkill for just getting started.