Insert record on M/D with datasetfield

If you are getting such message, then you are providing the ID value manually, otherwise the database would not complain that you are trying to set the identity value explicitly.