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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pstanek
Post Patron
Post Patron

error

The conversion of the nvarchar value '5131032161' overflowed an int column..

How can I fix this?

23 REPLIES 23
KHorseman
Community Champion
Community Champion

By telling us more about how you got this error. Where is it getting that value from and what is it trying to do with it?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I have new tables in the query.

 

But Instead of view I can find only

Expression.Error:..................

Key=Record
Table=Table

 

When I create  calculated table with column from these tables, I will find this error.

 

 I find only this

Expression.Error: Klíč neodpovídal žádnému z řádků tabulky.
Podrobnosti:
Key=Record
Table=Table

 

ín edit queries.

arify
Microsoft Employee
Microsoft Employee

When you're seeing this error in the Query Editor, can you go to Advanced Editor, and copy that code to here? So that we can understand what operations you did to get this error, that way we can help you.

Where can I find Advanced editor?

If you're in the query editor, it's in the ribbon, a bit left of center, between Refresh Preview and Choose Columns.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I was there: IT is OK. Table is there. Problem is that relations are not correctly set up, despite of creation relationship

So...is the problem solved? I am not sure what your reply means.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




No, but I discovered that problem is not in query, but in relation. I set it up, but It is not recognized correctly.

When I forget set up relation, it says- There is not relation.

But instead of that I have error, that I described before.

I have relation  Table A->Table B

Columns A ->Column B

I had mistake

Column A was number

Column B was text.

I changed Column B to number, but there is still mistake.

You still haven't provided any of the information we asked you for earlier, so I don't know how we can help you. Just repeating that it isn't working doesn't help.

 

We need to know where this is happening and how. Is this in the query editor, the relationship editor, where? If it's in the query editor we need you to post the query code we asked you for. If it's happening in the relationship editor we need to know what you are doing when you get this error message. Does it happen when you try to create the relationship? Or are you getting this message somewhere else entirely? The report editing window, the table editor? What window are you in and what are you doing at the exact moment when you get this error message?

 

We also need to know about the tables and columns you're trying to relate. They must have the exact same data type (integer and decimal are both numbers but they are not the same thing, for instance). They must have values that actually match, meaning that the same value in Table A[Column A] must also exist in Table B[Column B]. They must also form a 1:1 or a 1:N relationship, which means that at least one of the two columns must have only unique values with no duplicates.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I fixed it, but the same error appear somewhere again,

Error Message:

Při použití spravovaného rozhraní IDataReader došlo k následující výjimce: The conversion of the nvarchar value '5131032161' overflowed an int column..

Stack Trace:

 

I know I can not decribe it well. Reason is that I do know what IDataReader, (conversion of the nvarchar value '5131032161' overflowed an int column..) means.

 Now it appears when I used extended filter- search by includes..... .

All I know when I throw some columns away it won´t appear. It seems It appears when table has too many calculations.

I don't understand why you can't just tell us what window you're in and what you're trying to do when you see this error message. You don't have to understand what the error message means to know what things you can see on your screen.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




 

I have table on the page a I try to use advanced filer.

https://powerbi.microsoft.com/en-us/documentation/powerbi-service-how-to-use-a-report-filter/

when I use it. I have error instead of the table.

 

When I nulify advanced filter, I have table again instead of error

 

I do not know how I can decribe it better.

 

 

OK. What are you trying to use in that filter? A column? A measure? What data type is it? What value are you trying to sort with?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




IT is column, Text  and type column that bear relation is also text

And what value are you trying to set the filter to? When you go to Advanced Filter, what are you entering there? Are you typing in that 5131032161 number there?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




arify
Microsoft Employee
Microsoft Employee

What are you connecting to? Are you using the ODBC connector? Is it a Teradata Database? It could be helpful if you can give us your full query (Query Editor > Advanced Editor)

I would like to give information from

Query Editor > Advanced Editor), but I am afraid of giving my employer internal data to public.

I use DirecQuery and MS Asure

 
arify
Microsoft Employee
Microsoft Employee


@pstanek wrote:

I would like to give information from

Query Editor > Advanced Editor), but I am afraid of giving my employer internal data to public.

I use DirecQuery and MS Asure

 

I understand your concern. You can censor the sensitive information with "####", we don't need to see the values or the table names, we only need to see what steps you're taking, what functions you call etc.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors