Oracle did correct error message because:

for example -->
121764 50595 8/15/2001
121722 50595 8/15/2001
120521 50595 8/15/2001

max data = 8/15/2001 and sal_entry_id = 50595 for all rows.

u have to change code of ur programm.
maybe use second cursor maybe something else, depend from business rules of ur application.