Skip to content

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

@Harikrzna

Description

@Harikrzna
  • 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://...

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions