@lewisdd you have two problems that I spot. First, is that you need to add a column. Any column will do, so go ahead and add one for 'internalid' or something. Second, you should return the search itself, not a resultset. So return allBins without running it.