handle when get-notes-code fails to retrieve code