thats why i was asking about the clear. OnNewCurrentRecord is called when a new record is found or dd is cleared so something seems to be happening too early

follow the callstack back to see what causes it