When specifying keys for a USE OR GIVE indexed file (non-emulation mode), the prime key must be specified first.
Reorder the key definitions so that the prime key is first and try again.