The record passed to the query callback function does not have the key populated correctly

Thank you, this did the trick.