An erroneous nonsuit entered after the taking of defense evidence can’t be saved on appeal by the harmless error doctrine, the state Supreme Court has ruled in an opinion resolving a split between views taken by the state’s two intermediate appeals courts.

The Supreme Court, in a seven-page opinion written by Chief Justice John P. Flaherty, sided with the Commonwealth Court and overruled Superior Court decisions.