In the AR Invoice Entry program I have added two fields to show some more information on the main grid page and it works well, in the code I read the data from other non-Accounting tables and populate them in these fields, however when I try and save something for example line comment, after the save is finished, it raises an exception saying: CPF is neither a DataColumn nor a DataRelation for table InvcHead.
Since you are adding it to the data table you are actually adding it to the dataset that is being saved back to the server. Those fields don’t exist and Epicor doesn’t like that. Here’s an example of adding it to just the grid without adding it to the data table.