A judge has ordered the administration to cancel thousands of pied-à-terre tax notices after it sent 35% of them erroneously.