A key is required for the called function but not defined for collection currently processed (e.g. NextKey()). Change the collection definition or call another function in the application.