Jean, you should only get a result into $item if there's a multifield inside the key, if not it will skip it so maybe there's another error. Works fine for me. BTW all code should be inside tags so...