Azure / Azure/azure-sdk-for-python

Azure ML MLflow get_experiment_by_name() returns None for experiments with forward slash in name

Aperta
#45,209 1 commento 0 reazioni 1 assegnatario Rivendicata da @vivram Vedi su GitHub
azureml-mlflow customer-reported needs-team-attention question Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

- **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://...

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.