Not able to upload file /create dataset using Azure SDK.

Abhi 1 Reputation point

Workspace, storage account and datastore is successfully created.
code snippet -
from azureml.core import Workspace, Datastore, Dataset

ws = Workspace.from_config(path="./config")

az_store = Datastore.get(ws, "azure_sdk_blob011")

csv_path = [(az_store,"defaults.csv")]

loan_dataset = Dataset.Tabular.from_delimited_files(path=csv_path)

last line is throwing exception.
Error Code: ScriptExecution.StreamAccess.NotFound
Failed Step: f095ba20-da8c-481e-ac68-0b0d30bade6b
Error Message: ScriptExecutionException was caused by StreamAccessException.
StreamAccessException was caused by NotFoundException.
Found no resources for the input provided: ''

Azure Open Datasets
Azure Open Datasets
An Azure service that provides curated open data for machine learning workflows.
13 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 27,196 Reputation points Microsoft Employee

    @Abhi I think you could check couple of things here:

    1. Is the datastore "azure_sdk_blob011" registered with your workspace?
    2. Print the az_store and csv_path variables to check if they have the datastore object and the path correctly set if the datastore object is available.

    If the datastore object is correct it should list the storage account name, container name along with name of the registered datastore. Here is an example of the object:


    Also, try to print your workspace object to check if the same is loaded correctly from the config. Thanks!!

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    No comments