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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
webportal
Impactful Individual
Impactful Individual

Error connecting Power BI Desktop to ODBC driver

Hello,

 

Connecting Power BI Desktop to an ODBC source, I'm getting the following error:

DataSource.Error: ERROR [HY000] [DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Column %s in table %s has value exceeding its max length or precision (7864) 

This is the M code in advanced editor:

 

let 
    Origem = Odbc.DataSource("dsn=abcDEF", [HierarchicalNavigation=true]), 
    ABC_Database = Origem{[Name="ABC",Kind="Database"]}[Data], 
    PUB_Schema = ABC_Database{[Name="PUB",Kind="Schema"]}[Data], 
    cm_mstr_Table = PUB_Schema{[Name="cm_mstr",Kind="Table"]}[Data] 
in 
    cm_mstr_Table 

In the same database other tables are correctly imported, so it seems the problem is specific for this table only.

 

No SQL is being used within the query.

 

Any help anyone?

Thanks!

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @webportal ,

 

Please disable the option to try again.

 

222.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

@v-frfei-msft 

 

Thanks for your help, but I get exactly the same error after proceeding as you suggest.

webportal
Impactful Individual
Impactful Individual

@v-frfei-msft or anyone else, is there a way to avoid selecting the problematic fields through a SQL statement?

Or any other solution?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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