Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MarKha
Frequent Visitor

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.

1 ACCEPTED SOLUTION
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. 

View solution in original post

4 REPLIES 4
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. 

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

v-cgao-msft
Community Support
Community Support

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.

vcgaomsft_0-1653034937776.png

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

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_0-1653050300293.png

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.