use native query in power BI to get data in to the power BI - problem get solved
how to resolve this error while getting data from databricks from power bi.Not able to load table in power bi
DataSource.Error: ODBC: ERROR [HY000] [Microsoft][DSI] (20039) Cannot store ""."".""."REMARKS" value in temporary table without truncation. (Column metadata implied a maximum of 512 bytes, while provided value is 559 bytes
Azure Databricks
5 answers
Sort by: Most helpful
-
-
Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
2023-10-23T21:52:33.23+00:00 Hello Pratibha Khare,
Welcome to the Microsoft Q&A forum.
from the error message, the column “REMARKS” has a maximum length of 512 bytes, but the provided value is 559 bytes
Can you please review your "REMARKS" column in the Databricks? If there are any values that exceed 512 bytes,
you may need to truncate or otherwise modify these values before attempting to load the data into Power BI.
Use Power Query: If you’re using Power BI Desktop, you can use Power Query to connect to your Databricks data. In Power Query, you can transform it before loading it into Power BI
I hope this helps.
Please let me know if you have any further questions
-
Sadiq Rahimansa 10 Reputation points
2024-01-18T09:07:07.7233333+00:00 Yes. Response from Msft below:
The idea here is to modify the parameter MaxCommentLen to accommodate the required size you need for the column. This can just be done through the Power BI Desktop, since we ‘rent able to modify ODBC this parameter on PBI Service. We can achieve it following the next steps: 1. Create/edit a file inside your PowerBI Desktop installation folder, located at … Microsoft Power BI Desktop\bin\ODBC Drivers\Simba Spark ODBC Driver**microsoft.sparkodbc.ini1. In the file you can add/modify the below config for the value:[Driver]**MaxCommentLen=2048 1. Save and restart PBI Desktop.
However, we found that this folder is quite restricted and no one has permissions to modify it. We are working with our security team to gain access. So, haven't tested it yet.
-
Mike 0 Reputation points
2024-05-28T15:31:06.68+00:00 Updating the ini file didn't work for us. We ended up adding the property to the registry entry. While this resolved the "Remarks" error we were getting, the metadata ("Remarks") isn't populating in Power BI ("Description").
-
GUEDES Maria 0 Reputation points
2025-06-12T01:14:55.6466667+00:00 I was able to work around this problem by drawing inspiration from suggestions I found here and on the Databricks website. I used the native query feature in Power BI to list only the fields that did not have the issue of extensive comments, and it worked. I identified the problematic columns by using the
DESCRIBE database.table
function in Databricks, and fortunately, the fields were ones that I didn't need