Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Good day,
Im having a error in power Query after the IT department connected Power BI to ODBC database. The error is the following:
ODBC error numeric overflow or string truncation
expected lenght 31, actual 63
details:
Datasourcekind= Odbc
DatasourcePath=dsn= VARIO
OdbcErrors =[Table]
I've tried to solve the truncation error from power query editor updating the M Code as follow but the problem persist
let
Quelle = Odbc.DataSource("dsn=VARIO", [HierarchicalNavigation=true]), REB_Table = Quelle{[Name="REB",Kind="Table"]}[Data],
// Get the list of text columns
TextColumns = List.Select( Table.ColumnNames(REB_Table), each Value.Type(Table.Column(REB_Table, _)) = type text ),
// Truncate only text columns to 31 characters
TruncatedTable = Table.TransformColumns( REB_Table, List.Transform( TextColumns, each {_, each Text.Start(_, 31), type text}
)
)
in
TruncatedTable
Would appreciated any idea of what the solution might be, thank you in advanced.
Many Thanks
Kind Regards
Solved! Go to Solution.
Hi @StefaniaVargas,
Thanks for posting your query in Microsoft fabric community forum.
After thoroughly reviewing the details you provided, this error occurs when the actual data length exceeds the expected column length defined in the ODBC driver or database. Here are some steps you can try to resolve it:
If this helps, then please “Accept it as a solution” and dropping a "Kudos" so other members can find it more easily.
Thank you.
That error comes from the source. Check the column types in the source.
Hi @StefaniaVargas,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @StefaniaVargas,
May I ask if you have resolved this issue? If so, please mark it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
That error comes from the source. Check the column types in the source.
Hi @StefaniaVargas,
Thanks for posting your query in Microsoft fabric community forum.
After thoroughly reviewing the details you provided, this error occurs when the actual data length exceeds the expected column length defined in the ODBC driver or database. Here are some steps you can try to resolve it:
If this helps, then please “Accept it as a solution” and dropping a "Kudos" so other members can find it more easily.
Thank you.
Hi @StefaniaVargas,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.
Thank you.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
13 | |
11 | |
8 | |
8 |
User | Count |
---|---|
17 | |
10 | |
7 | |
7 | |
7 |