GolfScript 54 53
' '/{1$1$?)0>{?}{\+}if}*2%{"UOK0D"\?).0>+.4>5*+}%{+}* The input has to be on the stack as a string, in the specified format (example: '7A UA DA').
In case the input is valid, the program prints the total value of the cards.
In case there's at least one duplicate card, the program throws the following exception:
undefined method `each' for 0:Fixnum (NoMethodError)