Not to sound silly, but are they the same speed cassette? You didn't accidentally buy an 11 needing a 10 or vice versa did you?
I go between a 12-23 and an 11-28 often. No difference in chain length required. However, it was sized for the 28 originally.