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

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
ebjim
Resolver I
Resolver I

Importing smallint column from SQL Server

I use a dataflow gen2 to import a table from SQL Server and there is a smallint column (let's call it StatusID) that shows up automatically in the dataflow UI as 'Whole Number', which makes sense. I create a new lakehouse table with the dataflow and now I have a StatusID column that shows up as '12S StatusID' in the lakehouse explorer. 

 

There are only a few distinct values in the StatusID column, -1, 0 and 1. As I populate the table in the lakehouse, I noticed a discrepancy when I verify data in the SQL endpoint: 

 

select count(StatusID), StatusID from dbo.table1 where StatusID = 1 group by StatusID

select count(*) from dbo.table1 where StatusID = 1 

 

Both queries are supposed to return the same number but they don't. Some records are not included in the count of the second query. Additionally, when using this column in a Power BI report, the distinct values are -1, 0, 1 and 65535.

 

This is the workaround I used: in the dataflow UI, change the StatusID data type from 'Whole Number' to...'Whole Number'.  What I want to do is to set StatusID explicitly to Int64.Type in Power Query and use the dataflow to create another new lakehouse table. This time, StatusID shows up as '12L StatusID' in the lakehouse explorer and both queries show the same result. 

 

What is going on here? Something is not right. Smallint is supported in Fabric and '12S' shouldn't cause counting discrepancies.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ebjim 
Thanks for using Fabric Community.
Apologies for the issue you have been facing. This looks like a bug and we have raised a bug for the same. The internal team is looking into it and will fix this. I will keep you updated regarding this.
Appreciate your patience. Please let me know if you have any further questions.
Thanks

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @ebjim 
Thanks for using Fabric Community.
Apologies for the issue you have been facing. This looks like a bug and we have raised a bug for the same. The internal team is looking into it and will fix this. I will keep you updated regarding this.
Appreciate your patience. Please let me know if you have any further questions.
Thanks

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Fabric Update Carousel

Fabric Monthly Update - July 2026

Check out the July 2026 Fabric update to learn about new features.

Top Solution Authors