detect table pattern error