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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
coatsy35
Helper I
Helper I

ODBC Error [22003] VALRNG: Column or parameter 3: Value out of range

Hi all,

 

I'm getting the following error on one of the tables in my database connected via ODBC.  Does anyone know what I can do about this? the table explores fine in a ODBC database viewer and I cna't see a wrong character in the column, especially not column 3.

 

coatsy35_0-1728075087058.png

coatsy35_1-1728075150278.png

 

Is there a way I can use adavanced editor to exclude that column and force it to display the table? here is my syntax generated in the advanced editor. Any help appreciated

 

 

let
    Source = Odbc.DataSource("dsn=Gold001", [HierarchicalNavigation=true]),
    PUBLIC_Schema = Source{[Name="PUBLIC",Kind="Schema"]}[Data],
    INVOICE_TYPES_Table = PUBLIC_Schema{[Name="INVOICE_TYPES",Kind="Table"]}[Data]
in
    INVOICE_TYPES_Table

 

 

5 REPLIES 5
lbendlin
Super User
Super User

What's the column type?

it's a TINYINT if it is column 3. the values in it are between -14 and 9 in the current table. It's information out of an ERP system so I can't alter the database or table

Is that SQL Server?  On some systems TinyInt cannot store negative numbers, only 0..255 .

Power Query however seems to be just fine with it

 

lbendlin_0-1728084665977.png

It correctly errors out for 128

 

lbendlin_1-1728084713412.png

 

It's a Flat file database for a business management system written in COBOL on the synergy/de platform by Synergy. I cannot alter anything to do with the datebase. The vendor supplies the drivers. They only use it in excel Legacy mode query which reads it and loads fine. However power query and power BI do not like that table and give the error above. All the other 400 tables in the database load fine, which is annoying to say the least that this table I need for a lookup doesn't work

HI,

Thanks for the solution lbendlin offered, and i want to offer some more information for user to refer to.

hello @coatsy35 , based on your descriotion, the odbc connector provides SQL queries in advanced options, which you can use to select the columns you need by using sql queries.

vxinruzhumsft_0-1728368783376.png

And you can refer to the following link.

Import data from a database using native database query - Power Query | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.