how to resolve this error while getting data from databricks from power bi.Not able to load table in power bi

Pratibha Khare 30 Reputation points
2023-10-23T18:45:35.15+00:00

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
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Sachith Gunawardena 5 Reputation points
    2024-10-16T12:18:44.1466667+00:00

    use native query in power BI to get data in to the power BI - problem get solved

    1 person found this answer helpful.
    0 comments No comments

  2. 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

    0 comments No comments

  3. 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.

    0 comments No comments

  4. 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").

    0 comments No comments

  5. GUEDES Maria 0 Reputation points
    2025-06-12T01:14:55.6466667+00:00

    Consulta_Nativa

    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

    https://kb.databricks.com/en_US/unity-catalog/error-when-trying-to-load-a-dataset-after-integrating-unity-catalog-metadata-with-power-bi

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.