External table location path is not valid. Location provided:

Bala 26 Reputation points
2022-04-26T01:49:13.507+00:00

I am not able to create an external table and the message is not a valid path

External table location path is not valid. Location provided:

However, I confirm that the path exists. Could there be any other issue but the error message is not clear?

https://storagename.blob.core.windows.net/storage-container/path/to/folder

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,375 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bala 26 Reputation points
    2022-05-01T23:15:53.48+00:00

    It is resolved after calling the Microsoft support team.

    Issue was the file path. However, it is not the prefix but the suffix after the storage account name. Looks like Gen 2 storage account should be referred with dfs instead of blob

    CREATE EXTERNAL DATA SOURCE ext_source_worldwideimporter WITH (
    LOCATION = 'https://{storageaccount}**.dfs.**core.windows.net/{container}/',
    CREDENTIAL = WorkspaceIdentity
    );

    Hope this is updated in the documentation for future users, be consistent to allow one method ( blob works in read but only dfs work for write ) and also change the error message to be more clear.

    1 person found this answer helpful.

  2. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2022-04-27T10:50:04.943+00:00

    Hello @Bala ,

    Thanks for the question and using MS Q&A platform.

    Make sure you are using the correct location path for Azure Storage account - LOCATION = 'https://{storageaccount}.blob.core.windows.net/{container}/'

    You may check the supported location path for Azure Storage account:

    196963-image.png

    For more details, refer to CREATE EXTERNAL DATA SOURCE (Transact-SQL).

    And also, checkout the MS Q&A thread which addressing similar issue.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

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.