My NOx sensor was flakey, well, most of the first year I had the car. Turned out to be a nicked wire that corroded. May have come from the factory that way, but could also have been damage done during servicing -- it all has to come apart for a flywheel replacement.
I'm over 32k miles now and have no emissions issues at the moment.