Error on creating Synapse Spark database

Jona 555 Reputation points
2025-01-28T13:32:41.94+00:00

Hi every one,

I'm trying to create a database in Synapse Spark Notebook, but I'm getting this error:

User's image

The very same error appears without the keyword LOCATION

Regards

Jona

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,170 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Chandra Boorla 7,735 Reputation points Microsoft Vendor
    2025-01-29T00:28:28.64+00:00

    @Jona

    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    Creating a database in Azure Synapse Spark can fail due to various issues, such as workspace configuration problems or metastore access errors. If you encounter this error, consider checking your workspace settings, ensuring you have the necessary permissions, or trying to create a new workspace if the issue persists.

    Here are a few common causes and troubleshooting steps:

    Check Workspace Configuration - Ensure that your Azure Synapse workspace is properly set up. Verify that all necessary services are enabled and that it is linked to the correct Azure Data Lake Storage.

    Verify Permissions - Make sure you have the appropriate permissions to create databases. You may need roles such as Synapse Administrator or Blob Storage Contributor. You can check your permissions in the Azure portal under the IAM settings.

    Inspect Metastore Access - The error might be related to accessing the metastore. Ensure that it is correctly configured and that the storage account used for the metastore is accessible.

    Network Configuration - If your workspace is set up with a private network, check that all required endpoints are configured correctly. Missing private endpoints can lead to access issues.

    Check for Case Sensitivity - Be cautious about case sensitivity in paths. If there are directories with similar names, it could cause confusion.

    For additional information, please refer: How-to: Create an empty lake database

    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.