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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
LSPrab
Regular Visitor

The database cannot be located; the capacity and/or the database do not exist or are in the wrong

HI

 

I need some help

 

I am getting this error 

 

cannot be located; the capacity and/or the database do not exist or are in the wrong state.

 

Recently i moved the workspace to difference fabric capacity since then i am getting this error in my data warehouse, when i try to run a query

 

Regards

Prab

1 ACCEPTED SOLUTION

Hi @LSPrab,

 

Since you can run SELECT queries but not DDL/DML commands, the issue is likely related to workspace permissions or data warehouse state.

  • In the Microsoft Fabric Admin Portal verify that the data warehouse is active and not in a read-only or migrating state. If it is still migrating, wait for the process to complete.
  • Ensure you have the required permissions Admin or Contributor, if you have Viewer or Read-Only access, DDL/DML operations won’t work.
  • In addition to this try restarting the data warehouse service, if still not working, try moving the workspace back to the old capacity, wait for complete synchronization, and then reassign it to the new capacity.

Let me know if any of these steps help resolve the issue or if you are seeing any specific error messages during DDL/DML execution.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

5 REPLIES 5
LSPrab
Regular Visitor

Hi  @v-achippa @nilendraFabric 

 

I am getting this error while i am trying to do DDL / DML (Create / Drop / Update), but there is no error when i do the select statement.

 

Regards

Prab

Hi @LSPrab,

 

Since you can run SELECT queries but not DDL/DML commands, the issue is likely related to workspace permissions or data warehouse state.

  • In the Microsoft Fabric Admin Portal verify that the data warehouse is active and not in a read-only or migrating state. If it is still migrating, wait for the process to complete.
  • Ensure you have the required permissions Admin or Contributor, if you have Viewer or Read-Only access, DDL/DML operations won’t work.
  • In addition to this try restarting the data warehouse service, if still not working, try moving the workspace back to the old capacity, wait for complete synchronization, and then reassign it to the new capacity.

Let me know if any of these steps help resolve the issue or if you are seeing any specific error messages during DDL/DML execution.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

v-achippa
Community Support
Community Support

Hi @LSPrab,

 

Thank you for reaching out to Microsoft Fabric Community.

 

After moving the workspace to a different Fabric capacity, the data warehouse may not be correctly linked to the new capacity, or the database is in an inactive/migrating state.

  • Check if the database is assigned to the new capacity, go to Fabric Admin Portal --> Capacities --> Select the new capacity. Check if the workspace and data warehouse are listed under this capacity. If missing, move the workspace back to the old capacity and retry moving it again.
  • After moving the workspace, permissions may not have transferred correctly. Verify if you have Admin or Contributor access.
  • If the issue persists, move the workspace back to the old capacity, wait for full migration, and then reassign it.

Let me know if this helps to resolve the issue.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Hi @v-achippa 

 

Thanks for your support.  The problem is resolved, it is due to permission issues i faced the problem.

 

Regards

Prab

nilendraFabric
Super User
Super User

Hello @LSPrab 

 

Could you please check if you can connect to dw using ssms

 

if yes 

 

run this 

 

EXEC [XMLA_Endpoint_URL].ProcessDatabase Full

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.