The result_instance_ids variable is not a string, but a Collection.