This yields the error:
Error in names(provided) <- sprintf("k%d", seq_along(keyFieldIds)) :
'names' attribute [1] must be the same length as the vector [0]
because of the code in matchRecordIdsByKey() which includes a serial number, which isn't present in the input data.