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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
rolf1994
Helper II
Helper II

The data types uniqueidentifier and nvarchar are incompatible in the add operator.

Hello,

 

I am getting an unexpected error when trying to load a report. I do not know what is causing this error so i thought someone here might know the answer. the error is as following:

Power BI example2.png

 

I am using direct query.

 

Thanks in advance!

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @rolf1994,

 

Assume you connect to SQL Server database in DirectQuery, have you specified any T-SQL query when you get data? Does this specific visual can't display data, other visuals are fine? Check if any calculated column or measure added in this visual, if it is, please check its data type.

 

Which desktop version did you run? Please share detail information for us to analyze the issue.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-qiuyu-msft

Assume you connect to SQL Server database in DirectQuery - Yes

have you specified any T-SQL query when you get data? - Yes, and it looks like if I do not use T-SQL query I do not get an error. However, I do not want to use all the data in the table.

Does this specific visual can't display data, other visuals are fine? - No, other visuals also show an error

Check if any calculated column or measure added in this visual, if it is, please check its data type. - I created a column using the concatenate function. 

 

I worked in the latest desktop version.

Greg_Deckler
Community Champion
Community Champion

Sounds like you are trying to add a uniqueidentifier (numeric) with a text value (nvarchar) which isn't going to work well. You would need to cast the nvarchar to an integer or float.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors