TCS0137E: The maximum key length of 500 has been exceeded (...Bytes in '...', Line ...).
The maximum key length of 500 bytes has been exceeded for a Batch Compare. Only unique ascending keys up to a length of 500 bytes are supported.

Use a key that is shorter than 500 bytes. Make sure that the data is sorted in ascending order based upon this key and that the key does not contain NULL values.