Note that the illegality could be due to an attribute without ID exits and the client wants to add one with ID. Thus, "attribute without ID already exists" doesn't work in all cases.

I would suggest: "Attributes with same name with ID and not ID at the same time in the same entity are forbidden".