Multiple records created on calling 'addObject'

2 records are created on calling ‘addObject’ without assigning an objectID