Changed FlowQuery and added a method in RESTQuery to check the column size