Forum Discussion

MarKha's avatar
MarKha
Frequent Visitor
4 years ago
Solved

Limit expression must be integer type, but got bigint

I'm using Databricks SQL partner connect to connect to Power BI. The report works in Power BI desktop in direct query mode, but when model is published online, i get this error:

 

Couldn't load the data for this visual


DataSource.Error: ODBC: ERROR [42000] [Microsoft][Hardy] (80) Syntax or semantic analysis error thrown in server while executing query. Error message from server: org.apache.hive.service.cli.HiveSQLException: Error running query: org.apache.spark.sql.AnalysisException: The limit expression must be integer type, but got bigint

 

Note: The same model works in import mode when published online.

  • solution that worked:

    Publishing the report in a non-premium capacity.

    The error results from the row limit under workloads in premium capacity. 

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MarKha,

     

    I found a post on the forum reporting a similar error. He solved the problem by changing the data type. 

    Here you can change the data types of fields and measures, republish to the service, and check the results.

    Solved: OLE DB or ODBC error: [DataSource.Error] ODBC: ERR

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data

    • MarKha's avatar
      MarKha
      Frequent Visitor

      Thank you for looking into this. Unfortunately, this solution will not work, because i'm using a measure and the error doesn't seem to be related to the data type of a column.

      Using the column does not result in an error, but when i apply Count on the same column, the error occurs.

       

  • MarKha's avatar
    MarKha
    Frequent Visitor

    solution that worked:

    Publishing the report in a non-premium capacity.

    The error results from the row limit under workloads in premium capacity. 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi MarKha ,

       

      Thank you for sharing! Please consider marking your answer as a solution. This will help many more people. Thanks in advance.🤗

       

      Best Regards,
      Gao

      Community Support Team