Forum Discussion

mtzvictor's avatar
mtzvictor
Frequent Visitor
8 years ago

SELECT TOP Expression.Error: The 'offset' argument is out of range.

Hi, I'm trying to run a query that looks like below.

 

select TOP 1 * from c where c._ts >1535611747
order by c._ts DESC

 

In Portal Azure, works fine but trying from Powerbi desktop power query is giving me the following error

 

Expression.Error: The 'offset' argument is out of range.
Details:
-1

 

Any Ideas?

 

Thanks

 

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    I encountered the same problem, but not using the TOP statement. Further analysis showed that removing the 'order by c._ts DESC' clause did solve it for me. Of course, with a TOP statement ordering may be more is of importance - and I have not yet checked other columns than _ts.