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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sstasche
Frequent Visitor

error

I keep getting an error message when trying to connect to ANY data source - even sources that I had already successfully connected to in the past.  I would upload a screen shot of it, but I can't figure out how to do that.  The message says: 

 

UNABLE TO CONNECT

We encountered an error while trying to connect.

Details: "We cannot convert the value null to type Text."

 

Any idea how to fix this?

4 REPLIES 4
Anonymous
Not applicable

pls try to open any dashboard that alredy working and try to connect new data source to that develop dashboard if it gives same error then i would say reinstall you PBI tool.

v-sihou-msft
Employee
Employee

@sstasche

 

In your scenario, as the error message said " cannot convert the value null to type Text.", the issue must be in one of your existing queries. It make your current dataset can't be resolved, so that you keep getting this error when trying to connect any data source until this issue get solved. 

 

Please verify if you put any column with null values into a text-based function in DAX formula (calculated column/measure) or Power Query step. 

 

Regards,

Thanks so much for responding.  I don't think that I did that, and the error happens even when I start with a net new analysis and try to import any data source.  I guess I'm going to uninstall and reinstall to see if that helps.

I think I found the solution to this problem, I'm posting it for others with the same issue:

in your source Excel sheet, table (formatted as table), check to see if there is a "Total row". That's the culprit.

 

Also,at the beginning of your query, see if you're extracting from the Sheet or from a Table inside the sheet. In my case, I was extracting from a Sheet, which sees the excel file as it is, while Table sees only table data

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.