Recreate the query

Note: This error can also occur when the export is producing 0 results.