fixes #11082, over 5000 record needs exclude header.