Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I'm having problems importing a SQL query. I've already imported this database before without problems, but now when I navigate to that SQL table, this error appears:
"Explicit conversion from data type image to nvarchar(max) is not allowed
Details:
DataSourceKind=SQL
DataSourcePath=XXXXXX
Message=Explicit conversion from data type image to nvarchar(max) is not allowed.
ErrorCode=2146232060
Number=529
Class=16".
I have not done any transformation of that data column, I've only connected Power BI to that table. In this table there is a type "image" column. If I create a SQL view without this column, the query connects succesful. But I need this column and to be able to connect correctly to all the SQL tables, regardless of the type of columns there are (I didn't have any problems before).
Thanks a lot,
Best regards.
But I need this column
what are you planning to do with it?
I need to put this image in a tooltip. Anyway, if I connect the same SQL table to Power Query in Excel, the error doesn't appears, the connection is succesful. I don't understand why Power BI doesn't do the query as the same way.
Thanks.
In Power BI you need to Base64 encode your image data.
https://blog.crossjoin.co.uk/2019/05/19/storing-large-images-in-power-bi-datasets/
Okay, I'll look into it. Anyway, the issue is that before, I connected to that database table and in the image field I would see 'Binary' and could work with the query. Now, it gives an error in the preview and I can't work with the table. I have to make the connection in Power Query for Excel, remove the 'Image' column, copy the advanced query code, and paste it into Power BI. I didn't have to do all this before.
Please qualify "before" - did it work earlier, or did it work elsewhere?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |