Azure / Azure/azure-sdk-for-python
Azure ML MLflow get_experiment_by_name() returns None for experiments with forward slash in name
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
- **Package Name**: azureml-mlflow
- **Package Version**: 1.61.0.post1
- **Operating System**: Ubuntu 22.04.5 LTS
- **Python Version**: 3.12
**Describe the bug**
When using Azure ML's MLflow tracking URI (azureml://...), experiments with forward slashes in their names cannot be retrieved using `get_experiment_by_name()`, even though they can be created successfully and retrieved by ID.
**To Reproduce**
Steps to reproduce the behavior:
1. Create experiment with slash: `client.create_experiment('dev_hka/test')`
2. Try to retrieve: `client.get_experiment_by_name('dev_hka/test')` → Returns None
3. Can retrieve by ID: `client.get_experiment(exp_id)` → Works fine
4. Doesn't appear in search: `client.search_experiments()` → Not in results
**Expected behavior**
Either:
Option1: Experiments with slashes should be retrievable by name
Option2: Documentation of restriction on naming
**Workaround**:
Use underscore or hyphen instead of slash
**Additional context**
- Azure ML workspace region: eastus2
- Tracking URI: azureml://...
Contributor guide
Assessment
This issue has not been assessed yet.