Use of entities syntax like so: %NOTVALID; or %#NOTANUMBER; or %#xNOTAHEXNUMBER; should cause an SDE, not just be ignored.