Hi @YutongTie-MSFT
I have exactly the same problem despite my files not having blanks.
My azure dataset name is:
preprocess_config.json
Path in blob is:
preprocess_configs/preprocess_config_day2022-03-24_16:28.json.
When trying to download:
parser = argparse.ArgumentParser()
# DEFAULT ARGUMENTS
parser.add_argument('--dataset', type=str,
help='Data to score')
parser.add_argument("--model_name", type=str,
help="Model to be used for scoring",
default="model_12")
parser.add_argument("--register_config_name", type=str,
help="Model to be used for scoring",
default="preprocess_config.json")
args, _ = parser.parse_known_args()
preprocessing_config_dataset = Dataset.get_by_name(ws, name=args.register_config_name, version='latest')
test = preprocessing_config_dataset.download(target_path='.', overwrite=True)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/anaconda/envs/xgboost_gpu/lib/python3.8/site-packages/azureml/data/_loggerfactory.py", line 132, in wrapper
> return func(*args, **kwargs)
> File "/anaconda/envs/xgboost_gpu/lib/python3.8/site-packages/azureml/data/file_dataset.py", line 177, in download
> download_list = _get_and_validate_download_list(download_records,
> File "/anaconda/envs/xgboost_gpu/lib/python3.8/site-packages/azureml/data/file_dataset.py", line 687, in _get_and_validate_download_list
> _download_error_handler(error_list)
> File "/anaconda/envs/xgboost_gpu/lib/python3.8/site-packages/azureml/data/dataset_error_handling.py", line 188, in _download_error_handler
> raise UserErrorException(message) if all_user_errors else AzureMLException(message)
> azureml.exceptions._azureml_exception.UserErrorException: UserErrorException:
> Message: Some files have failed to download:('Path', 'Microsoft.DPrep.ErrorValues.InvalidArgument')
> InnerException None
> ErrorResponse
> {
> "error": {
> "code": "UserError",
> "message": "Some files have failed to download:('Path', 'Microsoft.DPrep.ErrorValues.InvalidArgument')"
> }
> }