COBRT066 Attempt to add duplicate record key to indexed file (Fatal)

Resolution:

As this error implies that your program logic contains a mistake, you probably should recode.