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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Edward_Vabi
New Member

Error Refreshing SQL Endpoint in Microsoft Fabric – “Value cannot be null. Parameter name: key”

Hi everyone,
I’m encountering an issue in Microsoft Fabric when trying to refresh my SQL endpoint. I get the following error:

 

Value cannot be null. Parameter name: key

 

My semantic model shows very old refresh dates, even though the underlying data is being refreshed daily. This is affecting my reports since the model doesn’t reflect the latest data.

Has anyone experienced this error before or know what might be causing it? Any ideas on how to troubleshoot or fix it would be appreciated.

Thanks in advance!

1 ACCEPTED SOLUTION

Hi  @Edward_Vabi,

Thank you for reaching out to the Microsoft Fabric Forum Community.

Thank you @nilendraFabric, for your insights.

Thank you for providing details about the "Value cannot be null. Parameter name: key" error you're encountering when refreshing your SQL endpoint in Microsoft Fabric. Since you’ve confirmed that the “Sync the default model” setting is enabled, yet the semantic model remains outdated and the error persists, this issue likely stems from a configuration. 
First verify the schema of your Lakehouse or Warehouse to ensure all tables and columns referenced in the semantic model are intact and haven’t been renamed or deleted, as schema mismatches can trigger this error. Check the semantic model’s Model View to confirm that primary keys and relationships are correctly defined and not referencing null or missing fields, as the “key” in the error often points to such issues. 

Check the Refresh History in the Fabric workspace for detailed error logs, which may pinpoint specific tables or columns causing the failure. As a last resort, consider creating a new semantic model to rule out corruption, reconnecting it to the same data source, and testing a refresh.

 

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you. 

View solution in original post

8 REPLIES 8
v-saisrao-msft
Community Support
Community Support

Hi @Edward_Vabi,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

Edward_Vabi
New Member

HI @nilendraFabric  - i have this turned on but for some reason the tables do not sync - plus i get this error  when i try synching 

Edward_Vabi_0-1745366671062.png

 



Hi @Edward_Vabi,

 

We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.

 

Thank you.

Hi @Edward_Vabi,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi  @Edward_Vabi,

Thank you for reaching out to the Microsoft Fabric Forum Community.

Thank you @nilendraFabric, for your insights.

Thank you for providing details about the "Value cannot be null. Parameter name: key" error you're encountering when refreshing your SQL endpoint in Microsoft Fabric. Since you’ve confirmed that the “Sync the default model” setting is enabled, yet the semantic model remains outdated and the error persists, this issue likely stems from a configuration. 
First verify the schema of your Lakehouse or Warehouse to ensure all tables and columns referenced in the semantic model are intact and haven’t been renamed or deleted, as schema mismatches can trigger this error. Check the semantic model’s Model View to confirm that primary keys and relationships are correctly defined and not referencing null or missing fields, as the “key” in the error often points to such issues. 

Check the Refresh History in the Fabric workspace for detailed error logs, which may pinpoint specific tables or columns causing the failure. As a last resort, consider creating a new semantic model to rule out corruption, reconnecting it to the same data source, and testing a refresh.

 

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you. 

thank you for this @v-saisrao-msft - i have not had time to try these yet  but let me revert ones i do, should get around to this by end of this week

Hi @Edward_Vabi,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

nilendraFabric
Super User
Super User

Hello @Edward_Vabi 

 

The most frequent cause for the default semantic model not updating is the “Sync the default model” setting being turned off. This setting controls whether the model automatically syncs with new data in your Lakehouse or Warehouse.

https://community.fabric.microsoft.com/t5/Fabric-platform/Cannot-refresh-or-create-semantic-models/m...

 

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.