Add retcode and success to function not found

Fix #18512