March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a report reading from Azure SQL and Data Lake Store. When updating in Power BI Desktop it works fine, but in Service it says
"We cannot convert the value null to type Logical" and then only the table name. I have gone through all columns and cannot find null values, so I'm struggeling to see where the error could be. Any tips on where to look?
Solved! Go to Solution.
When you use the Azure Data Lake connector Power BI creates your query for you. The resulting query, running through DataLake.Contents is then supplied with default parameters that (at the time of writing) break the evaluation once uploaded to the Power BI service. The problem is the second param, the empty record []. Exchange it for a null, or simply delete it.
Bad:
DataLake.Contents("adl://adlstest01.azuredatalakestore.net/data/examples/entries.csv", [])
Good:
DataLake.Contents("adl://adlstest01.azuredatalakestore.net/data/examples/entries.csv", null)
At least this worked for me.
Hi @helgerg,
Is any transform operation in query editor, such as custom function, merge/combine query operations in your report?
In addition, you can also take a look at below link about known issue to refresh azure data lake store, you can try to remove azure data lake data source and publish your report to confirm if your issue related to azure data lake source.
Regards,
Xiaoxin Sheng
I have the following expression that caused the error (it worked when I removed it):
OutAndContinued = IF(AND(MoverChannelAudit[EventType]="Continued Customer";MoverChannelAudit[EventTypeFilter]="MoverOutflow");"Yes";"No")
As both EventType and EventTypeFilter has values for all columns I don't understand why this expression returns null
Hi @helgerg,
Maybe you can try to use iferror to handling error records and replace them as 'No' result.
Regards,
Xiaoxin Sheng
I have now tried to remove all computed columns, all measures, and all type conversions or other steps in the query. It still fails...
It works if I remove the data lake table...
HI @helgerg,
I think it might be a issue with azure data lake service, I'd like to suggest you open a support ticket for this scenario to get more support from power bi team.
Regards,
Xiaoxin Sheng
When you use the Azure Data Lake connector Power BI creates your query for you. The resulting query, running through DataLake.Contents is then supplied with default parameters that (at the time of writing) break the evaluation once uploaded to the Power BI service. The problem is the second param, the empty record []. Exchange it for a null, or simply delete it.
Bad:
DataLake.Contents("adl://adlstest01.azuredatalakestore.net/data/examples/entries.csv", [])
Good:
DataLake.Contents("adl://adlstest01.azuredatalakestore.net/data/examples/entries.csv", null)
At least this worked for me.
When trying to connect to AZDL with SSAS Azure in Visual Studio, I keep getting this error:
Details: "We cannot convert the value null to type Logical."
I do not get this error in Power BI using the same connection string.
connection string: adl://<mydata>.azuredatalakestore.net
Any thoughts?
In VS, I am not able to open a blank query to write this correct version of the connection string, as far as I am aware.
thanks, it did the trick 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
32 | |
24 | |
12 | |
11 | |
9 |
User | Count |
---|---|
47 | |
46 | |
23 | |
12 | |
9 |