azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

No flag to set overwrite=True in Dataset

Open kwhitehall opened this issue 6 years ago • 3 comments

  • azureml-core, azureml-dataprep:
  • 1.12.0, 2.0.7:
  • Operating System:
  • Python Version = 3.7:

Describe the bug No flag to set overwrite=True in as_download method. Output from failed method: Dataset initialization failed: UserErrorException: Message: File "/mnt/location/dataset.json" already exists. Set overwrite=True to overwrite it. InnerException None ErrorResponse { "error": { "code": "UserError", "message": "File "/mnt/location/dataset.json" already exists. Set overwrite=True to overwrite it." } }

To Reproduce Steps to reproduce the behavior:

  1. registered_dataset = Dataset.get_by_name(workspace=ws, name=kwargs['dataset_name']) dataset_as_named_input = registered_dataset.as_named_input(name=kwargs['dataset_name']) input_dataset = dataset_as_named_input.as_download(path_on_compute='./outputs/data')
  2. run python code (using Pytorch 1.4) on AMLCompute cluster Standard_NC12 that accesses input_dataset (from datalake store)

Expected behavior Based on error message, expected that as_download method would have a flag to set overwrite as suggested by the error log.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

kwhitehall avatar Sep 22 '20 01:09 kwhitehall

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.

ghost avatar Sep 22 '20 19:09 ghost

Hi @kwhitehall, we have entered this as a feature request! Thanks! #please-close

meyetman avatar Nov 05 '20 18:11 meyetman

What is the status of this? I'm running into the same problem

j0rd1smit avatar Mar 03 '22 15:03 j0rd1smit