error message in Contracts when linking cost codes

SOLVED

When linking cost codes in Contracts the error message that the cost code already exists pops up, however we are using an Extra. We have done this a million times with extras, I'm not sure why this is now happening.