Add exception handling for Add duplication/empty entry.