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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Tech02
Frequent Visitor

We cannot convert the value null to type Record

I am getting the below error while trying to refresh it on power Bi service.

Tech02_0-1668599918923.png

The data is connected through AWS Athena.The gateway status is showing online  and running state.When I refresh it through Power Bi desktop it's working fine. There are no null values in the data. I am not sure how it fix this issue. Anyone can suggest what could be the issue.

7 REPLIES 7
Netope
Helper I
Helper I

I had the same issue and I found a work around that worked for me, not sure if it applies to all cases but you can try. In power BI Desktop go to Transform Data --> Data Source Settings, right click on Amazon Athena and select clear permissions. After that I was able to refresh data again. Hope this helps

Anonymous
Not applicable

Hi @chizuml_ds,

I had the same issue and I figured out the reason it was happening. When you mention your DSN in the Amazon Athena (Beta), the next thing it will ask is your login (which has two options).Do not take the 2nd option. Pick the first option where the all setting are pulled from your DSN settings, which you did to setup your datasource.

Now if you once did it wrong, It won't ask you again the same things to fix it. Create a new powerbi file and do the steps.

 

amazon web services - PowerBI Athena Beta Connector Details: "We cannot convert the value null to ty...

 

If it still does not help, We suggest you to open a ticket here for help if you are a pro user: https://powerbi.microsoft.com/en-us/support/

 

vpollymsft_0-1668735174179.gif

 

 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I had follwed the steps that you have suggested but it didn't resolve the issue. 

Anonymous
Not applicable

Hi @Tech02 ,

If it still does not help, We suggest you to open a ticket here for help if you are a pro  user :  https://powerbi.microsoft.com/en-us/support/

 

vpollymsft_0-1669164850690.gif

 

 

 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

chizuml_ds
Frequent Visitor

Thanks CST, but not real helpful when the data source is out of our control.
It gives the perception that Microsoft helped this to happen when WE want to pull AWS data ourselves (and not pay the 1% of all cloud costs when Azure does it).

Anonymous
Not applicable

Hi @Tech02 ,

The error message means that you need to change null value to other values when you change data type.

 

I have found a similar post, pelase refer to it to see if it helps you.

Solved: [Expression.Error] Cannot convert the value null t... - Microsoft Power BI Community

If it still does not help, please provide more details.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

chizuml_ds
Frequent Visitor

I have the same error while attempting to connect to Amazon Athena with Power-BI.

 

Details: OnPremDataGatewayEnterprise: We cannot convert the value null to type Record. Please have this information handy if you choose to create a support ticket. ActivityId: 486bd157-3379-401a-83d0-b3e94103422e RequestId: 497bce5f-cab4-4ad7-b156-2d5cfabf6e57 Cluster URI: https://api.powerbi.com Status code: 400 Time: Wed Nov 16 2022 10:10:25 GMT-0500 (Eastern Standard Time)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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