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

Abhi 1 Reputation point
2022-12-23T19:30:59.573+00:00

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.
ExecutionError:
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: 'https://storagename.blob.core.windows.net/data/defaults.csv'

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,736 Reputation points Microsoft Employee
    2022-12-26T08:15:01.01+00:00

    @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:

    273940-image.png

    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.

    0 comments No comments