ActiveRecord::JDBCError: The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified #55

hithams opened this Issue Apr 22, 2013 · 1 comment


None yet

3 participants


Getting this error with delayed_job_active_record 0.4.4 on server start-up while trying to pick the first delayed_job record.

Using activerecord-jdbcmssql-adapter 1.2.5 or 1.2.9

It works fine with delayed_job_active_record 0.3.3


Can you see if this solves it for you? #57

@albus522 albus522 closed this Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment