diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_component/pipeline_component.py b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_component/pipeline_component.py index 8925a8a203b4..229b714d411d 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_component/pipeline_component.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_component/pipeline_component.py @@ -345,7 +345,8 @@ def _get_anonymous_hash(self) -> str: for input_name, input_value in job.inputs.items(): try: if ( - isinstance(input_value._data, Input) + getattr(input_value, "_data", None) + and isinstance(input_value._data, Input) and input_value.path and os.path.exists(input_value.path) ):