diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/_exception_helper.py b/sdk/ml/azure-ai-ml/azure/ai/ml/_exception_helper.py index 5d849e6fe01c..944bdc90ccab 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/_exception_helper.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/_exception_helper.py @@ -229,6 +229,8 @@ def format_create_validation_error( schema_type = AzureFileSchema elif entity_type == ErrorTarget.ENVIRONMENT: schema_type = EnvironmentSchema + else: + schema_type = "" resolutions += " " + REF_DOC_ERROR_MESSAGE_MAP.get(schema_type, "") else: